-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
176 lines (161 loc) · 5.06 KB
/
Copy pathindex.html
File metadata and controls
176 lines (161 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
<!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">
<title>Mathifun - Learn all your facts in a fun way!</title>
<link rel="icon" type="image/x-icon" href="logo.ico">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@200&display=swap" rel="stylesheet">
</head>
<body>
<div id="allDiv">
<h1>Mathifun</h1>
<p id="pointsPrint"></p>
<p id="roundPrint">Round: 1</p>
<p style="position: relative; top: -11px;"><i><b id="problemRoundPrint">(You have 20 problems left before next
round.)</b></i></p>
<input type="input" id="problemNumScentence" onselectstart="return false" oncut="return false" oncopy="return false"
onpaste="return false" ondrag="return false" ondrop="return false" readonly/> <input value="?"
onclick="val()"
type="input"
id="usersAnswer"/>
<p><b><i id="forDivisionOnly"></i></b></p>
<br>
<br>
<input value="Submit" type="button" onmouseleave="mouseOverEventStart('mouseleave')"
onmouseover="mouseOverEventStart('mouseover')" onclick="submit()" class="usersAnswerButton"/>
<br>
<br>
<p>©️ Copyright 2022-2024 Mathifun</p>
</div>
<div id="rockPaperScissors">
<h1>Rock paper scissors game!</h1>
<h2>Playing vs <img width="34px" src="botPic.png" draggable="false"/></h2>
<button class="rockPaperScissorsBtns" id="rock" onclick="choseObjRPS(this)">🪨</button>
<button class="rockPaperScissorsBtns" id="paper" onclick="choseObjRPS(this)">📃</button>
<button class="rockPaperScissorsBtns" id="scissors" onclick="choseObjRPS(this)">✂️</button>
<h1>Have a lucky game!
</h1>
<h1 id="resultPrintRPS">ROCK PAPER SCISSORS SHOOT!</h1><br><br>
</div>
<div id="feedback" style="visibility: hidden">
<h1>✔️Correct!</h1>
<h3>Keep it up!</h3>
</div>
</body>
<script src="script.js"></script>
<style>
@keyframes fadeInAnimation {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fadeOutAnimation {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.correctAnswer{
animation: fadeInAnimation ease 0.5s;
background: lightgreen;
width: 311px;
text-align: center;
height: 115px;
border: #328832 7px solid;
left: 415px;
position: absolute;
top: 169px;
}
.incorrectAnswer{
animation: fadeInAnimation ease 0.5s;
background: #ffe8e8;
width: 311px;
text-align: center;
height: 115px;
border: #d30000 7px solid;
left: 415px;
position: absolute;
top: 169px;
}
.usersAnswerButton {
background-color: #3498db;
color: #fff;
padding: 10px 20px;
font-size: 12px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.usersAnswerButton:hover {
background-color: #2980b9;
}
.rockPaperScissorsBtns {
background-color: #3498db;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 50px;
transition: background-color 0.3s ease;
}
.rockPaperScissorsBtns:hover {
background-color: #2980b9;
}
body {
font-family: 'Nunito', sans-serif;
}
#problemNumScentence {
background-color: #eeeeee;
cursor: not-allowed;
width: 12%;
padding: 10px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
#usersAnswer {
background-color: #ffffff;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 12px;
margin-top: 20px;
text-align: center;
}
#allDiv {
border: darkblue solid 6px;
padding: 16px;
text-align: center;
height: auto;
width: 644px;
left: 21%;
position: absolute;
resize: horizontal;
overflow: auto;
}
#rockPaperScissors {
background: linear-gradient(to right, #ffa0a0 25%, #ffea9d 25%, #ffcc02 50%, #e84f47 50%, #e84f47 75%, #65c1ac 75%);
visibility: hidden;
border: darkblue solid 6px;
padding: 16px;
text-align: center;
height: auto;
width: 644px;
left: 21%;
position: absolute;
background-color: white;
}
</style>
</html>