diff --git a/Aulas-HTML/exercicios/aula1/index.html b/Aulas-HTML/exercicios/aula1/index.html index 45c22c1..11c8dbf 100644 --- a/Aulas-HTML/exercicios/aula1/index.html +++ b/Aulas-HTML/exercicios/aula1/index.html @@ -13,4 +13,4 @@ - Dar git push das alterações - Abrir um pull request para o repositório original (da Womakers) - Acompanhar o prazo e marcar a entrega no Classroom ---> +--> \ No newline at end of file diff --git a/Aulas-HTML/exercicios/aula2/index.html b/Aulas-HTML/exercicios/aula2/index.html index 92a01fd..2765708 100644 --- a/Aulas-HTML/exercicios/aula2/index.html +++ b/Aulas-HTML/exercicios/aula2/index.html @@ -20,4 +20,4 @@ - Dar git push das alterações - Abrir um pull request para o repositório original (da Womakers) - Acompanhar o prazo e marcar a entrega no Classroom ---> +--> \ No newline at end of file diff --git a/Aulas-HTML/exercicios/aula3/img1.jpg b/Aulas-HTML/exercicios/aula3/img1.jpg deleted file mode 100644 index 02b8b8a..0000000 Binary files a/Aulas-HTML/exercicios/aula3/img1.jpg and /dev/null differ diff --git a/Aulas-HTML/exercicios/aula3/img2.jpg b/Aulas-HTML/exercicios/aula3/img2.jpg deleted file mode 100644 index 7e858a3..0000000 Binary files a/Aulas-HTML/exercicios/aula3/img2.jpg and /dev/null differ diff --git a/Aulas-HTML/exercicios/aula3/index.html b/Aulas-HTML/exercicios/aula3/index.html index d0e3d1e..c869cfe 100644 --- a/Aulas-HTML/exercicios/aula3/index.html +++ b/Aulas-HTML/exercicios/aula3/index.html @@ -26,4 +26,4 @@

seu nome e sobrenome

time - + \ No newline at end of file diff --git a/aulas-javascript/exemplos/aula1/index.html b/aulas-javascript/exemplos/aula1/index.html new file mode 100644 index 0000000..119d0ae --- /dev/null +++ b/aulas-javascript/exemplos/aula1/index.html @@ -0,0 +1,11 @@ + + + + + + Exemplo de JavaScript Externo + + + + + diff --git a/aulas-javascript/exemplos/aula1/script.js b/aulas-javascript/exemplos/aula1/script.js new file mode 100644 index 0000000..8c99f90 --- /dev/null +++ b/aulas-javascript/exemplos/aula1/script.js @@ -0,0 +1,43 @@ +//console.log('Olá meninas!'); + +//alert('Olá mundo!'); + +/* +let nome = 'Rita'; +console.log(nome); + +nome = 'Laryssa'; +console.log(nome); +*/ + +//let nome = 'Rita'; + +//console.log(`Meu nome é ${nome}`); + +//let nome = prompt('Qual é seu nome?'); + +//console.log(nome); + +/*function mostrarNome(nome, sobrenome) { + console.log(`${nome} ${sobrenome}`); +} + +mostrarNome('Rita', 'Lino'); + +function somarNumeros(numero1, numero2) { + console.log(numero1 + numero2); +} + +somarNumeros(20, 2); +*/ +function checarNumero() { + let numero = prompt('Digite um número'); + + if (numero > 20) { + alert('É maior que 20!'); + } else { + alert('Não é maior que 20!'); + } +} + +checarNumero(); diff --git a/aulas-javascript/exercicios/aula1/index.html b/aulas-javascript/exercicios/aula1/index.html new file mode 100644 index 0000000..568f5dd --- /dev/null +++ b/aulas-javascript/exercicios/aula1/index.html @@ -0,0 +1,16 @@ + + + + + + Atividade de Javascript + + +

Testando o Javascript pela primeira vez.

+

Hoje vamos descobrir se você tem idade para dirigir

+

(^▽^)

+ Ilustração com um gato dirigindo um carro + + + + \ No newline at end of file diff --git a/aulas-javascript/exercicios/aula1/pusheen.jpg b/aulas-javascript/exercicios/aula1/pusheen.jpg new file mode 100644 index 0000000..e7fc3a0 Binary files /dev/null and b/aulas-javascript/exercicios/aula1/pusheen.jpg differ diff --git a/aulas-javascript/exercicios/aula1/script.js b/aulas-javascript/exercicios/aula1/script.js new file mode 100644 index 0000000..30d9b4a --- /dev/null +++ b/aulas-javascript/exercicios/aula1/script.js @@ -0,0 +1,13 @@ + +let idade = prompt('Qual é sua idade? Digite a resposta em numerais, por favor.'); + +function checarSePodeDirigir(idade) { + + if(idade >= 18) { + alert('Já pode dirigir!'); + } else { + alert('Ainda não pode dirigir!'); + } +} +checarSePodeDirigir(idade) + diff --git a/aulas-javascript/exercicios/aula2/2index.html b/aulas-javascript/exercicios/aula2/2index.html new file mode 100644 index 0000000..d826131 --- /dev/null +++ b/aulas-javascript/exercicios/aula2/2index.html @@ -0,0 +1,31 @@ + + + + + + Atividade 2 de Javascript + + + + + +
+
+ Compare seus números +
+ + +
+ +
+ + +
+ + + + +
+ + + \ No newline at end of file diff --git a/aulas-javascript/exercicios/aula2/2script.js b/aulas-javascript/exercicios/aula2/2script.js new file mode 100644 index 0000000..3a63d22 --- /dev/null +++ b/aulas-javascript/exercicios/aula2/2script.js @@ -0,0 +1,33 @@ +function saoDiferentes() { + let input1 = document.getElementById("num1").value + let input2 = document.getElementById("num2").value + + if(input1 !== input2) { + let diferentes = document.createElement('div'); + diferentes.innerText = 'Os valores são diferentes'; + document.body.append(diferentes); + diferentes.style.color = '#33CCCC'; + + setTimeout(() => { + diferentes.remove() + }, 1000); + + + } else { + let iguais = document.createElement('div'); + iguais.innerText = 'Não são diferentes'; + document.body.append(iguais); + iguais.style.color = '#FF0033' + + setTimeout(() => { + iguais.remove() + }, 1000); + + } + +} + +function resetar() { + document.getElementById('num1').value = '' + document.getElementById('num2').value = '' +}