-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
48 lines (42 loc) · 1.59 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
44
45
46
47
48
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" />
<title>Artificial Intelligence. Labour work 1</title>
<link rel="stylesheet" type="text/css" href="styles.css"/>
<script src="jquery-1.7.2.js" type="text/javascript"></script>
<script src="config.js" type="text/javascript"></script>
<script src="interpolators/LinearInterpolator.js" type="text/javascript"></script>
<script src="resolver/State.js" type="text/javascript"></script>
<script src="scripts.js" type="text/javascript"></script>
<script type="text/javascript">
var animatingSequence = null;
function clickRandom(){
gameField.randomize();
}
function clickSolve(){
animatingSequence = gameField.solve();
}
function clickAnimate(){
if(animatingSequence != null){
gameField.animateSequence(animatingSequence);
}else{
alert("Нет решения, чтобы анимировать");
}
}
</script>
</head>
<body>
<!-- Area of my display phone is 320x240 px^2 -->
<div id="display">
<div id="field">
</div>
<div id="panel">
<a id="SolveButton" href="javascript: clickSolve(); ">Solve</a>
<a id="ShowButton" href="javascript: clickAnimate(); ">Show</a>
<a id="RandomButton" href="javascript: clickRandom(); ">Random</a>
</div>
</div>
</body>
</html>