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="shortcut icon" href="<%base_path%>/assets/img/favicon.ico">
12 <link rel="stylesheet" type="text/css" href="<%base_path%>/assets/css/style.css" />
13 <link rel="stylesheet" type="text/css" href="<%base_path%>/assets/css/font-awesome.min.css" />
15 <link rel="stylesheet" type="text/css" href="/kiwi/assets/css/font-awesome-ie7.css" />
19 <div id="kiwi" class="theme_relaxed">
21 <div class="app_tools">
23 <li class="settings"><i class="icon-cogs" title="Settings"></i></li>
24 <li><a href="https://kiwiirc.com/" target="_blank"><img src="<%base_path%>/assets/img/ico.png" alt="KiwiIRC" title="KiwiIRC" /></a></li>
28 <div class="tabs"></div>
31 <div contenteditable="true"></div>
34 <div class="status_message"></div>
37 <div class="memberlists_resize_handle"></div>
40 <div class="panel_container container1"></div>
43 <div class="memberlists disabled"></div>
45 <div class="controlbox">
47 <span class="nick"> </span>
48 <div class="input_wrap"><textarea class="inp"></textarea></div>
49 <div class="input_tools"></div>
59 <script type="text/html" id="tmpl_userbox">
61 <a class="if_op op"><i class="icon-star"></i><%= op %></a>
62 <a class="if_op deop"><i class="icon-star-empty"></i><%= de_op %></a>
63 <a class="if_op voice"><i class="icon-volume-up"></i><%= voice %></a>
64 <a class="if_op devoice"><i class="icon-volume-off"></i><%= de_voice %></a>
65 <a class="if_op kick"><i class="icon-remove"></i><%= kick %></a>
66 <a class="if_op ban"><i class="icon-ban-circle"></i><%= ban %></a>
68 <a class="query"><i class="icon-comment"></i><%= message %></a>
69 <a class="info"><i class="icon-info-sign"></i><%= info %></a>
70 <a class="slap"><i class="icon-user-md"></i><%= slap %></a>
74 <script type="text/html" id="tmpl_nickchange">
75 <form class="nickchange">
76 <label for="nickchange"><%= new_nick %>:</label> <input type="text" mozactionhint="done" autocomplete="off" spellcheck="false"/> <button><%= change %></button> <a class="cancel"><%= cancel %></a>
80 <script type="text/html" id="tmpl_new_connection_info">
81 <div style="margin:1em 20px;">
82 <img src="https://kiwiirc.com/img/ico.png" alt="KiwiIRC Logo" title="Kiwi IRC" style="display:block; margin:0 auto;"/> <br />
83 <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>
85 <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>
89 <script type="text/html" id="tmpl_server_select">
90 <div class="server_select">
92 <div class="side_panel" style="position:absolute;top:0px;left:320px;">
93 <div class="content" style="position:relative;width:300px;">
97 <div class="server_details" style="position:relative;width:320px;">
98 <div class="status"><%= think_nick %></div>
104 <td><label for="server_select_nick"><%= nickname %></label></td>
105 <td><input type="text" class="nick" id="server_select_nick"></td>
108 <tr class="have_pass">
110 <label for="server_select_show_pass"><%= have_password %></label> <input type="checkbox" id="server_select_show_pass" style="width:auto;" />
115 <td><label for="server_select_password"><%= password %></label></td>
116 <td><input type="password" class="password" id="server_select_password"></td>
120 <td><label for="server_select_channel"><%= channel %></label></td>
122 <div style="position:relative;">
123 <input type="text" class="channel" id="server_select_channel">
124 <i class="icon-key" title="<%= channel_key %>"></i>
129 <tr class="have_key">
131 <label for="server_select_show_channel_key"><%= require_key %></label> <input type="checkbox" id="server_select_show_channel_key" style="width:auto;" />
136 <td><label for="server_select_channel_key"><%= key %></label></td>
137 <td><input type="password" class="channel_key" id="server_select_channel_key"></td>
141 <td colspan="2"><button type="submit"><%= start %></button></td>
145 <a href="" onclick="return false;" class="show_more"><%= server_network %> <i class="icon-caret-down"></i></a>
152 <td><label for="server_select_server"><%= server %></label></td>
153 <td><input type="text" class="server" id="server_select_server"></td>
157 <td><label for="server_select_port"><%= port %></label></td>
158 <td><input type="text" class="port" id="server_select_port"></td>
162 <td><label for="server_select_ssl">SSL</label></td>
163 <td><input type="checkbox" class="ssl" id="server_select_ssl"></td>
169 <a class="kiwi_logo" href="https://kiwiirc.com/" target="_blank">
170 <h1><span><%= powered_by %></span> <img src="<%base_path%>/assets/img/ico.png" alt="KiwiIRC Logo" title="Kiwi IRC" /></h1>
176 <script type="text/html" id="tmpl_applet_settings">
177 <div class="settings_container">
180 <div class="control-group">
181 <div class="thumbnails">
182 <a class="thumbnail" data-setting="theme" data-value="relaxed" href="#">
183 <div class="thumbnail_wrapper"><div class="theme_color" style="background-color: #e7e7e7;"></div></div>
184 <div class="caption"><u>Relaxed</u></div>
186 <a class="thumbnail" data-setting="theme" data-value="mini" href="#">
187 <div class="thumbnail_wrapper"><div class="theme_color" style="background-color: #fff;"></div></div>
188 <div class="caption"><u>Mini</u></div>
190 <a class="thumbnail" data-setting="theme" data-value="cli" href="#">
191 <div class="thumbnail_wrapper"><div class="theme_color" style="background-color: #222;"></div></div>
192 <div class="caption"><u>CLI</u></div>
194 <a class="thumbnail" data-setting="theme" data-value="basic" href="#">
195 <div class="thumbnail_wrapper"><div class="theme_color" style="background-color: #e7e7e7;"></div></div>
196 <div class="caption"><u>Basic</u></div>
204 <div class="control-group">
207 <input type="radio" name="channel_list_style" data-setting="channel_list_style" value="tabs">
213 <input type="radio" name="channel_list_style" data-setting="channel_list_style" value="list">
214 <%= list %><small class="text-muted">(<%= large_amounts_of_chans %>)</small>
222 <div class="control-group">
223 <div class="checkbox">
225 <input data-setting="show_joins_parts" type="checkbox">
229 <div class="checkbox">
231 <input data-setting="show_timestamps" type="checkbox">
235 <div class="checkbox">
237 <input data-setting="mute_sounds" type="checkbox">
242 <input data-setting="scrollback" class="input-small" type="text" size="4" pattern="\d*">
243 <span><%= scroll_history %></span>
248 <section class="language">
250 <div class="control-group">
251 <select data-setting="locale">
252 <% _.forEach(languages, function(lang) { %>
253 <option value="<%= lang.tag %>"><%= lang.language %></li>
257 <small><%= locale_restart_needed %></small>
261 <section class="protocol_handler">
262 <h6><%= default_client %></h6>
263 <div class="control-group">
264 <button class="register_protocol"><%= make_default %></button>
266 <small><%= default_note %></small>
273 <script type="text/html" id="tmpl_channel_list">
275 <table style="margin:1em 2em;">
276 <thead style="font-weight: bold;">
278 <td><%= channel_name %></td>
279 <td><%= users %></td>
280 <td style="padding-left: 2em;"><%= topic %></td>
283 <tbody style="vertical-align: top;">
290 <script type="text/html" id="tmpl_script_editor">
291 <div style="height:100%;">
293 #kiwi .script_editor .se_toolbar { padding: 10px 20px; }
294 #kiwi .script_editor .se_toolbar span.status { margin-left:2em; font-style:italic; }
295 #kiwi .script_editor .se_toolbar button { height:30px; padding:0 1em; }
296 #kiwi .script_editor .se_toolbar button i { font-size:1.2em; margin-left:3px; }
298 <div class="script_editor" style="height:100%; position:relative;">
299 <div class="se_toolbar"><button class="btn_save"><%= save %><i class="icon-save"></i></button><span class="status"></span></div>
300 <div class="editor" style="position:absolute;top:50px;bottom:0px;left:0px;right:0px;"></div>
307 /* Script loader (https://github.com/ded/script.js) */
308 (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)
313 function getQueryVariable(variable) {
314 var query = window.location.search.substring(1);
315 var vars = query.split('&');
316 for (var i = 0; i < vars.length; i++) {
317 var pair = vars[i].split('=');
318 if (decodeURIComponent(pair[0]) == variable) {
319 return decodeURIComponent(pair[1]);
324 window.onload = function () {
326 // Common dependancies that are required at all times
328 ['libs/jquery-1.9.1.min.js', 'libs/lodash.min.js'],
329 'libs/backbone.min.js', 'libs/jed.js'
332 // If in debug mode, load each development script
333 if (getQueryVariable('debug')) {
334 console.log('Loading debugging scripts');
335 scripts = scripts.concat([
338 'src/models/application.js',
339 'src/models/gateway.js'
342 'src/models/newconnection.js',
343 'src/models/panellist.js',
344 'src/models/networkpanellist.js',
345 'src/models/panel.js',
346 'src/models/member.js',
347 'src/models/memberlist.js',
348 'src/models/network.js'
352 'src/models/query.js',
353 'src/models/channel.js',
354 'src/models/server.js',
355 'src/models/applet.js'
359 'src/applets/settings.js',
360 'src/applets/chanlist.js',
361 'src/applets/scripteditor.js'
365 'src/models/pluginmanager.js',
366 'src/models/datastore.js',
367 'src/helpers/utils.js'
370 // Some views extend these, so make sure they're loaded beforehand
376 'src/views/channel.js',
377 'src/views/applet.js',
378 'src/views/application.js',
379 'src/views/apptoolbar.js',
380 'src/views/controlbox.js',
381 'src/views/favicon.js',
382 'src/views/mediamessage.js',
383 'src/views/member.js',
384 'src/views/memberlist.js',
385 'src/views/menubox.js',
386 'src/views/networktabs.js',
387 'src/views/nickchangebox.js',
388 'src/views/resizehandler.js',
389 'src/views/serverselect.js',
390 'src/views/statusmessage.js',
392 'src/views/topicbar.js',
393 'src/views/userbox.js'
397 scripts.push('kiwi.min.js?<%cache_buster%>');
401 // Run after all dependancies have been loaded
402 function startApp () {
404 container: $('#kiwi'),
405 base_path: base_path,
407 // Override the kiwi_server to use. (Think: running on standalone client..)
408 //kiwi_server: 'http://kiwiirc.com:80',
410 server_settings: <%server_settings%>,
411 client_plugins: <%client_plugins%>,
412 translations: <%translations%>
416 kiwi.start(opts, function() {
418 if (opts.client_plugins && opts.client_plugins.length > 0) {
419 _.each(opts.client_plugins, function (plugin_url) {
420 kiwi.plugins.load(plugin_url);
429 function loadNextScript () {
431 base = base_path + '/assets/';
433 // Start the kiwi app if all scripts have been loaded
434 if (cur_script === scripts.length) {
439 if (typeof scripts[cur_script] === 'string') {
440 to_load = base + scripts[cur_script];
443 for(var idx in scripts[cur_script]) {
444 to_load.push(base + scripts[cur_script][idx]);
448 $script(to_load, loadNextScript);
453 // Entry path for the kiwi application
454 var base_path = '<%base_path%>';
456 // Start loading scripts