summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-06-15 12:02:47 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-06-15 12:02:47 +0100
commitf6af920a2fb421a91ed2ca379cb9a04523c28098 (patch)
tree2f95d405b023cb47dc1e8517012e0974ae0dee44
parent667ad9c152e7b81871b605ef9280ed6c9c9c3adc (diff)
ok - whatever. iframe not working. go to new tab and full page for chat
-rw-r--r--public_html/lib/tpl/e/footer.html19
1 files changed, 1 insertions, 18 deletions
diff --git a/public_html/lib/tpl/e/footer.html b/public_html/lib/tpl/e/footer.html
index 7beff5e6..e903be7b 100644
--- a/public_html/lib/tpl/e/footer.html
+++ b/public_html/lib/tpl/e/footer.html
@@ -159,17 +159,6 @@ var nick =
159 n1[Math.floor(Math.random() * n1.length)] + 159 n1[Math.floor(Math.random() * n1.length)] +
160 '-' + 160 '-' +
161 n2[Math.floor(Math.random() * n2.length)]; 161 n2[Math.floor(Math.random() * n2.length)];
162var iframe;
163
164 function initFrame() {
165 if (!iframe) {
166 iframe = document.createElement('iframe');
167 iframe.setAttribute('src',
168 'https://kiwiirc.com/client/irc.libera.chat/?port=6667&tls=true&nick=' + nick + '&theme=cli#e');
169 iframe.setAttribute('sandbox', 'allow-forms allow-scripts allow-same-origin');
170 iframe.setAttribute('style', 'border:0; width:360px; height:500px;');
171 document.getElementById('ircbubble2').appendChild(iframe);
172 }
173 } 162 }
174</script> 163</script>
175<div id="ircbutton" 164<div id="ircbutton"
@@ -178,13 +167,7 @@ var iframe;
178 onmouseup="this.style.background='#181818'" 167 onmouseup="this.style.background='#181818'"
179 ontouchend="this.style.background='#181818'" 168 ontouchend="this.style.background='#181818'"
180 onclick="{ 169 onclick="{
181 var d = document.getElementById('ircbubble'); 170 window.open('https://kiwiirc.com/client/irc.libera.chat/?port=6667&tls=true&nick=' + nick + '&theme=cli#e');
182 if (!(d.style.display === 'none')) {
183 d.style.display = 'none';
184 } else {
185 d.style.display = 'block';
186 }
187 initFrame();
188 }" 171 }"
189> 172>
190<svg width="120" height="60" version="1.1" viewBox="0 0 31.75 15.875" xmlns="http://www.w3.org/2000/svg"> 173<svg width="120" height="60" version="1.1" viewBox="0 0 31.75 15.875" xmlns="http://www.w3.org/2000/svg">