From 4509ab9d8dddfba33d697ad845aa92a2bd67244b Mon Sep 17 00:00:00 2001 From: An4Leal Date: Mon, 12 Oct 2020 12:57:22 -0300 Subject: [PATCH] =?UTF-8?q?resolu=C3=A7=C3=A3o=20exercicios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Aulas-HTML/exercicios/aula3/index.html | 6 ++-- aulas-javascript/exercicios/aula1/index.html | 13 +++++++++ aulas-javascript/exercicios/aula1/script.js | 14 ++++++++++ aulas-javascript/exercicios/aula2/index.html | 29 ++++++++++++++++++++ aulas-javascript/exercicios/aula2/script.js | 26 ++++++++++++++++++ 5 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 aulas-javascript/exercicios/aula1/script.js create mode 100644 aulas-javascript/exercicios/aula2/script.js diff --git a/Aulas-HTML/exercicios/aula3/index.html b/Aulas-HTML/exercicios/aula3/index.html index d0e3d1e..e424c3e 100644 --- a/Aulas-HTML/exercicios/aula3/index.html +++ b/Aulas-HTML/exercicios/aula3/index.html @@ -20,10 +20,10 @@ Exercício 3 -

seu nome e sobrenome

+

Ana Paula Leal

- + mulher adulta agachada ajudando uma criança menina, que esta sentada em um banco, por equipamentos de segurança para andar de patins - time + grupo de pessoas sorrindo em pé e em circulo, todos estão com a mão direita esticada colocando uma mão sobre a outra diff --git a/aulas-javascript/exercicios/aula1/index.html b/aulas-javascript/exercicios/aula1/index.html index e69de29..f41a341 100644 --- a/aulas-javascript/exercicios/aula1/index.html +++ b/aulas-javascript/exercicios/aula1/index.html @@ -0,0 +1,13 @@ + + + + + + Ana Paula Leal + + + + + + + \ No newline at end of file diff --git a/aulas-javascript/exercicios/aula1/script.js b/aulas-javascript/exercicios/aula1/script.js new file mode 100644 index 0000000..4c2c379 --- /dev/null +++ b/aulas-javascript/exercicios/aula1/script.js @@ -0,0 +1,14 @@ +function checarSePodeDirigir(idade) { + if (idade >= 18) { + alert ('Já pode dirigir!!!'); + } + else { + alert ('Ainda não pode dirigir!!!'); + } + } + + let idade = prompt ('Digite sua idade:'); + + checarSePodeDirigir (idade); + + diff --git a/aulas-javascript/exercicios/aula2/index.html b/aulas-javascript/exercicios/aula2/index.html index e69de29..df67f9f 100644 --- a/aulas-javascript/exercicios/aula2/index.html +++ b/aulas-javascript/exercicios/aula2/index.html @@ -0,0 +1,29 @@ + + + + + + Ana Paula Leal + + + + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + \ No newline at end of file diff --git a/aulas-javascript/exercicios/aula2/script.js b/aulas-javascript/exercicios/aula2/script.js new file mode 100644 index 0000000..f5929f8 --- /dev/null +++ b/aulas-javascript/exercicios/aula2/script.js @@ -0,0 +1,26 @@ +function saoIguais() { + let input1 = document.querySelector('#input1').valueAsNumber; + let input2 = document.querySelector('#input2').valueAsNumber; + + if(input1==input2) + { + + let div = document.createElement('div'); + div.innerText = 'Os valores são iguais'; + document.body.append(div); + div.style.color = 'green'; +} + +else { + let div = document.createElement('div'); + div.innerText = 'São Diferentes'; + document.body.append(div); + div.style.color = 'red'; +} +saoDiferentes() +} + +function resetar () { + document.getElementById('input1').remove(); + document.getElementById('input2').remove(); +} \ No newline at end of file