4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
6 <title> KiwiIRC
</title>
8 <link rel=
"stylesheet" type=
"text/css" href=
"style.css" />
15 <ul class=
"panellist channels"></ul>
16 <ul class=
"panellist applets"></ul>
23 <div id=
"status_message"></div>
27 <div class=
"panel_container container1"></div>
30 <div id=
"memberlists"></div>
34 <span class=
"nick"> </span>
35 <div class=
"input_wrap"><input type=
"text" class=
"inp" /></div>
40 <script type=
"text/x-jquery-tmpl" id=
"tmpl_userbox">
42 <a class=
"query">Message
</a>
43 <a class=
"info">Info
</a>
47 <script type=
"text/x-jquery-tmpl" id=
"tmpl_server_select">
48 <div class=
"server_select">
49 <div class=
"status"></div>
53 <label for=
"server_select_nick">Nickname
</label>
54 <input type=
"text" class=
"nick" id=
"server_select_nick"> <br />
56 <button type=
"submit">Connect..
</button> <br />
57 <a class=
"show_more">More
</a>
61 <label for=
"server_select_server">Server
</label>
62 <input type=
"text" class=
"server" id=
"server_select_server"> <br />
63 <label for=
"server_select_channel">Channel
</label>
64 <input type=
"text" class=
"channel" id=
"server_select_channel"> <br />
66 <label for=
"server_select_port">Port
</label>
67 <input type=
"text" class=
"port" id=
"server_select_port"> <br />
68 <label for=
"server_select_password">Password
</label>
69 <input type=
"text" class=
"password" id=
"server_select_password"> <br />
70 <label for=
"server_select_ssl">SSL
</label>
71 <input type=
"checkbox" class=
"ssl" id=
"server_select_ssl">
77 <script type=
"text/x-jquery-tmpl" id=
"tmpl_applet_settings">
79 <select class=
"theme">
80 <option value=
"default">Default
</option>
81 <option value=
"relaxed">Relaxed
</option>
82 <option value=
"cli">CLI
</option>
84 <button class=
"save">Save
</button>
89 <script type=
"text/x=x-jquery-tmpl" id=
"tmpl_channel_list">
90 <table style=
"margin:1em 2em;">
91 <thead style=
"font-weight: bold;">
95 <td style=
"padding-left: 2em;">Topic
</td>
98 <tbody style=
"vertical-align: top;">
105 /* Script loader (https://github.com/ded/script.js) */
106 (function(a,b,c){typeof c[
"module"]!=
"undefined"&&c.module.exports?c.module.exports=b():typeof c[
"define"]!=
"undefined"&&c[
"define"]==
"function"&&c.define.amd?define(a,b):c[a]=b()})(
"$script",function(){function p(a,b){for(var c=
0,d=a.length;c
<d;++c)if(!b(a[c]))return j;return
1}function q(a,b){p(a,function(a){return!b(a)})}function r(a,b,i){function o(a){return a.call?a():d[a]}function t(){if(!--n){d[m]=
1,l&&l();for(var a in f)p(a.split(
"|"),o)&&!q(f[a],o)&&(f[a]=[])}}a=a[k]?a:[a];var j=b&&b.call,l=j?b:i,m=j?a.join(
""):b,n=a.length;return setTimeout(function(){q(a,function(a){if(h[a])return m&&(e[m]=
1),h[a]==
2&&t();h[a]=
1,m&&(e[m]=
1),s(!c.test(a)&&g?g+a+
".js":a,t)})},
0),r}function s(c,d){var e=a.createElement(
"script"),f=j;e.onload=e.onerror=e[o]=function(){if(e[m]&&!/^c|loade/.test(e[m])||f)return;e.onload=e[o]=null,f=
1,h[c]=
2,d()},e.async=
1,e.src=c,b.insertBefore(e,b.firstChild)}var a=document,b=a.getElementsByTagName(
"head")[
0],c=/^https?:\/\//,d={},e={},f={},g,h={},
i=
"string",j=!
1,
k=
"push",
l=
"DOMContentLoaded",
m=
"readyState",
n=
"addEventListener",
o=
"onreadystatechange";return!a[m]&&a[n]&&(a[n](l,function t(){a.removeEventListener(l,t,j),a[m]=
"complete"},j),a[m]=
"loading"),r.get=s,r.order=function(a,b,c){(function d(e){e=a.shift(),a.length?r(e,d):r(e,b,c)})()},r.path=function(a){g=a},r.ready=function(a,b,c){a=a[k]?a:[a];var e=[];return!q(a,function(a){d[a]||e[k](a)})&&p(a,function(a){return d[a]})?b():!function(a){f[a]=f[a]||[],f[a][k](b),c&&c(e)}(a.join(
"|")),r},r},this)
111 function getQueryVariable(variable) {
112 var query = window.location.search.substring(
1);
113 var vars = query.split('&');
114 for (var i =
0; i < vars.length; i++) {
115 var pair = vars[i].split('=');
116 if (decodeURIComponent(pair[
0]) == variable) {
117 return decodeURIComponent(pair[
1]);
122 window.onload = function () {
124 // Common dependancies that are required at all times
126 ['jquery-
1.7.1.min.js', 'underscore-min.js'],
130 // If in debug mode, load each development script
131 if (getQueryVariable('debug')) {
132 console.log('Loading debugging scripts');
133 scripts = scripts.concat([
136 'dev/model_application.js',
137 'dev/model_gateway.js'
140 'dev/model_panellist.js',
141 'dev/model_panel.js',
142 'dev/model_member.js',
143 'dev/model_memberlist.js'
147 'dev/model_channel.js',
148 'dev/model_server.js',
149 'dev/model_applet.js'
153 'dev/applet_settings.js',
154 'dev/applet_nickserv.js'
163 scripts.push('kiwi.js');
167 // Run after all dependancies have been loaded
168 function startApp () {
170 container: $('#kiwi'),
172 // Override the kiwi_server to use. (Think: running on standalone client..)
173 kiwi_server: 'http://
192.168.1.13:
7778'
176 // Start the app by either the dev or closed environment
177 (kiwi && kiwi.global && kiwi.global.start(opts)) || (kiwi && kiwi.start(opts));
183 function loadNextScript () {
184 // Start the kiwi app if all scripts have been loaded
185 if (cur_script === scripts.length) {
190 $script(scripts[cur_script], loadNextScript);
195 // Start loading scripts