-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (42 loc) · 1.61 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
<!DOCTYPE HTML>
<html class="no-js" manifest="hangman.appcache">
<head>
<meta charset="utf-8">
<title>Patois Hangman</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="styles/hangman.css" rel="stylesheet" type="text/css">
<!--[if lte IE 8]>
<script src="scripts/excanvas.js"></script>
<![endif]-->
<script src="scripts/modernizr.hangman.js"></script>
<script>
Modernizr.load([{
test: Modernizr.canvastext,
nope: ['scripts/canvas.text.js', 'scripts/optimer-bold-normal.js']
},
{
test: Modernizr.localstorage,
nope: ['scripts/json2.js', 'scripts/storage_polyfill.js'],
both: ['scripts/jquery-1.7.min.js', 'scripts/hangman.js'],
complete: function() {
init();
}
}]);
</script>
</head>
<body>
<h1>Hangman</h1>
<p id="warning">JavaScript must be enabled to play this game.</p>
<div id="help"></div>
<div id="helptext">
<h2>How to Play</h2>
<div id="close"></div>
<p>Hangman is a word-guessing game. Click or tap New Game to display the letters of the alphabet and a row of dashes indicating the number of letters to be guessed. Click or tap a letter. If it's in the word, it replaces the dash(es). Each wrong guess results in a stroke being added to a gallows and its victim. Your role is to guess the word correctly before the victim meets his grisly fate.</p>
</div>
<p id="loading">Game loading. . .</p>
<canvas id="stage" width="200" height="200">Sorry, your browser needs to support canvas for this game.</canvas>
<div id="play">New Game</div> <div id="clear">Clear Score</div>
<p id="word"></p>
<div id="letters"></div>
</body>
</html>