blob: 7b12abaeefc09cc92ceaba193fd09edfa72c89a4 (
plain)
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
|
<html>
<head>
<title>The Anagram Game</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<body>
<div id="navbar"></div>
<script src="navbar.js"></script>
<h2>The Anagram Game</h2>
<p>The word list can be found <a href="https://raw.githubusercontent.com/sindresorhus/word-list/master/words.txt">here</a>.</p>
<div id="loading">Loading word list...</div>
<div id="word"></div>
<div id="hidden" style="visibility: hidden;">
<input type="text" id="guess" onKeyDown="if(event.keyCode==13) submit();">
<button onclick="submit();">Submit guess</button>
<button onclick="giveUp();">Give up?</button>
</div>
<div id="answer"></div>
<button id="again" style="visibility: hidden;" onclick="play();">Play again</button>
<script src="js/anagramgame.js"></script>
</body>
</html>
|