This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
137 lines (120 loc) · 3.16 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html>
<head>
<meta charset=utf8>
NIN_WILL_REPLACE_THIS_TAG_WITH_AUTOGENERATED_COMMENT_TAGS
<style>
* {
font-family: sans-serif;
display: none;
color: transparent;
}
.visible, .visible * {
display: block;
}
html, body {
width: 100%;
height: 100%;
display: block;
overflow: hidden;
padding: 0;
margin: 0;
border: 0;
outline: 0;
background-color: #000;
background-size: cover;
}
h1, h2 {
text-align: center;
color: black;
}
canvas {
position: fixed;
display: block;
background: #000;
}
.hide {
display: none;
}
.loading-text {
position: fixed;
left: 45%;
top: 48%;
width: 10%;
color: white;
text-align: center;
font-size: 2.2rem;
}
.progress-bar-inner {
width: 0;
height: 100%;
background: #30F5E0;
}
.progress-bar-container {
position: fixed;
left: 0;
top: 0;
bottom: 97%;
width: 100%;
}
#start-button {
margin-top: 39vh;
margin-left: auto;
margin-right: auto;
min-width: 20vw;
font-size: 3rem;
color: #94FFFF;
text-decoration: none;
text-align: center;
border: 3px solid #30F5E0;
padding: 15px;
}
</style>
NIN_WILL_REPLACE_THIS_TAG_WITH_AUTOGENERATED_META_TAGS
</head>
<body>
<div id=wrapper style="display:flex;justify-content:center;align-items:center;" class=visible>
<div class=loading-text>Loading...</div>
<div class=progress-bar-container>
<div class=progress-bar-inner>
</div>
</div>
<a id=start-button class=hide href=javascript:; onclick=STARTDEMO();>
START
</a>
</div>
<script>
var loadingText = document.querySelector('.loading-text');
var progressBarInner = document.querySelector('.progress-bar-inner');
var progressBarContainer = document.querySelector('.progress-bar-container');
var wrapper = document.querySelector('#wrapper');
var startButton = document.querySelector('#start-button');
ONPROGRESS = function(progress) {
progressBarInner.style.width = ((+progress * 100 | 0) / 100) + '%';
};
ONCOMPLETE = function() {
progressBarInner.style.width = '100%';
loadingText.classList.add('hide');
progressBarContainer.classList.add('hide');
startButton.classList.remove('hide');
};
function requestFullScreen() {
var doc = window.document;
var docEl = doc.documentElement;
var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen;
if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) {
requestFullScreen.call(docEl);
}
}
STARTDEMO = function() {
requestFullScreen();
startButton.innerHTML = 'Starting...';
setTimeout(function() {
wrapper.classList.remove('visible');
wrapper.style.background = '#fff';
document.body.style.background = '#000';
demo.start();
}, 100);
};
</script>
NIN_WILL_REPLACE_THIS_TAG_WITH_YOUR_ANALYTICS_ID