-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheletiva_math.html
134 lines (114 loc) · 4.13 KB
/
eletiva_math.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head >
<p>calculos com potência , mutipliticao e diviso</p>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title >my calculation</title>
</head>
<body>
<input type="text" id="hhh">
<br>
<br>
<input type="text" id="my_js">
<b></b> <button onclick="go()" id="jjj">calcule</button>
<div>
<h1 id="rrr"></h1>
<br>
<br>
<br>
<br>
<h1 style="font-family: arial;">my other projet</h1>
<br><div color="black">
<a href="number random.html">steve jobs</a>
</br>
<a href="\eletiva_1\hbb.html">calculation</a>
<br>
<a href="\eletiva_1\Nova pasta\New folder\sitema _de_longi.html">sistema de longi</a>
</br>
</div>
<script>
document.body.style.background= "black"
function go() {
//aqui foi declarado uma funcao chamada go
var numero1 = parseInt(document.getElementById('hhh').value);//essa duas variave pega os valores do Input
var numero2 = parseInt(document.getElementById('my_js').value)
var not_a_number = document.getElementById("rrr");//não é um numero
var change_value = document.getElementById("button")
var mutipliticao = Number(numero1*numero2)/*this 3 varible get value (multiplication, division in potentiation)*/
var divisao = Number(numero1/numero2)
var poteciação = Number(numero1**numero2);
var po = numero1/100//um sinal (/)represeda divisao no javascript e no python equado duas(//)e pra cometa
var re = po*numero2
if (isNaN(poteciação)) {
//codicao serais executado se os input nao for numero
var test =document.getElementById("rrr")
test.textContent = "not a numbers";
} else {
//else ou (outro ,outra) no ingle serais executado se a codicao do if(se) for falsa
var oooj =document.getElementById("rrr").textContent = "essa conta em mutiplição fica = " +mutipliticao+ " em divisao fica = "+ divisao + " em poteciação ="+poteciação+" E em pocetagem"+numero1+"%"+"de"+numero2 +"="+re
}console.log(oooj)
console.log(this)//iprimi no console a variave oooj que amazena o valor do relsudado
}//curso em video
</script>
<style>
@keyframes animatio{
0%{
color :black;
}30%{
color: rgb(253, 21, 0);
}
50%{
color :"red";
}
100%{
color: rgb(9, 144, 255);
}
}
#hhh {
color:red;
background-color: rgb(4, 139, 206);
}
#rrr {
position: absolute;
top: 129px;
color: black;
background-color: orange;
font-family: fantasy;
animation-name:animatio;
animation-duration: 69s;
animation-iteration-count: infinite;
}
#my_js {
color: black;
background-color: green;
}
#jjj {
position: absolute;
top: 69px;
left: 199px;
height: 33px;
background-color:white;
color: rgb(54, 1, 248);
font-family: impact;
scale:90%;
}
p {
color: blue;
font-family: impact;
}
input {
height: 33px;
}div{
height:169px;
position: static;
background-color: #232F3E;
top: 66px;
left: 40%;
}
a{
color:rgb(248, 248, 248);
}
</style>
</body>
</html>