forked from mark-rolich/MemoryGame.js
-
Notifications
You must be signed in to change notification settings - Fork 4
/
MemoryGame.html
36 lines (30 loc) · 1.28 KB
/
MemoryGame.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Memory Game</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="raphaelicons/raphaelicons.css" type="text/css">
<link rel="stylesheet" type="text/css" href="MemoryGame.css">
</head>
<body>
<h1>Memory Game</h1>
<p id="game-info"> </p>
<div class="lvlList"></div>
<div id="playfield-wrapper"><div class="win-text"></div></div>
<a href="https://github.com/Lucas-C/MemoryGame.js"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
<footer></footer>
<script type="text/javascript" src="MemoryGame.js"></script>
<script type="text/javascript">
var req = new XMLHttpRequest();
req.open('GET', 'MemoryGame.json', /*async=*/true);
req.onreadystatechange = function () {
if (req.readyState !== 4) { return; }
if(req.status !== 200) {
throw new Error('[' + req.status + '] : "' + req.statusText + '" - "' + req.responseText + '"');
}
window.game = new MemoryGame(JSON.parse(req.responseText));
}
req.send(null);
</script>
</body>
</html>