-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
145 lines (130 loc) · 3.47 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
138
139
140
141
142
143
144
145
<!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: -webkit-linear-gradient(top, #FFFFFF, #CCDDFF);
background: -moz-linear-gradient(top, #FFFFFF, #CCDDFF);
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: 52%;
width: 10%;
color: black;
text-align: center;
font-size: 14px;
}
.progress-bar-inner {
width: 0;
height: 100%;
background: #2c7f61;
}
.progress-bar-container {
position: fixed;
left: 45%;
top: 54.5%;
bottom: 43.5%;
width: 10%;
border: 1px solid #2c7f61;
}
#start-button {
position: fixed;
left: 45%;
top: 54.5%;
width: 10%;
color: black;
text-decoration: none;
text-align: center;
border: 1px solid black;
padding: 5px;
margin-top: -10px;
}
#pouet-link {
position: fixed;
bottom: 10px;
text-align: center;
color: gray;
left: 0;
right: 0;
font-size: 14px;
}
</style>
NIN_WILL_REPLACE_THIS_TAG_WITH_AUTOGENERATED_META_TAGS
</head>
<body>
<div id=wrapper 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>
<a href="http://www.pouet.net/groups.php?which=11702" target="_blank" id="pouet-link">Read more about this demo on Pouet</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');
};
STARTDEMO = function() {
startButton.innerHTML = 'Starting..!';
setTimeout(function() {
wrapper.classList.remove('visible');
wrapper.style.background = '#fff';
document.body.style.background = '#000';
demo.start();
}, 100);
};
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'NIN_WILL_REPLACE_THIS_TAG_WITH_YOUR_ANALYTICS_ID', 'auto');
ga('send', 'pageview');
</script>