-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (29 loc) · 988 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Resta 1</title>
<script src="js/lib/jquery/jquery-1.4.4.min.js"></script>
<script src="js/lib/d3.js"></script>
<script src="js/src/Utils.js"></script>
<script src="js/src/Resta1.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="css/styles.css" />
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body>
<script>
var board;
$(document).ready(function(){
board = new Resta1.Board({width: $('body').width(), height: $(window).height()-20});
if (getUrlVars('sequence'))
board.runSequenceAnimated(getUrlVars('sequence'));
//crtl+z bind
$(window).keypress( function(eventObject) {
if (eventObject.ctrlKey && eventObject.keyCode == 26) {
board.undoLastMove();
}
} );
});
</script>
</body>
</html>