-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
107 lines (94 loc) · 1.88 KB
/
index.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
<html>
<head>
<meta charset="utf-8">
<title>LightQuiz</title>
<script src="quiz.js"></script>
<style>
body {
font-family: Arial;
font-size: 4vh;
text-align: center;
}
header {
position: sticky;
top: 0;
background-color: white;
padding: 3vh;
}
#score {
color: green;
}
#fails {
color: red;
}
button {
font-size: 3vh;
width: 90vw;
padding: 20px;
border-radius: 20px;
border-width: 1px;
}
#first {
background-color: dodgerblue;
color: white;
}
#second {
background-color: slateblue;
color: white;
}
#third {
background-color: mediumseagreen;
color: white;
}
#fourth {
background-color: maroon;
color: white;
}
#proofs-btn {
font-size: 2.5vh;
width: 40vw;
padding: 20px;
background-color: dodgerblue;
color: white;
}
#theorems-btn {
font-size: 2.5vh;
width: 40vw;
padding: 20px;
background-color: yellow;
color: black;
}
#splash {
background-color: white;
transition: 0.3s;
position: fixed;
top:0;
width: 100vw;
height: 100vh;
z-index: 1000;
color: white;
padding-top: 20vh;
opacity: 0.9;
}
img {
max-width: 90%;
max-height: 40vh;
width: auto;
}
</style>
</head>
<body>
<div id="splash" style="visibility:hidden;"></div>
<span id="main">
<header id="main-header">
Score: <span id="score">0</span> Fails: <span id="fails">0</span> <span style="color:dodgerblue">(<span id="rem">0</span>/<span id="tot">0</span>)</span>
<br>
<div id="question"></div>
</header>
<button onclick="answer(0)" id="first"></button><br>
<button onclick="answer(1)" id="second"></button><br>
<button onclick="answer(2)" id="third"></button><br>
<button onclick="answer(3)" id="fourth"></button><br>
</span>
</body>
</html>