-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (48 loc) · 1.93 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
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LiftModel</title>
<script src="snap.svg-min.js"></script>
<link href="shaft.css" rel="stylesheet">
<link href="style2.css" rel="stylesheet">
</head>
<body>
<svg id="svg"></svg>
<svg id="svg2">
</svg>
<script src="shaft.js"></script>
<script src="model2.js"></script>
<script type="text/javascript">
shaft.setPosition(0, true);
shaft.setDoor(1).setPosition(0,true).setCalls({Car: 8}).setDestination(3);
setTimeout(function(){
shaft.setDoor(1).setPosition(0,false).setCalls({Car: 8}).setDestination(3);
}, 1000);
setTimeout(function(){
shaft.setDoor(1).setPosition(1,true).setCalls({Car: 8}).setDestination(3);
}, 2000);
setTimeout(function(){
shaft.setDoor(1).setPosition(2,false).setCalls({Car: 8}).setDestination(3);
}, 3000);
setTimeout(function(){
shaft.setDoor(1).setPosition(2,true).setCalls({Car: 8}).setDestination(3);
}, 4000);
setTimeout(function(){
shaft.setDoor(1).setPosition(3,false).setCalls({Car: 8}).setDestination(3);
}, 5000);
setTimeout(function(){
shaft.setDoor(1).setPosition(3,true).setCalls({Car: 8}).setDestination(3);
}, 6000);
setTimeout(function(){
shaft.setDoor(2).setPosition(3,true).setCalls({Car: 0}).setDestination(3);
}, 7000);
setTimeout(function(){
shaft.setDoor(2).setPosition(3,true).setCalls({Car: 8}).setDestination(3);
}, 8000);
setTimeout(function(){
shaft.setDoor(2).setPosition(3,true).setCalls().setDestination(3);
}, 9000);
</script>
</body>
</html>