Commit | Line | Data |
---|---|---|
c4fc06f6 | 1 | <!DOCTYPE html> |
2dd6a025 D |
2 | <html> |
3 | <head> | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
696a66f8 | 5 | <base target="_blank"> |
2dd6a025 D |
6 | |
7 | <title> KiwiIRC </title> | |
8 | ||
8b0eb787 | 9 | <link rel="stylesheet" type="text/css" href="/kiwi/assets/css/style.css" /> |
7de3dd03 | 10 | <link rel="stylesheet" type="text/css" href="/kiwi/assets/css/font-awesome.css" /> |
9ae6688a D |
11 | <!--[if IE 7]> |
12 | <link rel="stylesheet" type="text/css" href="/kiwi/assets/css/font-awesome-ie7.css" /> | |
13 | <![endif]--> | |
2dd6a025 D |
14 | </head> |
15 | <body> | |
16 | <div id="kiwi"> | |
17 | <div id="toolbar"> | |
7de3dd03 D |
18 | <div class="app_tools"> |
19 | <ul class="main"> | |
20 | <li class="settings"><i class="icon-cogs" title="Settings"></i></li> | |
21 | <li><a href="http://kiwiirc.com/" target="_blank"><img src="/kiwi/assets/img/ico.png" alt="KiwiIRC" title="KiwiIRC" /></a></li> | |
22 | </ul> | |
23 | </div> | |
97706488 | 24 | |
df7b7bf8 D |
25 | <div id="tabs"> |
26 | <ul class="panellist channels"></ul> | |
19cc6364 | 27 | <ul class="panellist applets"></ul> |
df7b7bf8 | 28 | </div> |
2dd6a025 D |
29 | |
30 | <div id="topic"> | |
6c719c05 | 31 | <div contenteditable="true" ></div> |
2dd6a025 | 32 | </div> |
f8ce99b4 D |
33 | |
34 | <div id="status_message"></div> | |
2dd6a025 D |
35 | </div> |
36 | ||
fe1fa679 D |
37 | <div id="memberlists_resize_handle"></div> |
38 | ||
2dd6a025 | 39 | <div id="panels"> |
0caf7aa7 | 40 | <div class="panel_container container1"></div> |
2dd6a025 D |
41 | </div> |
42 | ||
43 | <div id="memberlists"></div> | |
44 | ||
45 | <div id="controlbox"> | |
46 | <div class="input"> | |
47 | <span class="nick"> </span> | |
5998fd56 | 48 | <div class="input_wrap"><textarea class="inp"></textarea></div> |
2dd6a025 D |
49 | </div> |
50 | </div> | |
51 | </div> | |
52 | ||
696a66f8 D |
53 | |
54 | ||
55 | ||
56 | ||
57 | ||
58 | <script type="text/html" id="tmpl_userbox"> | |
75f48c13 | 59 | <div class="userbox"> |
7de3dd03 D |
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> | |
696a66f8 D |
63 | |
64 | <div class="divider-horizontal"></div> | |
75f48c13 D |
65 | </div> |
66 | </script> | |
14736777 | 67 | |
696a66f8 | 68 | <script type="text/html" id="tmpl_nickchange"> |
b0bbaf10 D |
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> | |
71 | </form> | |
14736777 | 72 | </script> |
75f48c13 | 73 | |
696a66f8 | 74 | <script type="text/html" id="tmpl_server_select"> |
2af70088 | 75 | <div class="server_select"> |
97706488 | 76 | |
362c50e6 D |
77 | <div style="position:relative;float:left;width:320px;padding-right:3em;margin-top:50px;"> |
78 | <div class="status">Think of a nickname..</div> | |
79 | ||
80 | <form> | |
81 | <div class="basic"> | |
82 | <label for="server_select_nick">Nickname</label> | |
83 | <input type="text" class="nick" id="server_select_nick"> <br /> | |
84 | ||
85 | <button type="submit">Start..</button> <br /> | |
86 | <a href="" onclick="return false;" class="show_more">More</a> | |
87 | </div> | |
88 | ||
89 | <div class="more"> | |
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 | <br /> | |
95 | <label for="server_select_port">Port</label> | |
96 | <input type="text" class="port" id="server_select_port"> <br /> | |
97 | <label for="server_select_password">Password</label> | |
98 | <input type="text" class="password" id="server_select_password"> <br /> | |
99 | <label for="server_select_ssl">SSL</label> | |
100 | <input type="checkbox" class="ssl" id="server_select_ssl"> | |
101 | </div> | |
102 | </form> | |
103 | ||
104 | <div class="divider-verticle"></div> | |
105 | </div> | |
106 | ||
107 | <div style="position:relative;float:left;width:320px;margin-left:3em;color:#555555;"> | |
108 | <a class="kiwi_logo" href="http://www.kiwiirc.com/" target="_blank"> | |
8b0eb787 | 109 | <img src="/kiwi/assets/img/ico.png" alt="KiwiIRC Logo" title="Kiwi IRC" /> <br /> |
362c50e6 D |
110 | <h1>Powered by Kiwi IRC</h1> |
111 | </a> | |
112 | ||
113 | <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> | |
114 | ||
f1b5fe65 | 115 | <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> |
362c50e6 | 116 | </div> |
2af70088 D |
117 | </div> |
118 | </script> | |
119 | ||
696a66f8 | 120 | <script type="text/html" id="tmpl_applet_settings"> |
19cc6364 D |
121 | <div> |
122 | <select class="theme"> | |
123 | <option value="default">Default</option> | |
124 | <option value="relaxed">Relaxed</option> | |
68d3b968 | 125 | <option value="cli">CLI</option> |
19cc6364 D |
126 | </select> |
127 | <button class="save">Save</button> | |
128 | </div> | |
129 | </script> | |
130 | ||
c4fc06f6 | 131 | |
696a66f8 | 132 | <script type="text/html" id="tmpl_channel_list"> |
51ae0eb8 D |
133 | <div> |
134 | <table style="margin:1em 2em;"> | |
135 | <thead style="font-weight: bold;"> | |
136 | <tr> | |
137 | <td>Channel Name</td> | |
138 | <td>Users</td> | |
139 | <td style="padding-left: 2em;">Topic</td> | |
140 | </tr> | |
141 | </thead> | |
142 | <tbody style="vertical-align: top;"> | |
143 | </tbody> | |
144 | </table> | |
145 | </div> | |
21536e7b D |
146 | </script> |
147 | ||
148 | ||
2dd6a025 | 149 | <script> |
c4fc06f6 D |
150 | /* Script loader (https://github.com/ded/script.js) */ |
151 | (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) | |
152 | ||
153 | ||
23533845 | 154 | |
a37b761a | 155 | |
23533845 D |
156 | function getQueryVariable(variable) { |
157 | var query = window.location.search.substring(1); | |
158 | var vars = query.split('&'); | |
159 | for (var i = 0; i < vars.length; i++) { | |
160 | var pair = vars[i].split('='); | |
161 | if (decodeURIComponent(pair[0]) == variable) { | |
162 | return decodeURIComponent(pair[1]); | |
163 | } | |
164 | } | |
4b8438d0 | 165 | } |
23533845 D |
166 | |
167 | window.onload = function () { | |
168 | ||
169 | // Common dependancies that are required at all times | |
170 | var scripts = [ | |
c4fc06f6 D |
171 | ['jquery-1.7.1.min.js', 'underscore-min.js'], |
172 | 'backbone-git.js' | |
23533845 D |
173 | ]; |
174 | ||
175 | // If in debug mode, load each development script | |
176 | if (getQueryVariable('debug')) { | |
c4fc06f6 | 177 | console.log('Loading debugging scripts'); |
23533845 | 178 | scripts = scripts.concat([ |
9df70c63 | 179 | 'dev/app.js', |
c4fc06f6 D |
180 | [ |
181 | 'dev/model_application.js', | |
182 | 'dev/model_gateway.js' | |
183 | ], | |
184 | [ | |
185 | 'dev/model_panellist.js', | |
186 | 'dev/model_panel.js', | |
187 | 'dev/model_member.js', | |
188 | 'dev/model_memberlist.js' | |
189 | ], | |
190 | ||
191 | [ | |
192 | 'dev/model_channel.js', | |
df7b7bf8 | 193 | 'dev/model_server.js', |
19cc6364 | 194 | 'dev/model_applet.js' |
c4fc06f6 D |
195 | ], |
196 | ||
721ad945 D |
197 | [ |
198 | 'dev/applet_settings.js', | |
51ae0eb8 D |
199 | 'dev/applet_nickserv.js', |
200 | 'dev/applet_chanlist.js' | |
721ad945 | 201 | ], |
19cc6364 | 202 | |
c4fc06f6 D |
203 | [ |
204 | 'dev/utils.js', | |
205 | 'dev/view.js' | |
206 | ] | |
23533845 D |
207 | ]); |
208 | } else { | |
19cc6364 | 209 | scripts.push('kiwi.js'); |
23533845 D |
210 | } |
211 | ||
212 | ||
213 | // Run after all dependancies have been loaded | |
b62c8381 D |
214 | function startApp () { |
215 | var opts = { | |
216 | container: $('#kiwi'), | |
696a66f8 | 217 | base_path: base_path |
a37b761a | 218 | |
b62c8381 | 219 | // Override the kiwi_server to use. (Think: running on standalone client..) |
ff063501 | 220 | //kiwi_server: 'http://kiwiirc.com:80' |
b62c8381 | 221 | }; |
fe1fa679 | 222 | |
b62c8381 D |
223 | // Start the app by either the dev or closed environment |
224 | (kiwi && kiwi.global && kiwi.global.start(opts)) || (kiwi && kiwi.start(opts)); | |
23533845 D |
225 | } |
226 | ||
227 | ||
228 | // Load each script | |
229 | var cur_script = 0; | |
230 | function loadNextScript () { | |
696a66f8 D |
231 | var to_load, |
232 | base = base_path + '/assets/'; | |
233 | ||
b62c8381 | 234 | // Start the kiwi app if all scripts have been loaded |
23533845 D |
235 | if (cur_script === scripts.length) { |
236 | startApp(); | |
237 | return; | |
238 | } | |
239 | ||
696a66f8 D |
240 | if (typeof scripts[cur_script] === 'string') { |
241 | to_load = base + scripts[cur_script]; | |
242 | } else { | |
243 | to_load = []; | |
244 | for(var idx in scripts[cur_script]) { | |
245 | to_load.push(base + scripts[cur_script][idx]); | |
246 | } | |
247 | } | |
248 | ||
249 | $script(to_load, loadNextScript); | |
23533845 D |
250 | |
251 | cur_script++; | |
252 | } | |
253 | ||
696a66f8 | 254 | // Entry path for the kiwi application |
8b0eb787 | 255 | var base_path = '/kiwi'; |
696a66f8 | 256 | |
23533845 D |
257 | // Start loading scripts |
258 | loadNextScript(); | |
259 | }; | |
2dd6a025 D |
260 | </script> |
261 | </body> | |
262 | </html> |