4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
7 <title> KiwiIRC </title>
9 <link rel="stylesheet" type="text/css" href="<%base_path%>/assets/css/style.css" />
10 <link rel="stylesheet" type="text/css" href="<%base_path%>/assets/css/font-awesome.css" />
12 <link rel="stylesheet" type="text/css" href="/kiwi/assets/css/font-awesome-ie7.css" />
16 <div id="kiwi" class="theme_relaxed">
18 <div class="app_tools">
20 <li class="settings"><i class="icon-cogs" title="Settings"></i></li>
21 <li><a href="http://kiwiirc.com/" target="_blank"><img src="<%base_path%>/assets/img/ico.png" alt="KiwiIRC" title="KiwiIRC" /></a></li>
26 <ul class="panellist channels"></ul>
27 <ul class="panellist applets"></ul>
31 <div contenteditable="true"></div>
34 <div id="status_message"></div>
37 <div id="memberlists_resize_handle"></div>
40 <div class="panel_container container1"></div>
43 <div id="memberlists"></div>
47 <span class="nick"> </span>
48 <div class="input_wrap"><textarea class="inp"></textarea></div>
58 <script type="text/html" id="tmpl_userbox">
60 <a class="query"><i class="icon-comment"></i>Message</a>
61 <a class="info"><i class="icon-info-sign"></i>Info</a>
62 <a class="slap"><i class="icon-user-md"></i>Slap!</a>
64 <div class="divider-horizontal"></div>
68 <script type="text/html" id="tmpl_nickchange">
69 <form class="nickchange">
70 <label for="nickchange">New nick:</label> <input type="text" mozactionhint="done" autocomplete="off" spellcheck="false"/> <button>Change</button> <a class="cancel">Cancel</a>
74 <script type="text/html" id="tmpl_server_select">
75 <div class="server_select">
77 <div style="position:relative;float:left;width:320px;padding-right:3em;margin-top:50px;">
78 <div class="status">Think of a nickname..</div>
82 <label for="server_select_nick">Nickname</label>
83 <input type="text" class="nick" id="server_select_nick"> <br />
85 <button type="submit">Start..</button> <br />
86 <a href="" onclick="return false;" class="show_more">More</a>
90 <label for="server_select_server">Server</label>
91 <input type="text" class="server" id="server_select_server"> <br />
92 <label for="server_select_channel">Channel</label>
93 <input type="text" class="channel" id="server_select_channel"> <br />
94 <input type="hidden" class="channel_key">
96 <label for="server_select_port">Port</label>
97 <input type="text" class="port" id="server_select_port"> <br />
98 <label for="server_select_password">Password</label>
99 <input type="text" class="password" id="server_select_password"> <br />
100 <label for="server_select_ssl">SSL</label>
101 <input type="checkbox" class="ssl" id="server_select_ssl">
105 <div class="divider-verticle"></div>
108 <div style="position:relative;float:left;width:320px;margin-left:3em;color:#555555;">
109 <a class="kiwi_logo" href="http://www.kiwiirc.com/" target="_blank">
110 <img src="<%base_path%>/assets/img/ico.png" alt="KiwiIRC Logo" title="Kiwi IRC" /> <br />
111 <h1>Powered by Kiwi IRC</h1>
114 <p style="font-style:italic;">A <strong>hand-crafted IRC client</strong> that you can enjoy. Designed to be used <strong>easily</strong> and <strong>freely</strong>.</p>
116 <p style="font-size:0.9em;margin-top:2em;">Peek at the <a href="http://www.kiwiirc.com/">Kiwi IRC homepage</a> for more information or to find out how to embed it on your own website. Looking for source code? Try the <a href="http://github.com/prawnsalad/KiwiIRC/">GitHub</a> page. This network of people may not be associated with Kiwi IRC itself.</p>
121 <script type="text/html" id="tmpl_applet_settings">
122 <div class="settings">
127 <select class="setting-theme">
128 <option value="default">Default</option>
129 <option value="relaxed">Relaxed</option>
130 <option value="cli">CLI</option>
136 <td><input type="text" class="setting-scrollback" value="150" /></td>
140 <td>Show joins/parts</td>
141 <td><input type="checkbox" class="setting-show_joins_parts" /></td>
145 <button class="save">Save</button>
150 <script type="text/html" id="tmpl_channel_list">
152 <table style="margin:1em 2em;">
153 <thead style="font-weight: bold;">
155 <td>Channel Name</td>
157 <td style="padding-left: 2em;">Topic</td>
160 <tbody style="vertical-align: top;">
168 /* Script loader (https://github.com/ded/script.js) */
169 (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)
174 function getQueryVariable(variable) {
175 var query = window.location.search.substring(1);
176 var vars = query.split('&');
177 for (var i = 0; i < vars.length; i++) {
178 var pair = vars[i].split('=');
179 if (decodeURIComponent(pair[0]) == variable) {
180 return decodeURIComponent(pair[1]);
185 window.onload = function () {
187 // Common dependancies that are required at all times
189 ['jquery-1.8.2.min.js', 'lodash.min.js'],
193 // If in debug mode, load each development script
194 if (getQueryVariable('debug')) {
195 console.log('Loading debugging scripts');
196 scripts = scripts.concat([
199 'dev/model_application.js',
200 'dev/model_gateway.js'
203 'dev/model_panellist.js',
204 'dev/model_panel.js',
205 'dev/model_member.js',
206 'dev/model_memberlist.js'
210 'dev/model_query.js',
211 'dev/model_channel.js',
212 'dev/model_server.js',
213 'dev/model_applet.js'
217 'dev/applet_settings.js',
218 'dev/applet_nickserv.js',
219 'dev/applet_chanlist.js'
223 'dev/model_pluginmanager.js',
224 'dev/model_datastore.js',
230 scripts.push('kiwi.min.js?<%cache_buster%>');
234 // Run after all dependancies have been loaded
235 function startApp () {
237 container: $('#kiwi'),
238 base_path: base_path,
240 // Override the kiwi_server to use. (Think: running on standalone client..)
241 //kiwi_server: 'http://kiwiirc.com:80',
243 server_settings: <%server_settings%>,
244 client_plugins: <%client_plugins%>
251 if (opts.client_plugins && opts.client_plugins.length > 0) {
252 _.each(opts.client_plugins, function (plugin_url) {
253 kiwi.plugins.load(plugin_url);
261 function loadNextScript () {
263 base = base_path + '/assets/';
265 // Start the kiwi app if all scripts have been loaded
266 if (cur_script === scripts.length) {
271 if (typeof scripts[cur_script] === 'string') {
272 to_load = base + scripts[cur_script];
275 for(var idx in scripts[cur_script]) {
276 to_load.push(base + scripts[cur_script][idx]);
280 $script(to_load, loadNextScript);
285 // Entry path for the kiwi application
286 var base_path = '<%base_path%>';
288 // Start loading scripts