-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
354 lines (323 loc) Β· 15.9 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<!DOCTYPE html>
<html lang="en" translate="no" style="overflow: hidden">
<head>
<meta name="google" content="notranslate" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!-- Title + Description meta data -->
<title id="meta-title">PIXA.PICS - Pixel-Art Editor & NFTs Laboratory</title>
<meta name="description" content="Make pixel art from real life images and draw on the image you can edit for free, filters, layers, library, are within the editor.">
<meta name="keywords" content="Pixel, Art, Anonymous, NFT, Crypto, Red, Free, Secure, Progressive, Web, App, Offline, Free, Open-Source, ">
<!-- CSS -->
<style>
body.loaded {
position: relative;
content-visibility: initial;
background-color: #fafafa;
animation-iteration-count: 1 !important;
animation-delay: 250ms !important;
animation-fill-mode: both !important;
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
animation-name: ripupblend !important;
animation-duration: 1250ms !important;
}
@keyframes ripupblend {
0% { mix-blend-mode: multiply; }
100% { mix-blend-mode: initial; }
}
body.loaded::after {
content: "";
content-visibility: visible;
contain: paint style size layout !important;
position: fixed;
width: 100%;
z-index: 9999999;
top: 0;
left: 0;
height: 100%;
background-image: radial-gradient(#0d00cd22 30%, #0d00cdbf 40%, #5e4eff00 45%, #0d00cdbf 60%, #00000000 65%) !important;
background-color: transparent !important;
background-size: 400% 150% !important;
background-position: 50% 50% !important;
animation-iteration-count: 1 !important;
animation-delay: 250ms !important;
animation-fill-mode: both !important;
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
animation-name: ripup !important;
animation-duration: 1250ms !important;
}
@keyframes ripup {
0% {display: block !important; transform: translateY(175%); opacity: .6 }
15% { display: block !important; transform: translateY(75%); opacity: 1 }
30% { display: block !important; transform: translateY(25%); opacity: 0 }
60% { display: block !important; transform: translateY(-75%); opacity: 0 }
100% { display: none !important; transform: translateY(-100%); opacity: 0 }
}
body.loaded > #app {
contain: paint style layout;
content-visibility: auto;
position: relative;
will-change: auto;
overflow: hidden;
}
body.loading[datainitiated=true] > #app {
contain: paint style layout;
will-change: contents;
content-visibility: visible;
}
body.loading[datainitiated=false] > #app {
contain: size paint style layout;
will-change: auto;
content-visibility: visible;
}
body.loading[datainitiated=false] {
animation-fill-mode: both;
animation-name: bounce;
animation-duration: 1000ms;
animation-delay: 450ms;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
overflow: auto;
}
@keyframes bounce {
0% {filter: brightness(1) contrast(1);transform: scale(1.1);}
25% {filter: brightness(1.3) contrast(0.85);transform: scale(1.15);}
50% {filter: brightness(1) contrast(1);transform: scale(1);}
75% { filter: brightness(1.1) contrast(0.95); transform: scale(1.15); }
100% { filter: brightness(1) contrast(1); transform: scale(1.1); }
}
body::after {
mix-blend-mode: initial;
content-visibility: auto;
pointer-events: none;
contain: size paint style layout;
content: " ";
position: absolute;
z-index: 9999999;
-ms-interpolation-mode: nearest-neighbor;
image-rendering: optimizeSpeed;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-crisp-edges;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
background-color: #fff;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmBAMAAABaE/SdAAAAIVBMVEVHcEzu+PfCGDQGAAWFDT2XtsNc1sXroqWZXNYKQaNl1lzIuMb2AAAAAXRSTlMAQObYZgAAAOlJREFUKM/VkkFqAjEUhgM5wRMk3fp8xS5Dnw51O74LTCF6ghHaXWfjAUSR7tyIJxCP2X8iygw9gVl+fMn78yfOPenyihX7qKAR87gHZ4koGI+72rIiogFzR/Q1DQG57IhFDRJGEPWhnb7avRS4FEWEzH6/qywys8T3t/bU+cv+CNY0Agi2bZm/gP1gCCMPq2aWvc2kFJwoMT48jIBnsshz5259pBB4KGJmN+YP+5xlJabTxS2iP19b1kywz9/bKdbooEkI59z9yh+7uqL0ydbtoFim9Mqmvf7qVUpisV/91FT134M80/f5A7PVL60QaHlpAAAAAElFTkSuQmCC");
background-size: 50%;
background-position: center;
background-repeat: no-repeat;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: 100%;
width: 100%;
transform-origin: center;
will-change: auto;
animation-fill-mode: both;
animation-name: bounce-in;
animation-duration: 400ms;
animation-delay: 0ms;
animation-timing-function: ease;
animation-iteration-count: 1;
}
@keyframes bounce-in {
0% {
filter: opacity(0);
transform: scale(0);
}
50% {
filter: opacity(1.1);
transform: scale(1.2);
}
75% { transform: scale(1); }
100% { transform: scale(1.1); }
}
body.loading {
mix-blend-mode: multiply;
font-size: 0 !important;
content-visibility: visible;
background-color: #fff;
contain: size paint style layout;
padding: 0;
margin: 0;
top: 0;
left: 0;
bottom: 0;
right: 0;
min-height: 100%;
min-width: 100%;
}
body[datainitiated=true]::after {
contain: size paint style layout;
will-change: transform, filter;
animation-iteration-count: 1;
animation-delay: 120ms;
animation-fill-mode: both;
animation-timing-function: ease-out;
animation-name: zoom-out;
animation-duration: 360ms;
}
@keyframes zoom-out {
0% {
transform: scale(1);
filter: opacity(1);
content-visibility: visible !important;
display: initial;
}
100% {
transform: scale(6);
filter: opacity(0.2);
content-visibility: visible !important;
display: none;
will-change: none;
}
}
</style>
<!-- Service worker -->
<script type="text/javascript">
"use strict";
/* LOAD JS FILE (in two "moves") */
var _FIRED_IT_STATE = "";
var _LET_FIRE_IT = function(is_service_worker_activation_successful) {
return new Promise(function(resolve, reject){
var _MAIN_JS_FILE_ENDS_WITH = "norris.min.js";
var _PRE_FILES = Array.of("/client/chunk_norris.min.js",
"client/chunk_main_4a26d186.min.js",
"client/chunk_main_5a2dc592.min.js",
"client/chunk_main_7a2ee6b6.min.js",
"client/chunk_main_7d359b94.min.js",
"client/chunk_main_9c5b28f6.min.js",
"client/chunk_main_9fa9b2b4.min.js",
"client/chunk_main_62ab6885.min.js",
"client/chunk_main_253ae210.min.js",
"client/chunk_main_7274e1de.min.js",
"client/chunk_main_748942c6.min.js",
"client/chunk_main_783709f3.min.js",
"client/chunk_main_af9f4ef7.min.js",
"client/chunk_main_b5906859.min.js",
"client/chunk_main_c2a50b6c.min.js",
"client/chunk_main_f9ca8911.min.js");
var _POST_FILES = Array.of( "/src/fonts/normative/index.css", "/src/fonts/industry/index.css", "/client/chunk_norris.min.js");
if (is_service_worker_activation_successful) { console.log("GREAT, the service worker has been activated with success.") } else {console.log("GOOD, the service worker installation has been ignored successfully.")}
// Load pre-used (PRE) file or finally used ones (POST)
var fire_it = function (what) {
var hrefs = new Array();
var clean = !Boolean(is_service_worker_activation_successful);
if (Boolean(what === "FIRST" && Boolean(_FIRED_IT_STATE !== "FIRST" && _FIRED_IT_STATE !== "LAST")) || Boolean(what === "LAST" && Boolean(_FIRED_IT_STATE !== "FIRST" && _FIRED_IT_STATE !== "LAST"))) {
hrefs = hrefs.concat(_PRE_FILES); console.log("First files to load have been ignited.")
_FIRED_IT_STATE = "FIRST";
}
if (Boolean(what === "LAST" && Boolean(_FIRED_IT_STATE === "FIRST" || _FIRED_IT_STATE !== "LAST"))) {
hrefs = hrefs.concat(_POST_FILES); console.log("Last files to load have been ignited.")
_FIRED_IT_STATE = "LAST";
}
var removed = [];
if(clean){
var all_hrefs = new Array(0).concat(_PRE_FILES, _POST_FILES);
for (var i = 0; i < all_hrefs.length; i++) {
var ss = all_hrefs[i];
if (ss.endsWith(".js")) {
removed = removed.concat(Array.from(document.querySelectorAll('script[src$="' + ss + '"]')).map(function (node) {return Promise.resolve(node.remove());}));
}
}
}
removed = removed.concat([Promise.resolve()]);
return Promise.allSettled(removed).finally(function (){
for (var i = 0; i < hrefs.length; i++) {
var ss = hrefs[i];
if (ss.endsWith(".js")) {
var e = document.createElement("script"); e.setAttribute("src", ss); e.setAttribute("type", "text/javascript"); e.setAttribute(ss.endsWith(_MAIN_JS_FILE_ENDS_WITH) ? "defer" : "defer", "true");
document.body.appendChild(e);
} else if (ss.endsWith(".css")) {
var e = document.createElement("link"); e.setAttribute("href", ss); e.setAttribute("rel", "stylesheet");
document.body.appendChild(e);
}
}
return Promise.resolve();
});
};
// This event fires after doc ready state is interactive and before it is complete, it doesn't wait on resources to be loaded
document.addEventListener('readystatechange', function () {
if (document.readyState === "complete") {resolve(fire_it("LAST"));}else { resolve(fire_it("FIRST")); }
});
// Prevent this function from being executed none, twice or more using parameters what
if (document.readyState === "complete") {resolve(fire_it("LAST"));}else { resolve(fire_it("FIRST")); }
});
};
/* TRY INSTALL SERVICE WORKER, FINALLY LOAD JS FILE */
var _REGISTER_SERVICE_WORKER = function() {
_FIRED_IT_STATE = "";
return new Promise(function(resolve, reject){
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/service-worker.js", {
scope: "/"
}).then(function(r) {
r = r || {};
_LET_FIRE_IT(true).catch(function(){
reject();
}).then(function(){resolve();});
})
}else { _LET_FIRE_IT(false).then(function(){resolve();}); }
});
};
var _RELOAD = function() {
setTimeout(function (){
try{
location.reload(true);
} catch (x){
location.replace(location.href);
}
}, 100);
};
var _LISTEN_RELOAD = function() {
document.addEventListener('load', function () {
_REGISTER_SERVICE_WORKER().catch(_RELOAD).then(_LISTEN_RELOAD);
});
};
_REGISTER_SERVICE_WORKER().catch(_RELOAD).then(_LISTEN_RELOAD);
</script>
<script async src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "3f18a915cd7d481d94711fdebfa555a2"}'></script>
<!-- Open graph metadata -->
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://pixa.pics"/>
<meta property="og:site_name" content="PIXA.PICS" />
<meta property="og:title" content="Pixel-Art Editor & NFTs Laboratory"/>
<meta property="og:description" content="Make pixel art from real life images and draw on the image you can edit for free, filters, layers, library, are within the editor."/>
<meta property="og:image" content="https://raw.githubusercontent.com/pixa-pics/pixa-pics.github.io/master/src/images/og/pixapics_logo_og_s.jpeg"/>
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="384" />
<meta property="og:image:height" content="384" />
<meta property="og:image:alt" content="Preview of the logo of the pixel art editor as a web app named pixa.pics." />
<meta property="og:image" content="https://raw.githubusercontent.com/pixa-pics/pixa-pics.github.io/master/src/images/og/pixapics_logo_og_m.jpeg"/>
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Preview of the pixel art editor as a web app named pixa.pics." />
<!-- Mobile chrome toolbar color + Favicon -->
<link rel="icon" href="/src/images/favicon.ico">
<meta name="theme-color" content="#060E23FF" />
<!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
<link rel="manifest" href="/manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="PIXA PICS">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="PIXA PICS">
<!-- Homescreen icons -->
<link rel="apple-touch-icon" href="/src/images/manifest/logo-white.png">
<!-- Tile icon for Windows 8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="/src/images/manifest/logo-white.png">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-tap-highlight" content="no">
</head>
<body class="loading">
<div id="app"></div>
</body>
</html>