-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
78 lines (74 loc) · 3.04 KB
/
index.html
File metadata and controls
78 lines (74 loc) · 3.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>The 100+ Digits of Pi Game</title>
<link rel="stylesheet" href="style.css">
<link id="favicon" rel="icon" type="image/x-icon" href="piHappy.png">
<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=Schoolbell&display=swap" rel="stylesheet">
</head>
<body>
<div id="mainDiv">
<h1>The 100+ Digits of Pi Game</h1>
<h2 id="piDayWish"></h2>
<img id="piImage" class="piImage" src="pi.png" draggable="false"/>
<br>
<br>
<h3 id="stopwatchPrint">🕒Start guessing to start stopwatch</h3>
<textarea id="guessedDigitsInput" placeholder="Start guessing using buttons or text input." readonly>
</textarea>
<button class="guessingButtons">1</button>
<button class="guessingButtons">2</button>
<button class="guessingButtons">3</button>
<button class="guessingButtons">4</button>
<button class="guessingButtons">5</button>
<button class="guessingButtons">6</button>
<button class="guessingButtons">7</button>
<button class="guessingButtons">8</button>
<button class="guessingButtons">9</button>
<button class="guessingButtons">0</button>
<button class="guessingButtons">.</button>
<br>
<br>
<input type="text" placeholder="enter digit" id="guessingInput" class="guessingButtons"/>
<br>
<p id="triesLeftSign">5 tries left</p>
<button id="piSongButton" class="tools" onclick="togglePiSongVisibility(this)">📻Open Pi Song (x1)</button>
<button class="tools" onclick="getHint(this)">💡Hint (x2)</button>
<button class="tools" id="resignButton" onclick="gameFinished('Lost', this)">🏳️Resign</button>
</div>
<br>
<div id="hintsBox" class="hintsBox">
<h2>Hints</h2>
<li class="hintParagraphs"></li>
<li class="hintParagraphs" style="visibility: hidden"></li>
<br>
</div>
<div id="gameOverPopup">
<h1>Game Over!</h1>
<p id="endOfGameStatusDisplay">You lost.</p>
<img id="gameOverPiImage" src="lost.png" class="piImage" style="width: 54px" draggable="false"/>
<br>
<br>
<button class="gameOverPopupButtons" onclick="playAgain()">Play Again</button>
<button class="gameOverPopupButtons" onclick="showAnswer(this)">Answer</button>
<button class="gameOverPopupButtons" onclick="showUsersAnswer(this)">Your Answer</button>
<button class="gameOverPopupButtons" onclick="displayStats(this)">Stats</button>
<p id="gameAnswerParagraph"></p>
<p id="usersAnswerParagraph"></p>
<p id="statsParagraph"></p>
<p id="statsTimeParagraph"></p>
</div>
<div id="videoDiv" class="videoDiv">
<iframe id="asapVideo" width="1495px" height="500px"
src="https://www.youtube.com/embed/3HRkKznJoZA?autoplay=0&showinfo=0&controls=0" frameborder="0"
allowfullscreen></iframe>
<br>
<br>
<button onclick="togglePiSongVisibility()" class="tools">Close</button>
</div>
</body>
<script src="script.js"></script>
</html>