Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions execicio01.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Escrevento</title>
<style>
body p{
color: blue;
font-size: 18pt;
font-family: Arial, Helvetica, sans-serif;
}
</style>

</head>
<body>
<input type="button" value="Click para escrever" onclick="escrever()">
<p id="texto"></p>

<script>

function escrever(){
var a = ['a' , 'm' , 'b' , 'i' , 't' , 'u' , 's', '.' , 'i' , 'o']
var res = document.getElementById('texto')
res.innerHTML= a[0]+ a[1]+ a[2] + a[3]+ a[4]+ a[5]+ a[6]+ a[7]+ a[8] + a[9]
}
</script>

</body>
</html>
32 changes: 32 additions & 0 deletions exercicio02.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Elementos</title>
<style>
body{
background-color: cornflowerblue;
}
p{
color: cornsilk;
font-size: 20pt;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
</style>
</head>
<body>
<p id="elementos"></p>

<script>
var a = ['o', undefined, null, 'l', undefined, 'a', 'null', null]

if(a[0] == 'o' && a[1] == undefined && a[2] == null && a[3]== 'l' && a[4]== undefined && a[5]== 'a' && a[6] == 'null' && a[7] == null){
var res = document.getElementById('elementos')
res.innerHTML= a[0]+ a[3]+ a[5]+ a[6]

}
</script>
</body>
</html>
77 changes: 77 additions & 0 deletions exercicio03.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Timeout</title>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 15pt;
color: rgb(65, 58, 59);
}
</style>
</head>

<body>
<h1>Exibir Caracteres</h1>

<input type="button" value="Começar" onclick="car()">

<script>
function car(){
function c1(){
document.write('a')
}
setTimeout(c1, 3000)

function c2(){
document.write('m')
}
setTimeout(c2, 6000)

function c3(){
document.write('b')
}
setTimeout(c3, 9000)

function c4(){
document.write('i')
}
setTimeout(c4, 12000)

function c5(){
document.write('t')
}
setTimeout(c5,15000)

function c6(){
document.write('u')
}
setTimeout(c6, 18000)

function c7(){
document.write('s')
}
setTimeout(c7, 21000)

function c8(){
document.write('.')
}
setTimeout(c8, 24000)

function c9(){
document.write('i')
}
setTimeout(c9, 27000)

function c10(){
document.write('o')
}
setTimeout(c10, 30000)

}
</script>
</body>
</html>
14 changes: 14 additions & 0 deletions exercicio04.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<input type="button" value="Exibir Nomes" onclick="nomes()">
<p id="texto"></p>
<script src="script.js"></script>
</body>
</html>
26 changes: 26 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
function nomes(){
var lista = [
{
nome: "Thiago",
idade: 4567
},
{
nome: "Caio",
idade: 8
},
{
nome: "Bruno",
idade: 24
}
]


for(let pos = 0; pos< lista.length; pos++){

var res = document.getElementById('texto')
res = document.write(lista[pos].nome)
}


}