-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
159 lines (148 loc) · 7.39 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Ethan's Proverb Puzzle Page</title>
<style type="text/css">
* {
text-align:center;
}
body {
background-image: radial-gradient(circle farthest-corner at center, #FFFFFF 0%, #00A3EF 100%);
color:black;
width:900px;
margin:0 auto;
}
table {
background-color:skyblue;
opacity:0.8;
filter: alpha(opacity=80);
border:2px solid black;
}
td {
border: 1px solid #999;
padding: 0.5rem;
}
input {text-align:left;}
h2 {font-size:24.0pt;}
</style>
</head>
<body>
<script type="text/javascript" src="javascript.js"></script>
<h2>Ethan's Proverb Puzzle Page</h2>
<table>
<caption> Guess the proverb! </caption>
<tr>
<td id="1" onclick="reveal(1)"></td>
<td id="2" onclick="reveal(2)"></td>
<td id="3" onclick="reveal(3)"></td>
<td id="4" onclick="reveal(4)"></td>
<td id="5" onclick="reveal(5)"></td>
<td id="6" onclick="reveal(6)"></td>
<td id="7" onclick="reveal(7)"></td>
<td id="8" onclick="reveal(8)"></td>
<td id="9" onclick="reveal(9)"></td>
<td id="10" onclick="reveal(10)"></td>
<td id="11" onclick="reveal(11)"></td>
<td id="12" onclick="reveal(12)"></td>
<td id="13" onclick="reveal(13)"></td>
<td id="14" onclick="reveal(14)"></td>
<td id="15" onclick="reveal(15)"></td>
<td id="16" onclick="reveal(16)"></td>
<td id="17" onclick="reveal(17)"></td>
<td id="18" onclick="reveal(18)"></td>
<td id="19" onclick="reveal(19)"></td>
<td id="20" onclick="reveal(20)"></td>
<td id="21" onclick="reveal(21)"></td>
<td id="22" onclick="reveal(22)"></td>
<td id="23" onclick="reveal(23)"></td>
<td id="24" onclick="reveal(24)"></td>
<td id="25" onclick="reveal(25)"></td>
<td id="26" onclick="reveal(26)"></td>
<td id="27" onclick="reveal(27)"></td>
<td id="28" onclick="reveal(28)"></td>
<td id="29" onclick="reveal(29)"></td>
<td id="30" onclick="reveal(30)"></td>
<td id="31" onclick="reveal(31)"></td>
<td id="32" onclick="reveal(32)"></td>
<td id="33" onclick="reveal(33)"></td>
<td id="34" onclick="reveal(34)"></td>
<td id="35" onclick="reveal(35)"></td>
<td id="36" onclick="reveal(36)"></td>
<td id="37" onclick="reveal(37)"></td>
<td id="38" onclick="reveal(38)"></td>
<td id="39" onclick="reveal(39)"></td>
<td id="40" onclick="reveal(40)"></td>
<td id="41" onclick="reveal(41)"></td>
<td id="42" onclick="reveal(42)"></td>
<td id="43" onclick="reveal(43)"></td>
<td id="44" onclick="reveal(44)"></td>
<td id="45" onclick="reveal(45)"></td>
<td id="46" onclick="reveal(46)"></td>
<td id="47" onclick="reveal(47)"></td>
<td id="48" onclick="reveal(48)"></td>
<td id="49" onclick="reveal(49)"></td>
<td id="50" onclick="reveal(50)"></td>
</tr>
<tr>
<td id="51" onclick="reveal(51)"></td>
<td id="52" onclick="reveal(52)"></td>
<td id="53" onclick="reveal(53)"></td>
<td id="54" onclick="reveal(54)"></td>
<td id="55" onclick="reveal(55)"></td>
<td id="56" onclick="reveal(56)"></td>
<td id="57" onclick="reveal(57)"></td>
<td id="58" onclick="reveal(58)"></td>
<td id="59" onclick="reveal(59)"></td>
<td id="60" onclick="reveal(60)"></td>
<td id="61" onclick="reveal(61)"></td>
<td id="62" onclick="reveal(62)"></td>
<td id="63" onclick="reveal(63)"></td>
<td id="64" onclick="reveal(64)"></td>
<td id="65" onclick="reveal(65)"></td>
<td id="66" onclick="reveal(66)"></td>
<td id="67" onclick="reveal(67)"></td>
<td id="68" onclick="reveal(68)"></td>
<td id="69" onclick="reveal(69)"></td>
<td id="70" onclick="reveal(70)"></td>
<td id="71" onclick="reveal(71)"></td>
<td id="72" onclick="reveal(72)"></td>
<td id="73" onclick="reveal(73)"></td>
<td id="74" onclick="reveal(74)"></td>
<td id="75" onclick="reveal(75)"></td>
<td id="76" onclick="reveal(76)"></td>
<td id="77" onclick="reveal(77)"></td>
<td id="78" onclick="reveal(78)"></td>
<td id="79" onclick="reveal(79)"></td>
<td id="80" onclick="reveal(80)"></td>
<td id="81" onclick="reveal(81)"></td>
<td id="82" onclick="reveal(82)"></td>
<td id="83" onclick="reveal(83)"></td>
<td id="84" onclick="reveal(84)"></td>
<td id="85" onclick="reveal(85)"></td>
<td id="86" onclick="reveal(86)"></td>
<td id="87" onclick="reveal(87)"></td>
<td id="88" onclick="reveal(88)"></td>
<td id="89" onclick="reveal(89)"></td>
<td id="90" onclick="reveal(90)"></td>
<td id="91" onclick="reveal(91)"></td>
<td id="92" onclick="reveal(92)"></td>
<td id="93" onclick="reveal(93)"></td>
<td id="94" onclick="reveal(94)"></td>
<td id="95" onclick="reveal(95)"></td>
<td id="96" onclick="reveal(96)"></td>
<td id="97" onclick="reveal(97)"></td>
<td id="98" onclick="reveal(98)"></td>
<td id="99" onclick="reveal(99)"></td>
<td id="100" onclick="reveal(100)"></td>
</tr>
</table>
<p id="guessTracker"></p>
<p id="guessArea"><button type="button" onclick="guess()">Make your guess NOW</button></p>
<p id ="rulelist" style="margin:5px; text-align:left;">RULES: This is a very simple Wheel of Fortune clone. The player is allowed to flip half of the total tiles before guessing a famous proverb.
The player may guess up to three times or may choose to forfeit. Upon a loss, the user is allowed to flip the tiles to reveal the remaining proverb.
</p>
</body>
</html>