diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-27 19:18:42 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-27 19:18:42 +0200 |
commit | 73864d898c3fb3cb0d9a8e3060ae01e780774d48 (patch) | |
tree | d3b07d36074f8a58e10856e6cf5975edcd55c7a7 /views/menu.html | |
parent | a3104b69bc8153eed684f54e4249c84a6559182f (diff) | |
download | kartik-client-73864d898c3fb3cb0d9a8e3060ae01e780774d48.tar.gz kartik-client-73864d898c3fb3cb0d9a8e3060ae01e780774d48.tar.bz2 kartik-client-73864d898c3fb3cb0d9a8e3060ae01e780774d48.zip |
Sleek new loading screen
Diffstat (limited to 'views/menu.html')
-rw-r--r-- | views/menu.html | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/views/menu.html b/views/menu.html index 59171d4..4503e20 100644 --- a/views/menu.html +++ b/views/menu.html @@ -48,14 +48,9 @@ <ul>
<li class="selected"><span class="item"><a href="#" id="single"><img class="item-icon" src="../icons/singleplayer.svg"> <span class="item-text"><script>document.write(lang.menu.titles[0])</script></span></a></span></li>
<script id="prefill">
- if (require('@electron/remote').getCurrentWindow().online) {
- document.write(`<li><span class="item"><a href="#" id="play"><img class="item-icon" src="../icons/local.svg"> <span class="item-text">${lang.online.menu.local}</span></a></span></li>`)
- document.write(`<li><span class="item"><a href="#" id="online"><img class="item-icon" src="../icons/online.svg"> <span class="item-text">${lang.online.menu.online}</span></a></span></li>`);
- document.write(`<li><span class="item"><a href="#" id="settings"><img class="item-icon" src="../icons/settings.svg"> <span class="item-text">${lang.menu.titles[2]}</span></a></span></li>`);
- } else {
- document.write(`<li><span class="item"><a href="#" id="play"><img class="item-icon" src="../icons/local.svg"> <span class="item-text">${lang.online.menu.local}</span></a></span></li>`)
- document.write(`<li><span class="item"><a href="#" id="settings"><img class="item-icon" src="../icons/settings.svg"> <span class="item-text">${lang.menu.titles[2]}</span></a></span></li>`);
- }
+ document.write(`<li><span class="item"><a href="#" id="play"><img class="item-icon" src="../icons/local.svg"> <span class="item-text">${lang.online.menu.local}</span></a></span></li>`)
+ document.write(`<li><span class="item"><a href="#" id="online"><img class="item-icon" src="../icons/online.svg"> <span class="item-text">${lang.online.menu.online}</span></a></span></li>`);
+ document.write(`<li><span class="item"><a href="#" id="settings"><img class="item-icon" src="../icons/settings.svg"> <span class="item-text">${lang.menu.titles[2]}</span></a></span></li>`);
document.getElementById('prefill').outerHTML = "";
</script>
<li><span class="item"><a href="#" id="stats"><img class="item-icon" src="../icons/stats.svg"> <span class="item-text"><script>document.write(lang.stats.menu)</script></span></a></span></li>
|