-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
146 lines (128 loc) · 3.64 KB
/
index.html
File metadata and controls
146 lines (128 loc) · 3.64 KB
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
146
<!doctype html>
<html>
<head lang="en">
<meta charset="utf-8">
<!-- view setup -->
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, shrink-to-fit=no">
<title>pixeling</title>
<meta name="description" content="a pixel art editor">
<link rel="icon" href="favicon.ico">
<link rel="apple-touch-icon" href="favicon.ico">
<link rel="apple-touch-icon" sizes="152x152" href="icon.png">
<link rel="apple-touch-icon" sizes="180x180" href="icon.png">
<link rel="apple-touch-icon" sizes="167x167" href="icon.png">
<!-- evil cache -->
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
<link rel="manifest" href="manifest.json">
<!-- for full screen on mobile -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- reset stylesheet -->
<style>
html,
body {
font-family: monospace, sans-serif;
overflow: hidden;
/* ok */
font-weight: 600;
background: #999;
height: 100%;
}
html,
body,
body * {
box-sizing: border-box;
background: none;
display: block;
border: none;
padding: 0;
margin: 0;
}
.loading {
display: inline-block;
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
}
.loading .spinner {
margin: auto;
border: 4px solid #FFF;
width: 50px;
height: 50px;
border-radius: 50%;
border-left-color: transparent;
animation: spin 1s linear infinite;
position: relative;
}
.loading .text {
margin-top: 20px;
font-weight: 600;
color: #FFF;
text-align: center;
}
.loading .text span {
display: inline-block;
position: relative;
transform: rotate(-180deg);
}
.loading .bar {
position: relative;
width: 240px;
height: 15px;
box-sizing: border-box;
margin: 20px auto;
border: 2px solid #FFF;
overflow: hidden;
}
.loading .bar:after {
content: '';
position: absolute;
height: 100%;
width: 75px;
background: rgba(255, 255, 255, 0.25);
top: 0;
left: -75px;
animation: filler 2s infinite;
}
.loading .bar .fill {
height: 100%;
background: #FFF;
width: 0%;
transition: all 0.2s;
}
@keyframes filler {
to {
left: 240px;
}
}
script {
display: none;
}
</style>
</head>
<body style="background: #222; -ms-touch-action: none; touch-action: none" oncontextmenu="return false;">
<div class="loading">
<div class="text"> (╯°□°)╯ <span>Loading...</span></div>
<div class="bar">
<div class="fill"></div>
</div>
</div>
<script>
var load = document.createElement('script')
load.src = "./src/app/load.js?v=" + Math.random()
document.body.appendChild(load)
load.onload = function() {
app.load({
onLoadStatus: (percent, lastFile) => {
var eleFill = document.querySelector('.fill')
eleFill.style.width = (percent * 100) + '%'
}
})
}
</script>
</body>
</html>