diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-09-09 18:40:49 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-09-09 18:40:49 +0300 |
commit | a46f5e14fe069841c00003b74703f39eb04e658b (patch) | |
tree | d2ee7c735185c090059f0a98bb1f4b3b94498ee2 /src | |
parent | 4f35b67261e2f8401d952dee6b5db58bbf3c7cc5 (diff) | |
download | arching-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
Diffstat (limited to 'src')
-rw-r--r-- | src/index.html | 4 | ||||
-rw-r--r-- | src/js/utils.js | 4 |
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'; +} |