This repository was archived by the owner on Jun 6, 2021. It is now read-only.
forked from kiwiirc/kiwiirc
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
80 lines (73 loc) · 3.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="user-scalable=no,width=device-width,initial-scale=1,maximum-scale=1"><link rel=icon type=image/png href=static/favicon.png><title>freenode's webchat</title><style>/* target specific styles */
body {
/* disable the 'pull down to refresh' on mobiles */
overflow: hidden;
}</style><style class=embedly-css>.card .hdr {
display:none;
}</style></head><body><div id=app></div>
<script>
console.log('Start');
window.kiwiConfig = function() {
var conf = {
"windowTitle": "freenode's webchat",
"startupScreen": "welcome",
"kiwiServer": "https://kiwi.freenode.net/relay/kiwiirc/",
"restricted": true,
"theme": "Default",
"themes": [
{ "name": "Default", "url": "static/themes/default" },
{ "name": "Dark", "url": "static/themes/dark" },
{ "name": "Coffee", "url": "static/themes/coffee" },
{ "name": "GrayFox", "url": "static/themes/grayfox" },
{ "name": "Nightswatch", "url": "static/themes/nightswatch" },
{ "name": "Osprey", "url": "static/themes/osprey" },
{ "name": "Radioactive", "url": "static/themes/radioactive" },
{ "name": "Sky", "url": "static/themes/sky" }
],
"startupOptions" : {
"server": "irc.freenode.net",
"port": 6667,
"tls": false,
"direct": false,
"recaptchaSiteId": "6LfbMFoUAAAAAACGY2SGxbZ6R-dCnL1g5lZB2Pei",
"channel": "",
"nick": "",
"greetingText": "freenode IRC",
"infoBackground": "static/plugins/freenode/sunny.jpg",
"infoContent": "<img src=\"static/plugins/freenode/fn-logo.svg\"><p>You have stumbled upon the <a href=\"https://kiwiirc.com\">Kiwi</a> Webchat for the freenode project.<br> To learn more about the freenode IRC network, the freenode #live conference and other freenode projects head over to <a href=\"https://freenode.net\">our website</a>.</p><p></p>",
"allowNoChannel": true
},
"buffers": {
"inline_link_auto_previews": false
},
"embedly": {
"key": ""
},
"plugins": [
{"name": "freenode", "url": "static/plugins/freenode/freenode.js"}
]
};
var fragment;
if (window.location.hash && window.location.hash.indexOf('%') > -1) {
// Channel has some decoded characters
fragment = decodeURIComponent(window.location.hash.substring(1));
} else if (window.location.hash) {
fragment = window.location.hash;
}
if (fragment) {
var qmindex = fragment.indexOf('?');
if (qmindex > -1) {
var uparam = fragment.substring(qmindex + 1).match(/nick=([^&;]+)/);
fragment = fragment.substring(0, qmindex);
if (uparam) {
conf.startupOptions.nick = uparam[1];
}
}
conf.startupOptions.channel = fragment;
window.location.hash = fragment;
}
return conf;
};
</script>
</body>
</html>