-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
106 lines (95 loc) · 2.58 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>VoltLab - Casino</title>
<style>
body{
width:100%;height:100%;
}
html{
width:100%;height:100%;
}
* {
padding: 0;
margin: 0;
background-color:black;
}
#scene {
position: relative;
width: 1013px;
height: 859px;
margin:auto;
}
#menu {
position: absolute;
width: 100%;
height: 100%;
margin:auto;
background-color:black;
z-index: 7;
}
canvas {
position: absolute;
top: 0;
left: 0;
background-color: transparent;
}
#intro
{
transition: all 0.1s linear;
}
#layerBackground {
z-index: 1
}
#layerBattery {
z-index: 2
}
#layerConnections {
z-index: 3
}
#layerResult {
z-index: 4
}
.fadeOut {
display: none;
opacity: 0;
}
</style>
</head>
<body>
<div id="menu" onClick="start()" >
<img src="img/HACKERMANS.png" style="margin:auto; display:block; margin-top: 360px;" />
</div>
<div id="intro" style="z-index:6; display:none; position:absolute; background-color:#101010; width:100%; height:100%;">
<img style="position:absolute;top:0;bottom:80px;right:0;left:0;margin:auto; z-index:7 " src="img/intro.gif" />
</div>
<div id="badEnding" style="z-index:6; display:none; position:absolute; background-color:#101010; width:100%; height:100%;">
<img style="position:absolute;top:0;bottom:80px;right:0;left:0;margin:auto; z-index:7 " src="img/fail.gif" />
</div>
<div id="goodEnding" style="z-index:6; display:none; position:absolute; background-color:#101010; width:100%; height:100%;">
<img style="position:absolute;top:0;bottom:80px;right:0;left:0;margin:auto; z-index:7 " src="img/success.gif" />
</div>
<div id="scene">
<canvas id="layerBackground" width="1013" height="859"></canvas>
<canvas id="layerBattery" width="1013" height="859"></canvas>
<canvas id="layerConnections" width="1013" height="859"></canvas>
<canvas id="layerResult" width="1013" height="859"></canvas>
<img src="img/controls.png" style="margin-top:850px; margin-left:440px;"/>
</div>
</body>
<script type="text/javascript" src="voltlab.js"></script>
<script>
var vl = new VoltLab();
function start()
{
loading_sound.play();
document.getElementById("menu").style.display="none";
document.getElementById("intro").style.display="block";
window.setTimeout(function() {
document.getElementById("intro").classList.toggle('fadeOut');
vl.start();
}, 3200);
}
</script>
</html>