diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..a484514 --- /dev/null +++ b/index.html @@ -0,0 +1,97 @@ +<!DOCTYPE html> +<html lang="en" style="background:#000000;margin:0;height:100%;width:100%;"> +<head> + <script>if (typeof require !== "undefined") {native = true;try{global.native = true;}catch(e){}} else {native = false;try{global.native = false;}catch(e){}}if (!native){global = window;}if (native){kresources=require('@electron/remote').getCurrentWindow().resources;trackEvent=require('@electron/remote').getCurrentWindow().trackEvent;require('@electron/remote').getCurrentWindow().log(" * Parsing view");}info=(_a,b)=>{console.info(b);};warn=(_a,b)=>{console.warn(b);};error=(_a,b)=>{console.error(b);};</script> + <meta charset="UTF-8"> + <title>Kartik</title> + <script src="./crash/client.js"></script> + <script src="./lang/loader.js"></script> + <link rel="stylesheet" href="./views/common/fonts.css"> + <link rel="stylesheet" href="./views/common/index.css"> + <script src="./views/script/core_head.js"></script> + <script src="./views/script/core_stats.js"></script> + <script src="./views/script/core_fullscreen.js"></script> + <script> + if (native) { + require('@electron/remote').getCurrentWindow().show(); + } + </script> +</head> +<body style="background:#000000;margin:0;height:100%;width:100%;zoom:1.2;"> + <div style="height: 64px;position: fixed;bottom: 10px;left: 0;background-image: url(./logo/newloader.svg);width: 100000000px;background-size: contain;animation-name: loading;animation-direction: reverse;animation-fill-mode: forwards;animation-timing-function: linear;animation-duration: 5000s;animation-iteration-count: infinite;opacity: .5;"></div> + <style> + @keyframes loading { + 0% { + left: 0; + } + 100% { + left: -900000px; + } + } + @keyframes logo { + 0% { + transform: rotate3d(1, 1, 1, 0deg); + } + 100% { + transform: rotate3d(1, 1, 1, 360deg); + } + } + </style> + <div id="message" style=" + position: fixed; + display: none; + bottom: 0; + left: 20px; + right: 20px; + height: 48px; + background: rgba(0, 0, 0, .5); + color: white; + border-top-left-radius: 10px; + border-top-right-radius: 10px; + border: 1px solid #2b2b2b; + border-bottom: none; + pointer-events: none; + z-index: 20; + "><span id="message-character" style=" + width: 64px; + height: 64px; + position: fixed; + bottom: 8px; + left: 56px; + background: #3c3c3c; + border-radius: 100%; + border: 1px solid #5f5f5f; +"><img src="./scenario/character/neutral.png" id="message-character-inner" style=" + position: fixed; + bottom: 8px; + width: 66px; + left: 56px; + border-bottom-left-radius: 100px; + border-bottom-right-radius: 100px; + "></span><span id="message-text" style=" + position: fixed; + left: 156px; + width: calc(100% - 220px); + bottom: 11px; + font-size: 14px; + height: 28px; + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +"></span></div> + <script>if (!native) { document.getElementById('titlebar').style.display = "none"; }</script> + <script> + document.write(`<webview id="wb" src="views/loader.html" style="border: 0;z-index:2;top:0;left:0;right:0;bottom:0;position:fixed;" nodeintegration disablewebsecurity allowpopups webpreferences="nodeIntegration,contextIsolation=no"></webview>`); + if (require('@electron/remote').getCurrentWindow().update !== "stable") { + document.write(`<div style="position: fixed;top: 0;left: 0;right: 0;height: auto;font-family: sans-serif;font-size: 12px;background: red;z-index: 9;text-align: center;">EXPERIMENTAL BUILD, NOT FOR PRODUCTION —${require('@electron/remote').getCurrentWindow().channel}${require('./package.json').version} — ${require('./package.json').serial} — <span style="font-family:sans-serif;font-size:12px;" id="experimental-ramusage">NaN</span> MiB</div>`); + } + //document.write(`<webview id="wb" src="about:blank" style="border: 0;z-index:2;top:0;left:0;right:0;bottom:0;position:fixed;" nodeintegration disablewebsecurity allowpopups webpreferences="nodeIntegration,contextIsolation=no"></webview>`); + </script> + </div> + <script src="./views/script/core_chart.js"></script> + <script src="./views/script/core_music.js"></script> + <script src="./views/script/core_viewer.js"></script> +<script>info("MainWindow", "Main container up!");if (native){require('@electron/remote').getCurrentWindow().log(" * View loaded, Kartik is now up and running!");}</script> +</body> +</html> |