aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html29
1 files changed, 21 insertions, 8 deletions
diff --git a/index.html b/index.html
index 2262caa..0215150 100644
--- a/index.html
+++ b/index.html
@@ -11,15 +11,10 @@
<script src="./views/script/core_head.js"></script>
<script src="./views/script/core_compatlayer.js"></script>
<script src="./views/script/core_fullscreen.js"></script>
- <script>
- if (native) {
- require('@electron/remote').getCurrentWindow().show();
- }
- </script>
+ <script src="./typescript/mainloader.js"></script>
</head>
<body style="background:#000000;margin:0;height:100%;width:100%;zoom:1.2;">
- <div id="dummyloader" style="display:flex;align-items:center;justify-content:center;position:fixed;z-index:1;inset: 0;height: 100%;background:#fed1ae;overflow:hidden;">
- <img src="logo/itch/banner.jpg" style="height:100%;width:auto;">
+ <div id="dummyloader" style="display:flex;align-items:center;justify-content:center;position:fixed;z-index:1;inset: 0;height: 100%;background:#f4f3f4;overflow:hidden;">
</div>
<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>
@@ -100,12 +95,30 @@
<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>`);
</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 src="./views/script/core_stats.js"></script>
<script src="./views/script/core_notification.js"></script>
<script>info("MainWindow", "Main container up!");if (native){require('@electron/remote').getCurrentWindow().log(" * View loaded, Kartik is now up and running!");}</script>
+
+ <div id="error-outer" style="display:none;background:rgba(0, 0, 0, .5);backdrop-filter: blur(10px);position:fixed;inset:0;align-items:center;justify-content: center;z-index:999;text-align: center;">
+ <div id="error" style="background:#111;border-radius:10px;color:white;max-width:40vw;">
+ <div id="error-title" style="padding:10px;background:#222;border-top-left-radius: 10px;border-top-right-radius: 10px;">Kartik encountered an error</div>
+ <div id="error-details" style="padding:10px;">An error occurred and Kartik couldn't continue running. We collected some info that you can send to the developers so they can fix the problem.<textarea id="crash-dump" disabled="" style="margin: 0;resize: none;background: #171717;color: white;margin-top: 10px;font-family: monospace;font-size: 10px;width: calc(100% - 13px);padding: 5px;border: 2px ridge white;border-radius: 0;height: 180px;overflow-y: scroll;">Nothing there yet!</textarea><div id="error-buttons" style="margin-top: 10px;"><button style="padding: 5px 10px;margin-right: 5px;border-radius: 5px;background: #161616;color: white;border: 1px solid #121212;cursor: pointer !important;outline:none;" class="error-button" onclick="require('open')('https://jetbrains.minteck.ro.lt:1024/youtrack/newIssue?project=KTK&summary=%5BTry%20to%20summarize%20what%20the%20bug%20says%5D&description=%23%20Kartik%20Bug%20Report%0A%0A%23%23%20Crash%20Report%0A%0A%60%60%60text%0A%25replace%25%0A%60%60%60%0A%0A%23%23%20Steps%20to%20reproduce%0A%0A%5BTell%20us%20how%20you%20triggered%20the%20crash%2C%20how%20to%20reproduce%20it%20if%20possible%5D%0A%0A%23%23%20Other%20notes%0A%0A%5BIf%20you%20modified%20your%20version%20of%20Kartik%2C%20tell%20us%20what%20you%20modified.%20All%20the%20rest%20of%20the%20information%20should%20be%20in%20the%20Crash%20Report.%5D'.replace('%25replace%25', encodeURI(document.getElementById('crash-dump').value.split('---------------------------------------------------------------------------------------')[0].trim())));">Open report page</button> <button class="error-button" style="padding: 5px 10px;border-radius: 5px;background: #161616;color: white;border: 1px solid #121212;cursor: pointer !important;outline:none;" onclick="location.reload();">Restart</button></div></div>
+ </div>
+
+ <style>
+ .error-button:hover {
+ background: #212121 !important;
+ }
+
+ .error-button:active, .error-button:focus {
+ background: #252525 !important;
+ }
+ </style>
+ </div>
+
+ <script src="./views/script/core_crash.js"></script>
</body>
</html>