summaryrefslogtreecommitdiff
path: root/anagramgame.html
blob: 9d415c242abded8afb47e3f558c206058212f916 (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
28
29
30
31
32
33
34
35
36
37
<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;">
        <div class="container-fluid">
            <div class="row">
                <div class="input-group input-group-md col-lg-3 col-md-6 col-sm-8 col-xs-10">
                    <input class="form-control input-lg" type="text" id="guess" onKeyDown="if(event.keyCode==13) submit();">
                    <span class="input-group-addon">
                        <button class="btn btn-sm btn-primary" onclick="submit();">Submit guess</button>
                    </span>
                    <span class="input-group-addon">
                        <button class="btn btn-sm btn-danger" onclick="giveUp();">Give up?</button>
                    </span>
                </div>
            </div>
        </div>

	</div>
	<div id="answer"></div>
	<button id="again" class="btn btn-sm btn-primary" style="visibility: hidden;" onclick="play();">Play again</button>
	<script src="js/anagramgame.js"></script>
  </body>

</html>