ok - whatever. iframe not working. go to new tab and full page for chat

This commit is contained in:
Carsten Haitzler 2021-06-15 12:02:47 +01:00
parent 667ad9c152
commit f6af920a2f
1 changed files with 1 additions and 18 deletions

View File

@ -159,17 +159,6 @@ var nick =
n1[Math.floor(Math.random() * n1.length)] +
'-' +
n2[Math.floor(Math.random() * n2.length)];
var iframe;
function initFrame() {
if (!iframe) {
iframe = document.createElement('iframe');
iframe.setAttribute('src',
'https://kiwiirc.com/client/irc.libera.chat/?port=6667&tls=true&nick=' + nick + '&theme=cli#e');
iframe.setAttribute('sandbox', 'allow-forms allow-scripts allow-same-origin');
iframe.setAttribute('style', 'border:0; width:360px; height:500px;');
document.getElementById('ircbubble2').appendChild(iframe);
}
}
</script>
<div id="ircbutton"
@ -178,13 +167,7 @@ var iframe;
onmouseup="this.style.background='#181818'"
ontouchend="this.style.background='#181818'"
onclick="{
var d = document.getElementById('ircbubble');
if (!(d.style.display === 'none')) {
d.style.display = 'none';
} else {
d.style.display = 'block';
}
initFrame();
window.open('https://kiwiirc.com/client/irc.libera.chat/?port=6667&tls=true&nick=' + nick + '&theme=cli#e');
}"
>
<svg width="120" height="60" version="1.1" viewBox="0 0 31.75 15.875" xmlns="http://www.w3.org/2000/svg">