-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquestion4.html
More file actions
203 lines (189 loc) · 5.06 KB
/
question4.html
File metadata and controls
203 lines (189 loc) · 5.06 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8">
<title>Desafio!</title>
<style>
#ponto {
position: absolute;
margin-top: 120%;
margin-left: 30%;
}
#q1 {
border: 1px solid black;
border-radius: 100%;
width: 30px;
height: 30px;
float: left;
background-color: white;
}
#q2 {
border: 1px solid black;
border-radius: 100%;
width: 30px;
height: 30px;
float: left;
background-color: white;
}
#q3 {
border: 1px solid black;
border-radius: 100%;
width: 30px;
height: 30px;
float: left;
background-color: white;
}
#q4 {
border: 1px solid black;
border-radius: 100%;
width: 30px;
height: 30px;
float: left;
}
#q5 {
border: 1px solid black;
border-radius: 100%;
width: 30px;
height: 30px;
float: left;
}
#titulo {
position: absolute;
z-index: 1;
margin-left: 0%;
margin-right: 16%;
width: 150px;
right: 40px;
}
#sub {
position: absolute;
z-index: 2;
margin-top: 10%;
margin-left: 30%;;
margin-right: 20%;
}
#quest4{
position: absolute;
background-color: white;
margin-top: 40%;
margin-left: 15%;
margin-right: 15%;
font-size: 16px;
text-align: center;
border: 5px solid rgba(130, 200, 130, 0.9);
border-left: 1px solid rgba(130, 200, 130, 0.9);
border-top: 1px solid rgba(130, 200, 130, 0.9);
border-radius: 5%;
width: 300px;
height: 310px;
animation: move1 3s alternate infinite;
}
#img{
text-align: center;
font-size: 30px;
margin-top: 40%;
margin-left: 15%;
margin-right: 15%;
border-radius: 5%;
border: 5px solid rgba(130, 200, 130, 0.9);
border-left: 1px solid rgba(130, 200, 130, 0.9);
border-top: 1px solid rgba(130, 200, 130, 0.9);
width: 300px;
height: 310px;
animation: ani 1s;
background-image: url("1000054006.jpg");
background-repeat: no-repeat;
background-size: 300px 310px;
}
#img2{
text-align: center;
font-size: 30px;
margin-top: 40%;
margin-left: 15%;
margin-right: 15%;
border-radius: 5%;
border: 5px solid rgba(130, 200, 130, 0.9);
border-left: 1px solid rgba(130, 200, 130, 0.9);
border-top: 1px solid rgba(130, 200, 130, 0.9);
width: 300px;
height: 310px;
animation: ani, move1 1s alternate infinite;
background-image: url("1000054135 (1).jpg");
background-repeat: no-repeat;
}
@keyframes ani {
0% {background-image: url("1000054008.jpg");
}
100% {background-image: url("1000054006.jpg" );
}
}
@keyframes move1 {
from {
border: 5px solid rgba(130, 200, 130, 0.9);
border-left: 1px solid rgba(130, 200, 130, 0.9);
border-top: 1px solid rgba(130, 200, 130, 0.9);
}
to {
border: 5px solid rgba(130, 200, 130, 0.9);
border-right: 1px solid rgba(130, 200, 130, 0.9);
border-top: 1px solid rgba(130, 200, 130, 0.9);
}
}
</style>
</head>
<body>
<div id="titulo">
<h1>Desafio!</h1>
</div>
<div id="sub">
<p>Teste seu conhecimento.</p>
</div>
<div id="quest4">
<p>Qual das alternativas a seguir não é uma das responsabilidades do empregador em relação à segurança do trabalho?</p>
<form>
<label>1- Fornecer EPIs adequados aos trabalhadores.</label><br>
<label>2- Treinar os trabalhadores sobre os riscos ocupacionais.</label><br>
<label>3-Garantir um ambiente de trabalho seguro e saudável.</label><br>
<label>4- Registrar os acidentes de trabalho.</label><br>
<label>5- Cobrar dos colaboradores pelos EPIs.</label><br>
<input id="op" >
</form>
<button id="conferir" onclick="certo()">CONFERIR</button>
</div>
<div id="ponto">
<p id="q1"></p>
<p id="q2"></p>
<p id="q3"></p>
<p id="q4"></p>
<p id="q5"></p>
</div>
</body>
<script src="log.js"></script>
<script>
window.onload = function marcar(b, c, d) {
b = document.querySelector("#q1");
b.style.backgroundColor = "green";
c = document.querySelector("#q2");
c.style.backgroundColor = "green";
d = document.querySelector("#q3");
d.style.backgroundColor = "green";
};
function certo(a, resposta1, resposta2) {
a = document.querySelector("#op").value;
resposta1= "Cobrar dos colaboradores pelos EPIs";
resposta2= "Cobrar dos colaboradores pelos EPIs ";
if (a == resposta1 || a == resposta2) {
const valor = Number(localStorage.getItem('certo'));
const valorA = valor+1;
localStorage.setItem('certo', JSON.stringify(valorA));
document.querySelector("body").innerHTML = '<p id="img">PARABÉNS.</p>';
setTimeout( function() {
window.location.assign("question5.html");}, 3000);
}
else {
document.querySelector("body").innerHTML = '<p id="img2">Errado.</p>';
setTimeout( function() {
window.location.assign("question5.html");}, 3000);
}
}</script>
</html>