forked from choi5983/wording_game
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (24 loc) · 693 Bytes
/
index.html
File metadata and controls
29 lines (24 loc) · 693 Bytes
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
<html>
<head>
<title>Word Game</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="word_game.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="canvas"></div>
<div id="score">0</div>
<input type="text" id="word" name="word" placeholder="Enter Word" value="" />
<script type="text/javascript">
var a = new PlayGround('canvas', 'word', 'score');
setInterval("a.playGame()", 500);
$(document).ready(function()
{
$('#word').focus();
$('#word').on("keyup", function(){
a.checkWord($('#word').val());
});
});
</script>
</body>
</html>