diff options
-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'; +} |