2 html(xmlns="http://www.w3.org/1999/xhtml")
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(src="http://192.168.1.127:7777/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")
26 script(type="text/javascript", src="js/touchscreen_tweaks.js")
29 - if (config.listen_ssl)
33 script(type="text/javascript")
34 var agent = '#{agent}';
35 var touchscreen = #{touchscreen};
37 var kiwi_server = '#{proto}://192.168.1.127:7777/';
40 $(document).ready(function(){
43 //#channel,##channel,&channel
44 var chans = document.location.hash.match(/[#&]+[^ ,\\007]+/g);
45 if(chans != null && chans.length > 0) {
46 init_data.channel = chans.join(',');
47 $('#channel').val(init_data.channel);
51 gateway.start(kiwi_server);
59 $('.more_link').click(function(){ $('.content.bottom').slideDown('fast'); $('.network').focus(); return false; });
60 $('.formconnectwindow').submit(function(){
61 init_data.channel = $('#channel').val();
64 $('a.connect').click(function(){ $('.formconnectwindow').submit(); return false; });
68 script#tmpl_about_box(type="text/x-jquery-tmpl")
70 | <p>An alternative to downloading an irc client. Kiwi IRC is the best web app you'll use for the next couple years.</p>
71 | <button class="about_close">Close</button>
72 | <p class="info">${about}</p>
73 | <p class="revisions">Front: ${front_revision}<br />Gateway: ${gateway_revision}</p>
75 script#tmpl_change_nick(type="text/x-jquery-tmpl")
76 | <div class="newnick box">
77 | Your new nick:<br />
78 | <form class="form_newnick">
79 | <input type="text" class="txtnewnick" /><br />
80 | <button class="butnewnick" type="submit">Change</button> <a class="link cancelnewnick">Cancel</a>
85 script#tmpl_plugins(type="text/x-jquery-tmpl")
87 | <h2>Kiwi plugins</h2>
89 | <select multiple="multiple" id="plugin_list">
91 | <button id="plugins_list_unload">Unload</button>
95 | Plugin file URL:<br />
97 | <input type="text" class="txtpluginfile" /><br />
98 | <button class="butnewnick" type="submit">Load..</button> <a class="link cancelpluginfile">Cancel</a>
102 script#tmpl_user_box(type="text/x-jquery-tmpl")
103 | <div class="userbox">
104 | <input type="hidden" class="userbox_nick" value="${nick}" />
105 | <a href="#" class="userbox_query">Message</a>
106 | <a href="#" class="userbox_whois">Info</a>
115 form.formconnectwindow
119 label(for="nick") Your nickname:
120 input(type="text", id="nick", name="nick", class="nick", placeholder="Your nick..")
121 a.connect(href="") Connect...
125 - display = 'display:none'
128 div.more(style=display)
129 a(href="", class="more_link") more
133 label(for="network") Server:
134 input(type="text", id="network", name="network", class="network", value=server)
136 label(for="channel") Channel:
137 input(type="text", id="channel", name="channel", class="channel", value="#kiwiirc")
138 a.connect(href="") Connect...
143 div.poweredby Powered by Kiwi IRC
152 div.scroller(style="width:100%")
159 input(type="text", name="kiwi_msginput", id="kiwi_msginput")
163 a.load_plugin_file Plugins
166 a.reload_css Reload CSS