-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
171 lines (171 loc) · 3.65 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
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
<!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" />
<link rel="stylesheet" href="style.css" />
<link rel="apple-touch-icon" sizes="180x180" href="public/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="public/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="public/favicon-16x16.png" />
<link rel="manifest" href="public/site.webmanifest" />
<title>چالش سرعت</title>
</head>
<body style="font-family: iransans">
<div
style="
max-width: 400px;
width: 90vw;
margin: 100px auto 10px auto;
border: 2px dashed gray;
border-radius: 10px;
padding: 50px 10px;
"
id="first-box"
>
<h1 style="text-align: center">🚀 چالش سرعت</h1>
<p
style="
text-align: center;
margin: 5px 30px;
direction: rtl;
font-size: 1.7em;
"
>
در این بازی با انجام محاسبات ساده ریاضی در سرعت بالا خود را به چالش
بکشید.
</p>
<button id="play">بزن بریم</button>
</div>
<div
style="
max-width: 400px;
width: 90vw;
margin: 10px auto;
border: 2px dashed gray;
border-radius: 10px;
padding: 10px;
"
id="exp-box"
hidden
>
<div
style="position: relative; padding: 70px 10px; margin: 90px 0 10px 0"
>
<div
style="
font-size: 5em;
display: inline-block;
position: absolute;
top: 14.5%;
left: 13%;
width: 120px;
text-align: center;
"
id="num1"
></div>
<div
style="
font-size: 5em;
display: inline-block;
position: absolute;
top: 13%;
left: 44%;
right: 44%;
"
id="symbol"
></div>
<div
style="
font-size: 5em;
display: inline-block;
position: absolute;
top: 14.5%;
right: 13%;
width: 120px;
text-align: center;
"
id="num2"
></div>
</div>
<div style="padding: 0 20px; position: relative">
<input
type="number"
name="result"
id="result"
style="
display: block;
width: 50%;
margin: 3px auto;
padding: 10px;
border-radius: 5px;
border: 2px solid gray;
font-size: 3.5em;
text-align: center;
"
/>
<br />
<button id="next">بعدی</button>
</div>
</div>
<div
style="
max-width: 400px;
width: 90vw;
margin: 170px auto 10px auto;
border: 2px dashed gray;
border-radius: 10px;
padding: 10px;
"
id="result-box"
hidden
>
<h2 style="text-align: center" id="result-title">نتیجه</h2>
<p
style="
margin: 10px;
text-align: center;
font-size: 1.5em;
font-weight: bolder;
"
id="game-time"
></p>
<div
style="
display: inline-block;
width: 38%;
margin: 5px 20px;
border: none;
border-radius: 7px;
background-color: #f3eded;
padding: 5px;
text-align: center;
justify-content: center;
color: #ef5656;
font-weight: bold;
font-size: 1.5em;
"
id="invalid-ans"
></div>
<div
style="
display: inline-block;
width: 38%;
margin: 5px auto;
border: none;
border-radius: 7px;
background-color: #f3eded;
padding: 5px;
text-align: center;
justify-content: center;
color: #62ed17;
font-weight: bold;
font-size: 1.5em;
"
id="valid-ans"
></div>
<button id="play-again">دوباره</button>
</div>
</body>
<script src="main.js"></script>
</html>