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