4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
8 <title> KiwiIRC </title>
10 <link rel="stylesheet" type="text/css" href="<%base_path%>/assets/css/style.css" />
11 <link rel="stylesheet" type="text/css" href="<%base_path%>/assets/css/font-awesome.min.css" />
13 <link rel="stylesheet" type="text/css" href="/kiwi/assets/css/font-awesome-ie7.css" />
17 <div id="kiwi" class="theme_relaxed">
19 <div class="app_tools">
21 <li class="settings"><i class="icon-cogs" title="Settings"></i></li>
22 <li><a href="https://kiwiirc.com/" target="_blank"><img src="<%base_path%>/assets/img/ico.png" alt="KiwiIRC" title="KiwiIRC" /></a></li>
29 <div contenteditable="true"></div>
32 <div id="status_message"></div>
35 <div id="memberlists_resize_handle"></div>
38 <div class="panel_container container1"></div>
41 <div id="memberlists" class="disabled"></div>
45 <span class="nick"> </span>
46 <div class="input_wrap"><textarea class="inp"></textarea></div>
47 <div class="input_tools"></div>
57 <script type="text/html" id="tmpl_userbox">
59 <a class="if_op op"><i class="icon-star"></i>Op</a>
60 <a class="if_op deop"><i class="icon-star-empty"></i>De-op</a>
61 <a class="if_op voice"><i class="icon-volume-up"></i>Voice</a>
62 <a class="if_op devoice"><i class="icon-volume-off"></i>De-voice</a>
63 <a class="if_op kick"><i class="icon-remove"></i>Kick</a>
64 <a class="if_op ban"><i class="icon-ban-circle"></i>Ban</a>
66 <a class="query"><i class="icon-comment"></i>Message</a>
67 <a class="info"><i class="icon-info-sign"></i>Info</a>
68 <a class="slap"><i class="icon-user-md"></i>Slap!</a>
72 <script type="text/html" id="tmpl_nickchange">
73 <form class="nickchange">
74 <label for="nickchange">New nick:</label> <input type="text" mozactionhint="done" autocomplete="off" spellcheck="false"/> <button>Change</button> <a class="cancel">Cancel</a>
78 <script type="text/html" id="tmpl_new_connection_info">
79 <div style="margin:1em 20px;">
80 <img src="https://kiwiirc.com/img/ico.png" alt="KiwiIRC Logo" title="Kiwi IRC" style="display:block; margin:0 auto;"/> <br />
81 <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>
83 <p style="font-size:0.9em;margin-top:2em;">Peek at the <a href="https://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>
87 <script type="text/html" id="tmpl_server_select">
88 <div class="server_select">
90 <div class="side_panel" style="position:absolute;top:0px;left:320px;">
91 <div class="content" style="position:relative;width:300px;">
95 <div class="server_details" style="position:relative;width:320px;">
96 <div class="status">Think of a nickname..</div>
102 <td><label for="server_select_nick">Nickname</label></td>
103 <td><input type="text" class="nick" id="server_select_nick"></td>
106 <tr class="have_pass">
108 <label for="server_select_show_pass">I have a password</label> <input type="checkbox" id="server_select_show_pass" style="width:auto;" />
113 <td><label for="server_select_password">Password</label></td>
114 <td><input type="password" class="password" id="server_select_password"></td>
118 <td><label for="server_select_channel">Channel</label></td>
119 <td><input type="text" class="channel" id="server_select_channel"></td>
122 <tr class="have_key">
124 <label for="server_select_show_channel_key">Channel requires a key</label> <input type="checkbox" id="server_select_show_channel_key" style="width:auto;" />
129 <td><label for="server_select_channel_key">Key</label></td>
130 <td><input type="password" class="channel_key" id="server_select_channel_key"></td>
134 <td colspan="2"><button type="submit">Start..</button></td>
138 <a href="" onclick="return false;" class="show_more">Server and network</a>
145 <td><label for="server_select_server">Server</label></td>
146 <td><input type="text" class="server" id="server_select_server"></td>
150 <td><label for="server_select_port">Port</label></td>
151 <td><input type="text" class="port" id="server_select_port"></td>
155 <td><label for="server_select_ssl">SSL</label></td>
156 <td><input type="checkbox" class="ssl" id="server_select_ssl"></td>
162 <a class="kiwi_logo" href="https://kiwiirc.com/" target="_blank">
163 <h1><span>Powered by Kiwi IRC</span> <img src="/kiwi/assets/img/ico.png" alt="KiwiIRC Logo" title="Kiwi IRC" /></h1>
169 <script type="text/html" id="tmpl_applet_settings">
170 <div class="settings">
173 <td class="label">Theme</td>
175 <select class="setting-theme">
176 <option value="relaxed">Relaxed</option>
177 <option value="mini">Mini</option>
178 <option value="cli">CLI</option>
179 <option value="basic">Basic</option>
184 <td class="label">Channel list</td>
186 <select class="setting-channel_list_style">
187 <option value="list">List</option>
188 <option value="tabs">Tabs</option>
191 <i style="font-size:0.9em;">Lots of channels? `List` may be more suited</i>
195 <td class="label">Scrollback</td>
196 <td class="setting"><input type="text" class="setting-scrollback" value="150" /></td>
200 <td class="label">Show joins/parts</td>
201 <td class="setting"><input type="checkbox" class="setting-show_joins_parts" /></td>
205 <td class="label">Show timestamps</td>
206 <td class="setting"><input type="checkbox" class="setting-show_timestamps" /></td>
210 <td class="label">Mute sounds</td>
211 <td class="setting"><input type="checkbox" class="setting-mute_sounds" /></td>
215 <td colspan="2"><button class="save">Save</button><br/><span class="feedback">Saved!</span></td>
222 <script type="text/html" id="tmpl_channel_list">
224 <table style="margin:1em 2em;">
225 <thead style="font-weight: bold;">
227 <td>Channel Name</td>
229 <td style="padding-left: 2em;">Topic</td>
232 <tbody style="vertical-align: top;">
239 <script type="text/html" id="tmpl_script_editor">
240 <div style="height:100%;">
242 #kiwi .script_editor .toolbar { padding: 10px 20px; }
243 #kiwi .script_editor .toolbar span.status { margin-left:2em; font-style:italic; }
244 #kiwi .script_editor .toolbar button { height:30px; padding:0 1em; }
245 #kiwi .script_editor .toolbar button i { font-size:1.2em; margin-left:3px; }
247 <div class="script_editor" style="height:100%; position:relative;">
248 <div class="toolbar"><button class="btn_save">Save <i class="icon-save"></i></button><span class="status"></span></div>
249 <div class="editor" style="position:absolute;top:50px;bottom:0px;left:0px;right:0px;"></div>
256 /* Script loader (https://github.com/ded/script.js) */
257 (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)
262 function getQueryVariable(variable) {
263 var query = window.location.search.substring(1);
264 var vars = query.split('&');
265 for (var i = 0; i < vars.length; i++) {
266 var pair = vars[i].split('=');
267 if (decodeURIComponent(pair[0]) == variable) {
268 return decodeURIComponent(pair[1]);
273 window.onload = function () {
275 // Common dependancies that are required at all times
277 ['jquery-1.8.2.min.js', 'lodash.min.js'],
281 // If in debug mode, load each development script
282 if (getQueryVariable('debug')) {
283 console.log('Loading debugging scripts');
284 scripts = scripts.concat([
287 'dev/model_application.js',
288 'dev/model_gateway.js'
291 'dev/model_newconnection.js',
292 'dev/model_panellist.js',
293 'dev/model_networkpanellist.js',
294 'dev/model_panel.js',
295 'dev/model_member.js',
296 'dev/model_memberlist.js',
297 'dev/model_network.js'
301 'dev/model_query.js',
302 'dev/model_channel.js',
303 'dev/model_server.js',
304 'dev/model_applet.js'
308 'dev/applet_settings.js',
309 'dev/applet_nickserv.js',
310 'dev/applet_chanlist.js',
311 'dev/applet_scripteditor.js'
315 'dev/model_pluginmanager.js',
316 'dev/model_datastore.js',
322 scripts.push('kiwi.min.js?<%cache_buster%>');
326 // Run after all dependancies have been loaded
327 function startApp () {
329 container: $('#kiwi'),
330 base_path: base_path,
332 // Override the kiwi_server to use. (Think: running on standalone client..)
333 //kiwi_server: 'http://kiwiirc.com:80',
335 server_settings: <%server_settings%>,
336 client_plugins: <%client_plugins%>
343 if (opts.client_plugins && opts.client_plugins.length > 0) {
344 _.each(opts.client_plugins, function (plugin_url) {
345 kiwi.plugins.load(plugin_url);
353 function loadNextScript () {
355 base = base_path + '/assets/';
357 // Start the kiwi app if all scripts have been loaded
358 if (cur_script === scripts.length) {
363 if (typeof scripts[cur_script] === 'string') {
364 to_load = base + scripts[cur_script];
367 for(var idx in scripts[cur_script]) {
368 to_load.push(base + scripts[cur_script][idx]);
372 $script(to_load, loadNextScript);
377 // Entry path for the kiwi application
378 var base_path = '<%base_path%>';
380 // Start loading scripts