-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (87 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<title>Everest Flight Simulator</title>
</head>
<body>
<div id="three"></div>
<div id="cockpit">
<!-- <div id="hFrame"></div>
--> <!-- <div id="vFrame"></div> -->
<div id="instrument-panel"></div>
</div>
</body>
</html>
<style type="text/css">
html, body,
#three, #three canvas {
height: 100%;
width: 100%;
margin: 0px;
padding: 0px;
position: relative;
overflow: hidden;
}
#three canvas {
position: absolute;
}
#three-mini {
position: fixed;
z-index: 9;
top: 10px;
left: 10px;
border: 1px solid white;
border-bottom: 0px;
background-color: lightgray;
height: 200px;
width: 200px;
}
#cockpit {
position: fixed;
z-index: 9;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
#instrument-panel {
position: absolute;
width: 600px;
height: 300px;
top: calc(100% - 175px);
left: 50%;
transform: translateX(-50%);
background-image: url("./src/img/instrument-panel.png");
background-repeat: no-repeat;
background-size: contain;
}
/* #instrument-canvas {
position: relative;
width: 100%;
height: 100%;
z-index: 999;
}*/
#hFrame,
#vFrame {
background-repeat: repeat;
background-size: 100px;
background-image: url("./src/img/gunmetal-pattern.jpg");
}
#hFrame {
position: absolute;
top: calc(100% - 50px);
left: 0;
height: 50px;
width: 100%;
background-color: #30373f;
}
#vFrame {
position: absolute;
top: 0px;
height: 100%;
width: 50px;
left: calc(50% - 25px);
background-color: #30373f;
}
</style>
<script src="dist/bundle.js"></script>