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