2 html(xmlns="http://www.w3.org/1999/xhtml", lang="en-gb")
5 meta(http-equiv="Content-Type", content="text/html; charset=utf-8")
6 - if ((agent === 'android') || (agent === 'iphone') || (agent === 'ipad') || (agent === 'ipod'))
7 meta(name="viewport", content="width=device-width,user-scalable=no")
10 link(rel="stylesheet", type="text/css", href="css/default.css")
11 link(rel="stylesheet", type="text/css", href="css/ui.css")
14 link(rel="stylesheet", type="text/css", href="css/touchscreen_tweaks.css")
16 script(type="text/javascript", src="/socket.io/socket.io.js")
17 script(type="text/javascript", src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js")
18 script(type="text/javascript", src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js")
19 script(type="text/javascript", src="js/jquery.json-2.2.min.js")
20 //script(type="text/javascript", src="js/util.js")
21 //script(type="text/javascript", src="js/gateway.js")
22 //script(type="text/javascript", src="js/front.js")
23 //script(type="text/javascript", src="js/iscroll.js")
24 script(type="text/javascript", src="js/all.js")
27 script(type="text/javascript", src="js/touchscreen_tweaks.js")
30 - if (config.listen_ssl)
34 script(type="text/javascript")
35 var agent = '#{agent}';
36 var touchscreen = #{touchscreen};
38 var kiwi_server = '#{proto}://' + document.location.host + '/kiwi';
41 $(document).ready(function(){
44 //#channel,##channel,&channel
45 var chans = document.location.hash.match(/[#&]+[^ ,\\007]+/g);
46 if(chans != null && chans.length > 0) {
47 init_data.channel = chans.join(',');
48 $('#channel').val(init_data.channel);
52 gateway.start(kiwi_server);
60 $('.more_link').click(function(){ $('.content.bottom').slideDown('fast'); $('.network').focus(); return false; });
61 $('.formconnectwindow').submit(function(){
62 init_data.channel = $('#channel').val();
65 $('a.connect').click(function(){ $('.formconnectwindow').submit(); return false; });
66 $('a.chan').live('click', function() {
67 front.joinChannel($(this).text());
73 script#tmpl_about_box(type="text/x-jquery-tmpl")
75 | <p>An alternative to downloading an irc client. Kiwi IRC is the best web app you'll use for the next couple years.</p>
76 | <button class="about_close">Close</button>
77 | <p class="info">${about}</p>
78 | <p class="revisions">Front: ${front_revision}<br />Gateway: ${gateway_revision}</p>
80 script#tmpl_change_nick(type="text/x-jquery-tmpl")
81 | <div class="newnick box">
82 | Your new nick:<br />
83 | <form class="form_newnick">
84 | <input type="text" class="txtnewnick" /><br />
85 | <button class="butnewnick" type="submit">Change</button> <a class="link cancelnewnick">Cancel</a>
90 script#tmpl_plugins(type="text/x-jquery-tmpl")
92 | <h2>Kiwi plugins</h2>
94 | <select multiple="multiple" id="plugin_list">
96 | <button id="plugins_list_unload">Unload</button>
100 | Plugin file URL:<br />
102 | <input type="text" class="txtpluginfile" /><br />
103 | <button class="butnewnick" type="submit">Load..</button> <a class="link cancelpluginfile">Cancel</a>
107 script#tmpl_user_box(type="text/x-jquery-tmpl")
108 | <div class="userbox">
109 | <input type="hidden" class="userbox_nick" value="${nick}" />
110 | <a href="#" class="userbox_query">Message</a>
111 | <a href="#" class="userbox_whois">Info</a>
120 form.formconnectwindow
124 label(for="nick") Your nickname:
125 input(type="text", id="nick", name="nick", class="nick", placeholder="Your nick..")
126 a.connect(href="") Connect...
130 - display = 'display:none'
133 div.more(style=display)
134 a(href="", class="more_link") more
138 label(for="network") Server:
139 input(type="text", id="network", name="network", class="network", value=server)
141 label(for="channel") Channel:
142 input(type="text", id="channel", name="channel", class="channel", value="#kiwiirc")
143 a.connect(href="") Connect...
148 div.poweredby Powered by Kiwi IRC
151 div.cur_topic(contenteditable="true", spellcheck="true")
153 ul.edit(style="float:right;")
155 img(src="img/more.png")
160 div.topic(style="margin-right:5em; overflow:hidden; white-space: pre-wrap; word-wrap: break-word;")
166 div.scroller(style="width:100%")
173 input(type="text", name="kiwi_msginput", id="kiwi_msginput")
177 a.load_plugin_file Plugins
180 a.reload_css Reload CSS