Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.
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
13 changes: 13 additions & 0 deletions 02_TUTORIAL/Semana 3/curriculo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.changes{
color: blue;
border-bottom: 1px solid black;
padding: 10px 0px 20px 10px;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.514);
}
*{
font-family: monospace;
}
.changes:hover{
background-color: rgb(41, 32, 167);
color: white;
}
22 changes: 22 additions & 0 deletions 02_TUTORIAL/Semana 3/curriculo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="PT-BR">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="curriculo.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Curriculo</title>
</head>
<body>
<h1 class="changes">Curriculo de Arthur Reis</h1>
<img src="minhaimagem-250.jpg" alt="Foto/Arthur">
<h2 class= "changes">Arthur Alberto Cardoso Reis</h2>
<h2 class="changes">Data de nascimento:22/03/2003</h2>
<h2 class="changes">E-mail:[email protected]</h2>
<h2 class="changes" >Contato:(11) 948653544</h2>
<h2 class="changes">Experiência profissional:Fundou de projeto social e trabalhou como jovem aprendiz em farmácia</h2>
<h2 class="changes" >Objetivos na vida:Continuar como o projeto social e trabalhar na área de gestão de investimentos.</h2>


</body>
</html>
58 changes: 58 additions & 0 deletions 04_AUT_EST_EX_OBRIGATORIOS/Exs7_personalização/Ex1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Padaria do gerçu</title>
<link rel = "stylesheet" href = "style.css">
<script src = "script.js"></script>
</head>
<body>

<div class="statement">
<img src = "pintin.jpg">
Foracosta (versão brasileira: Ebert Richa)
</div>
<div class="interface">
<div class="item">
Pastel com caldicana gelá (Pastel com caldo de cana gelado em Pernambucano [R$8 a unidade])
</div>
<div class="buttons">
<div class = "column">


</div>
<div class="inputs">
<button onclick = "less()">-</button>
<input id = "entrada" type = "number">
<button onclick = "plus()">+</button>
<button onclick = "save()">Salvar</button>
</div>
<div id="result">
<div class="texto">
Resultado
</div>
<div class = "row">
<div class="quantTexto">
Quantidade:
</div>
<div id="quantValor">

</div>
</div>
<div class="row">
<div class="valorTexto">
Valor Final:
</div>
<div id="R$">R$</div>
<div id="valorValor">

</div>
</div>
</div>
</div>
</div>

</body>
</html>
26 changes: 26 additions & 0 deletions 04_AUT_EST_EX_OBRIGATORIOS/Exs7_personalização/Ex1/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
var qtd = 0
var valor = 0
var preco = 8
var resultado

function less() {
qtd -= 1;
valor -= 8;
document.getElementById("quantValor").innerHTML = qtd;
document.getElementById("valorValor").innerHTML = (Number(qtd)*preco);
document.getElementById("entrada").value = qtd;
}

function plus() {
qtd += 1;
valor += 8;
document.getElementById("quantValor").innerHTML = qtd;
document.getElementById("valorValor").innerHTML = (Number(qtd)*preco);
document.getElementById("entrada").value = qtd;
}

function save() {
qtd = Number(document.getElementById("entrada").value);
document.getElementById("quantValor").innerHTML = qtd;
document.getElementById("valorValor").innerHTML = (Number(qtd)*preco);
}
43 changes: 43 additions & 0 deletions 04_AUT_EST_EX_OBRIGATORIOS/Exs7_personalização/Ex1/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
* {
margin: 0%;
justify-content: center;
align-items: center;
}

img {
width: 200px;
}

.statement {
display: flex;
flex-direction: column;
font-size: 30px;
}

.item {
display: flex;
flex-direction: column;
font-size: 20px;
margin-top: 40px;
}
.buttons {
margin-top: 20px;
display: flex;
flex-direction: column;
}
.row {
height: 20px;
display: flex;
justify-content: center;
}
#quantValor {
margin-left: 4px;
}
#valorValor {
margin-left: 4px;
}
#result {
display: flex;
flex-direction: column;
justify-content: center;
}
23 changes: 23 additions & 0 deletions 04_AUT_EST_EX_OBRIGATORIOS/Exs7_personalização/Ex2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src = "script.js"></script>
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
<div class="container">
<input id = "teste">
<input id = "teste1">
<div class="button">
<button class="botao" onclick = "troca()">Trocar</button>
</div>
</div>
<script>

</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function troca() {
let valor1 = document.getElementById("teste").value;
let valor2 = document.getElementById("teste1").value;
document.getElementById("teste").value = valor2;
document.getElementById("teste1").value = valor1;


}
15 changes: 15 additions & 0 deletions 04_AUT_EST_EX_OBRIGATORIOS/Exs7_personalização/Ex3/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src = "script.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
<input id = "phoneNumber">
<button onclick = "check()">Check</button>
</body>
</html>
12 changes: 12 additions & 0 deletions 04_AUT_EST_EX_OBRIGATORIOS/Exs7_personalização/Ex3/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function check() {
var numero = document.getElementById("phoneNumber").value
if (numero.length > 13) {
alert("Formato não aceito, siga o exemplo abaixo:\n(00)0000-0000")
}
else if (numero.length < 13) {
alert("Formato não aceito, siga o exemplo abaixo:\n(00)0000-0000")
}
else if (numero[0] == "(" && numero[3] == ")" && numero[8] === "-") {
alert("Formato aceito")
}
}
28 changes: 28 additions & 0 deletions 04_AUT_EST_EX_OBRIGATORIOS/Exs7_personalização/Ex4/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="script.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
Insira aqui a quantidade de pessoas
<input type = "number" id = "pessoas">
<form>
<div class="l">
Qual o horário da viagem?
</div>
<input type="radio" id="diurno" name="turno" value=200>
<label for="diurno">Diurno</label><br>
<input type="radio" id="noturno" name="turno" value=100>
<label for="noturno">Noturno</label>
</form>
<button onclick = "calculate()">Calculate</button>
<div id="result">

</div>
</body>
</html>
32 changes: 32 additions & 0 deletions 04_AUT_EST_EX_OBRIGATORIOS/Exs7_personalização/Ex4/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
function calculate(){
var preco
var desconto
var resultado
var qtd = Number(document.getElementById("pessoas").value)
let condicao = Number($('input[name="turno"]:checked').val())
if (condicao == 200) {
if (qtd <= 50) {
preco = 200;
resultado = qtd*preco;
$("#result").html("Valor total: " + resultado);
} else {
preco = 200 - 40/100*200;
resultado = qtd * preco;
$("#result").html("Valor total: " + resultado);
}
}
else if (condicao == 100) {
if (qtd <= 50) {
preco = 100;
resultado = qtd*preco;
$("#result").html("Valor total: " + resultado);
} else {
preco = 100 - 20/100*100;
resultado = qtd * preco;
$("#result").html("Valor total: " + resultado);
}
}
else {
$("#result").html("Você não selecionou um período ainda")
}
}
21 changes: 21 additions & 0 deletions 04_AUT_EST_EX_OBRIGATORIOS/Exs7_personalização/Ex5/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<link rel = "stylesheet" href = "styles.css">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src = "script.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
<input id = "valorEntrada">
<div id="buttons">
<button onclick = "adicionar()" id = "confirm">ADD</button>
<button onclick = "save()" id = "save">SAVE</button>
</div>
<div id="result"></div>
<div id="values"></div>
</body>
</html>
Loading