diff options
Diffstat (limited to 'views/intro.html')
-rw-r--r-- | views/intro.html | 97 |
1 files changed, 44 insertions, 53 deletions
diff --git a/views/intro.html b/views/intro.html index 6d4b721..1dba9a1 100644 --- a/views/intro.html +++ b/views/intro.html @@ -1,53 +1,44 @@ -<!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;}info=(_a,b)=>{console.info(b);};warn=(_a,b)=>{console.warn(b);};error=(_a,b)=>{console.error(b);};</script> - <script src="../lang/loader.js"></script> - <script src="../scenario/client.js"></script> - <meta charset="UTF-8"> - <title>Kartik</title> - <link rel="stylesheet" href="common/fonts.css"> - <link rel="stylesheet" href="common/blur.css"> - <link rel="stylesheet" href="intro.css"> - <script src="../crash/client.js"></script> - <script src="./script/global_compatlayer.js"></script> - <script> - require('@electron/remote').getCurrentWindow().dstate = lang.discord.intro[0]; - require('@electron/remote').getCurrentWindow().ddetails = lang.discord.intro[1]; - </script> - <script> - if (!require('@electron/remote').getCurrentWindow().debug) { - document.write('<link rel="stylesheet" href="common/mouse.css">'); - } - </script> -</head> -<body style="background:#000000;margin:0;height:100%;width:100%;"> - <script>info("MainWindow", "Rendering initial frame..."); - - if (native) { - scale=require('@electron/remote').getCurrentWindow().scale;document.body.style.zoom=scale; - } - - </script> - <script src="./script/intro_media.js"></script> - <div id="box" style="display:none;position:fixed;inset:0;"> - <div class="hero"> - <div class="hero-inner"></div> - </div> - <div style="margin-left: auto;margin-right: auto;width: max-content;margin-top: 100px;"> - <img alt="full-logo" src="../logo/full.png" style="height: 96px;"> - </div> - <div id="intro" style="position: fixed;bottom: 0;height: 120px;width: 100%;background: rgba(0, 0, 0, .5);" class="clickable" onclick="ev = document.createEvent('Event');ev.initEvent('keypress');ev.which = ev.keyCode = 13;document.body.dispatchEvent(ev);"> - <span id="progress" style="color: white;position: fixed;left: 0;right: 0;text-align: center;bottom: 50px;"> - <script>document.write(lang.intro[0]);</script> - </span> - <script src="./script/intro_message.js"></script> - </div> - </div> - - <script src="./script/intro_global.js"></script> - <script>info("LoadWindow", "Launching start-up procedure");</script> - - <script src="./script/client_fullscreen.js"></script> -</body> -</html> +<!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;}info=(_a,b)=>{console.info(b);};warn=(_a,b)=>{console.warn(b);};error=(_a,b)=>{console.error(b);};const Nest = require("../nest/abi");currentNest = require('@electron/remote').getCurrentWindow().nest;</script>
+ <script src="../lang/loader.js"></script>
+ <script src="../scenario/client.js"></script>
+ <meta charset="UTF-8">
+ <title>Kartik</title>
+ <link rel="stylesheet" href="common/fonts.css">
+ <link rel="stylesheet" href="common/blur.css">
+ <link rel="stylesheet" href="intro.css">
+ <script src="../crash/client.js"></script>
+ <script src="./script/global_compatlayer.js"></script><script src="../typescript/mainloader.js"></script>
+ <script>
+ require('@electron/remote').getCurrentWindow().dstate = lang.discord.intro[0];
+ require('@electron/remote').getCurrentWindow().ddetails = lang.discord.intro[1];
+ </script>
+ <script>
+ if (!require('@electron/remote').getCurrentWindow().debug) {
+ document.write('<link rel="stylesheet" href="common/mouse.css">');
+ }
+ </script>
+</head>
+<body style="background:#000000;margin:0;height:100%;width:100%;">
+ <script>info("MainWindow", "Rendering initial frame...");
+
+ if (native) {
+ scale=require('@electron/remote').getCurrentWindow().scale;document.body.style.zoom=scale;
+ }
+
+ </script>
+ <script src="./script/intro_media.js"></script>
+ <div id="box" style="display:none;position:fixed;inset:0;">
+ </div>
+
+ <script src="./script/intro_global.js"></script>
+ <script>info("LoadWindow", "Launching start-up procedure");</script>
+
+ <script src="./script/client_fullscreen.js"></script>
+ <script>
+ location.href = "menu.html";
+ </script>
+</body>
+</html>
|