aboutsummaryrefslogtreecommitdiff
path: root/src/app/index.html
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-12-20 20:23:20 +0100
committerGitHub <noreply@github.com>2024-12-20 20:23:20 +0100
commit98fa01696b123b8d602b20534f866debdb64df52 (patch)
tree9e4d4ac04b01010b4c2faa71543440114308be86 /src/app/index.html
parentfab59ba8b8b1c567ee158b9681c5b373fb7303e4 (diff)
parent00d04db553eb53abb48f0b4e3649a6912fdc10df (diff)
downloadViper-98fa01696b123b8d602b20534f866debdb64df52.tar.gz
Viper-98fa01696b123b8d602b20534f866debdb64df52.zip
Merge pull request #246 from Jan200101/PR/onLine-event
feat: handle no internet better
Diffstat (limited to 'src/app/index.html')
-rw-r--r--src/app/index.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/app/index.html b/src/app/index.html
index 98c59d4..5421a3f 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -14,6 +14,9 @@
<div id="toasts"></div>
<div id="winbtns">
+ <div class="hidden" id="offline" tooltip="%%tooltip.offline%%" tooltip-position="horizontal">
+ <img src="icons/offline.png">
+ </div>
<div id="settings" tooltip="%%tooltip.settings%%" tooltip-position="horizontal" onclick="settings.popup.toggle()">
<img src="icons/settings.png">
</div>
@@ -35,7 +38,7 @@
<div id="overlay" onclick="popups.set_all(false)"></div>
<div class="popup" id="options">
<div class="misc">
- <input class="search default-selection" placeholder="%%gui.search%%">
+ <input class="search default-selection requires-internet" placeholder="%%gui.search%%">
<button id="apply" onclick="settings.popup.apply();settings.popup.toggle(false)">
<img src="icons/apply.png">
%%gui.settings.save%%
@@ -338,7 +341,7 @@
<button id="playNsBtn" class="playBtn" onclick="launch('northstar')">%%gui.launch%%</button>
<div class="inline">
<div id="nsversion"></div>
- <a id="update" href="#" onclick="update.ns()" class="disable-when-installing">(%%gui.update.check%%)</a>
+ <a id="update" href="#" onclick="update.ns()" class="disable-when-installing requires-internet">(%%gui.update.check%%)</a>
<div id="serverstatus" class="checking"></div>
</div>
</div>
@@ -360,7 +363,7 @@
<img src="icons/downloads.png">
%%gui.mods.install%%
</button>
- <button id="findmod" class="bg-blue2" onclick="browser.toggle(true)">
+ <button id="findmod" class="requires-internet bg-blue2" onclick="browser.toggle(true)">
<img src="icons/search.png">
%%gui.mods.find%%
</button>