aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-09-09 18:40:49 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-09-09 18:40:49 +0300
commita46f5e14fe069841c00003b74703f39eb04e658b (patch)
treed2ee7c735185c090059f0a98bb1f4b3b94498ee2
parent4f35b67261e2f8401d952dee6b5db58bbf3c7cc5 (diff)
downloadarching-kaos-web-ui-a46f5e14fe069841c00003b74703f39eb04e658b.tar.gz
arching-kaos-web-ui-a46f5e14fe069841c00003b74703f39eb04e658b.tar.bz2
arching-kaos-web-ui-a46f5e14fe069841c00003b74703f39eb04e658b.zip
Update button for the chat-iframe
-rw-r--r--src/index.html4
-rw-r--r--src/js/utils.js4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/index.html b/src/index.html
index d07d4ce..f6b8b3f 100644
--- a/src/index.html
+++ b/src/index.html
@@ -190,7 +190,8 @@
<h2>🔧 Settings</h2>
</div>
<div id="chat-section" style="height: 100%;">
- <iframe src="https://irc.arching-kaos.net" style="width: 100%; height: 100%;"></iframe>
+ <button style="position: fixed;" onclick="refreshChat()">Refresh</button>
+ <iframe id="chat-iframe" src="https://irc.arching-kaos.net" style="width: 100%; height: 100%;"></iframe>
</div>
<div id="stats-section">
<h2>Stats</h2>
@@ -255,6 +256,7 @@
<script src="./js/arching-kaos-tools.js"></script>
<script src="./js/arching-kaos-stellar-network.js"></script>
<script src="./js/arching-kaos-decentralized-radio.js"></script>
+ <script src="./js/utils.js"></script>
<script src="./js/app.js"></script>
<!-- <script>
if ('serviceWorker' in navigator) {
diff --git a/src/js/utils.js b/src/js/utils.js
new file mode 100644
index 0000000..be726fc
--- /dev/null
+++ b/src/js/utils.js
@@ -0,0 +1,4 @@
+function refreshChat()
+{
+ document.querySelector('#chat-iframe').src = 'https://irc.arching-kaos.net';
+}