1 Star 0 Fork 0

ShenHang/pixa-pics.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 15.62 KB
一键复制 编辑 原始数据 按行查看 历史
Affolter Matias 提交于 2024-02-24 03:22 . Kmeans more speed less sleep
<!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: auto;
}
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: hidden;
}
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_5a2dc592.min.js", "/client/chunk_main_7a2ee6b6.min.js", "/client/chunk_main_8afe242f.min.js","/client/chunk_main_253ae210.min.js","/client/chunk_main_678f84af.min.js","/client/chunk_main_690b702c.min.js","/client/chunk_main_748942c6.min.js","/client/chunk_main_783709f3.min.js","/client/chunk_main_af9f4ef7.min.js","/client/chunk_main_d939e436.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 || {};
if(Boolean(r.active || r.installing)) {
_LET_FIRE_IT(true).then(function(){resolve();});
}else {
reject();
}
}).catch(function(){
reject();
});
}else { _LET_FIRE_IT(false).then(function(){resolve();}); }
});
};
var _RELOAD = function() {
/*setTimeout(function (){
try{
location.reload(true);
} catch (x){
location.replace(location.href);
}
}, 777);
*/
};
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>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shenhang2000/pixa-pics.github.io.git
[email protected]:shenhang2000/pixa-pics.github.io.git
shenhang2000
pixa-pics.github.io
pixa-pics.github.io
main

搜索帮助