Skip to content

Commit 4269fab

Browse files
Minor Fixes and Performance Improvements
1 parent 32d5e11 commit 4269fab

6 files changed

Lines changed: 8 additions & 78 deletions

File tree

css/calc.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ body {
1414
font-family: 'Poppins', sans-serif;
1515
font-size: 1.4rem;
1616
height: 100vh;
17+
overflow: hidden;
1718
}
1819

1920
.dark-mode {
@@ -29,7 +30,7 @@ header img {
2930
height: 40px;
3031
border-radius: 50%;
3132
max-width: 100%;
32-
margin: 10px;
33+
margin: 0 10px;
3334
position: relative;
3435
box-shadow: 0px 0px 5px 4px black;
3536
background-color: gray;

html/code-together0.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ <h4>Calcular Média</h4>
4242
<input type="text" id="resultado" readonly>
4343
</div>
4444
<div class="situacao">
45-
<input id ="state" class="reset" readonly></input>
45+
<input id ="state" readonly></input>
4646
</div>
4747
<div class="clean">
48-
<button id="button1" class="reset" onclick="reset()">Reset</button>
48+
<button id="button1" id="reset" class="reset" onclick="reset()">Reset</button>
4949
</div>
5050
</form>
5151
</div>

js/code-together0.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,4 @@ function MediaCalc() { //Calcular média
4646

4747
console.log(media);
4848
console.log(a + b + c + d)
49-
50-
//Reset Button
51-
52-
document.getElementByClassName('reset').reset();
5349
}

js/dark-mode.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,4 @@ function darkMode() {
77
} else {
88
image.src = "../images/dark.webp";
99
}
10-
}
11-
12-
let valor = 30000
13-
let prestacao = 750
14-
let entrada = 3000
15-
16-
(valor -= entrada) / prestacao
17-
18-
console.log(valor)
19-
20-
let f = branco + preto + cinza
21-
f.length
10+
}

tarefa/css/calc.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ body {
1414
font-family: 'Poppins', sans-serif;
1515
font-size: 1.4rem;
1616
height: 100vh;
17+
overflow: hidden;
1718
}
1819

1920
.dark-mode {
@@ -29,7 +30,7 @@ header img {
2930
height: 40px;
3031
border-radius: 50%;
3132
max-width: 100%;
32-
margin: 10px;
33+
margin: 0 10px;
3334
position: relative;
3435
box-shadow: 0px 0px 5px 4px black;
3536
background-color: gray;

tarefa/html/code-together0.html

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -55,61 +55,4 @@ <h4>Calcular Média</h4>
5555
</footer>
5656
</main>
5757
</body>
58-
</html>
59-
60-
<pre>
61-
Exercícios:
62-
1. Resolva as operações:
63-
● 10 + 15 = 25 (number)
64-
● “10” + 2 = 102 (string)
65-
● “10” * 2 = 20 (number)
66-
● “10” / 3 = 3.33(float)
67-
● “10” % 3 = 1(float)
68-
● 10 + true = 11 (number)
69-
● 10 == ”10” = true (boolean)
70-
● 10 === “10” = false (boolean)
71-
● 10 < 11 = true (boolean)
72-
● 10 > 12 = false (boolean)
73-
● 10 <= 10.1 = true (boolean)
74-
● 10 > 9.99 = true (boolean)
75-
● 10 != “dez” = true (boolean)
76-
● “dez” + true = deztrue (string)
77-
● 10 + false = 10 (number)
78-
● 10 * false = 0 (number)
79-
● true + true = 2 (number)
80-
● 10++ = 11 (number)
81-
● 10-- = 9 (number)
82-
● 1 & 1 = 1 (number)
83-
● 1 & 0 = 0 (number)
84-
● 0 & 0 = 0 (number)
85-
● 1 & 0 = 0 (number)
86-
● 0 / 1 = 0 (number)
87-
● 5 + 5 == 10 = true (boolean)
88-
● “5” + ”5” == 10 = false (boolean)
89-
● “5” * 2 > 9 = true (boolean)
90-
● (10 + 10) * 2 = 40 (number)
91-
● 10 + 10 * 2 = 30 (number)
92-
93-
2. Responda as perguntas de acordo com as variáveis.
94-
var branco = “preto”;
95-
var preto = “cinza”;
96-
var cinza = “branco”;
97-
var carro = “preto”;
98-
var valor = 30000;
99-
var prestacao = 750;
100-
101-
a) branco == “branco” - false (boolean)
102-
b) branco == cinza - false (boolean)
103-
c) carro === branco - true (boolean)
104-
d) var cavalo = carro == “preto” ? “cinza” : “marron”; Resposta: true - "cinza"
105-
e) Quantas prestações são necessárias para pagar o valor do carro com uma entrada
106-
de 3.000? Demonstre a operação.
107-
let valor = 30000
108-
let prestacao = 750
109-
let entrada = 3000
110-
111-
(valor -= entrada) / prestacao
112-
f) Somando as variáveis de cores é formada uma string de quantos caracteres?
113-
let f = branco + preto + cinza
114-
f.length
115-
</pre>
58+
</html>

0 commit comments

Comments
 (0)