diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-05 17:29:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 17:29:18 +0200 |
commit | b865b8f6586ffd4554cdfe45c739030afc882acd (patch) | |
tree | 37bcdf6575d8764b7367f34544658886879c0c5e /crash/crash.html | |
parent | 79edea37d15f88f086f7775bbbce64a57535b043 (diff) | |
parent | 7b541bbf2a8d754d26511895801d90f02cdf99f7 (diff) | |
download | kartik-client-b865b8f6586ffd4554cdfe45c739030afc882acd.tar.gz kartik-client-b865b8f6586ffd4554cdfe45c739030afc882acd.tar.bz2 kartik-client-b865b8f6586ffd4554cdfe45c739030afc882acd.zip |
Merge pull request #4 from Minteck-Projects/devel
Branching 21.08
Diffstat (limited to 'crash/crash.html')
-rw-r--r-- | crash/crash.html | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/crash/crash.html b/crash/crash.html index ec4e5ca..c698dcd 100644 --- a/crash/crash.html +++ b/crash/crash.html @@ -1,72 +1,72 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <script src="../lang/loader.js"></script> - <meta charset="UTF-8"> - <script>document.title = lang.crash.title;</script> - <link rel="stylesheet" href="../views/common/fonts.css"> - <style> - - * { - font-family: -apple-system, sans-serif; - cursor: default !important; - font-family: "Comfortaa", -apple-system, sans-serif !important; - } - - button { - border: 1px solid #00b763; - padding: 10px 20px; - border-radius: 999px; - background: #fff; - color: black; - outline: none; - } - - button:hover { - color: white; - border: 1px solid #007b42; - background: #00b763; - } - - button:active { - color: white; - border: 1px solid #00502b; - background: #007b42; - } - - </style> -</head> -<body style="display:grid;grid-template-columns: 1fr 1fr;height:100%;width:100%;margin:0;overflow:hidden;"> - <div> - <img src="./artwork.jpg" style="height: 100vh;"> - </div> - <div style="padding:8px;"> - <h2><script>document.write(lang.crash.head);</script></h2> - <p><script>document.write(lang.crash.intro);</script></p> - <p><script> - document.write(lang.crash.report[0]); - if (require('os').platform() === "win32") { - document.write(require('os').userInfo().homedir + "\\.kartik\\crashes"); - } else { - document.write(require('os').userInfo().homedir + "/.kartik/crashes"); - } - document.write(lang.crash.report[1]); - </script></p> - <p><button onclick="restart();"><script>document.write(lang.crash.close);</script></button> <button onclick="resetrestart();"><script>document.write(lang.crash.reset);</script></button></p> - </div> - - <script> - function restart() { - window.close(); - require('@electron/remote').getCurrentWindow().hide(); - require('@electron/remote').getCurrentWindow().destroy(); - require('@electron/remote').getCurrentWindow().close(); - } - function resetrestart() { - require('fs').rmdirSync(require('os').userInfo().homedir + "/.kartik/config", {recursive:true}); - window.close(); - require('@electron/remote').getCurrentWindow().close(); - } - </script> -</body> -</html> +<!DOCTYPE html>
+<html lang="en">
+<head>
+ <script src="../lang/loader.js"></script>
+ <meta charset="UTF-8">
+ <script>document.title = lang.crash.title;</script>
+ <link rel="stylesheet" href="../views/common/fonts.css">
+ <style>
+
+ * {
+ font-family: -apple-system, sans-serif;
+ cursor: default !important;
+ font-family: "Comfortaa", -apple-system, sans-serif !important;
+ }
+
+ button {
+ border: 1px solid #00b763;
+ padding: 10px 20px;
+ border-radius: 999px;
+ background: #fff;
+ color: black;
+ outline: none;
+ }
+
+ button:hover {
+ color: white;
+ border: 1px solid #007b42;
+ background: #00b763;
+ }
+
+ button:active {
+ color: white;
+ border: 1px solid #00502b;
+ background: #007b42;
+ }
+
+ </style>
+</head>
+<body style="display:grid;grid-template-columns: 1fr 1fr;height:100%;width:100%;margin:0;overflow:hidden;">
+ <div>
+ <img src="./artwork.jpg" style="height: 100vh;">
+ </div>
+ <div style="padding:8px;">
+ <h2><script>document.write(lang.crash.head);</script></h2>
+ <p><script>document.write(lang.crash.intro);</script></p>
+ <p><script>
+ document.write(lang.crash.report[0]);
+ if (require('os').platform() === "win32") {
+ document.write(require('os').userInfo().homedir + "\\.kartik\\crashes");
+ } else {
+ document.write(require('os').userInfo().homedir + "/.kartik/crashes");
+ }
+ document.write(lang.crash.report[1]);
+ </script></p>
+ <p><button onclick="restart();"><script>document.write(lang.crash.close);</script></button> <button onclick="resetrestart();"><script>document.write(lang.crash.reset);</script></button></p>
+ </div>
+
+ <script>
+ function restart() {
+ window.close();
+ require('@electron/remote').getCurrentWindow().hide();
+ require('@electron/remote').getCurrentWindow().destroy();
+ require('@electron/remote').getCurrentWindow().close();
+ }
+ function resetrestart() {
+ require('fs').rmdirSync(require('os').userInfo().homedir + "/.kartik/config", {recursive:true});
+ window.close();
+ require('@electron/remote').getCurrentWindow().close();
+ }
+ </script>
+</body>
+</html>
|