Removed hard-coded kiwi location
authorJack Allnutt <m2ys4u@Gmail.com>
Tue, 19 Jul 2011 05:57:07 +0000 (06:57 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Tue, 19 Jul 2011 05:57:07 +0000 (06:57 +0100)
node/client/index.html.html [deleted file]
node/client/index.html.jade

diff --git a/node/client/index.html.html b/node/client/index.html.html
deleted file mode 100644 (file)
index d1ede49..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Kiwi IRC</title><link rel="stylesheet" type="text/css" href="css/default.css"/><link rel="stylesheet" type="text/css" href="css/ui.css"/><script src="http://192.168.1.127:7777/socket.io/socket.io.js"></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script><script type="text/javascript" src="js/jquery.json-2.2.min.js"></script><script type="text/javascript" src="js/util.js"></script><script type="text/javascript" src="js/gateway.js"></script><script type="text/javascript" src="js/front.js"></script><script type="text/javascript" src="js/iscroll.js"></script><script type="text/javascript">var agent = 'normal';
-var touchscreen = false;
-var init_data = {};
-var kiwi_server = 'http://192.168.1.127:7777/';
-var touch_scroll;
-
-$(document).ready(function(){
-    manageDebug(false);
-
-    //#channel,##channel,&channel
-    var chans = document.location.hash.match(/[#&]+[^ ,\007]+/g);
-    if(chans != null && chans.length > 0) {
-        init_data.channel = chans.join(',');
-        $('#channel').val(init_data.channel);
-    }
-
-    front.init();
-    gateway.start(kiwi_server);
-
-    addEvents();
-    $('.nick').focus();
-});
-
-
-function addEvents(){
-    $('.more_link').click(function(){ $('.content.bottom').slideDown('fast'); $('.network').focus(); return false; });
-    $('.formconnectwindow').submit(function(){
-        init_data.channel = $('#channel').val();
-        return false;
-    });
-    $('a.connect').click(function(){ $('.formconnectwindow').submit(); return false; });
-}
-
-
-</script><script id="tmpl_about_box" type="text/x-jquery-tmpl">   <h2>Kiwi IRC</h2>
-   <p>An alternative to downloading an irc client. Kiwi IRC is the best web app you'll use for the next couple years.</p>
-   <button class="about_close">Close</button>
-   <p class="info">${about}</p>
-   <p class="revisions">Front: ${front_revision}<br />Gateway: ${gateway_revision}</p>
-</script><script id="tmpl_change_nick" type="text/x-jquery-tmpl">   <div class="newnick box">
-       Your new nick:<br />
-       <form class="form_newnick">
-           <input type="text" class="txtnewnick" /><br />
-           <button class="butnewnick" type="submit">Change</button> <a class="link cancelnewnick">Cancel</a>
-       </form>
-   </div>
-</script><script id="tmpl_plugins" type="text/x-jquery-tmpl">   <div class="list">
-       <h2>Kiwi plugins</h2>
-       <p>
-           <select multiple="multiple" id="plugin_list">
-           </select>
-           <button id="plugins_list_unload">Unload</button>
-       </p>
-   </div>
-   <div class="load">
-       Plugin file URL:<br />
-       <form>
-           <input type="text" class="txtpluginfile" /><br />
-           <button class="butnewnick" type="submit">Load..</button> <a class="link cancelpluginfile">Cancel</a>
-       </form>
-   </div>
-</script><script id="tmpl_user_box" type="text/x-jquery-tmpl">   <div class="userbox">
-       <input type="hidden" class="userbox_nick" value="${nick}" />
-       <a href="#" class="userbox_query">Message</a>
-       <a href="#" class="userbox_whois">Info</a>
-   </div>
-</script></head><body><div id="kiwi"><div class="connectwindow"><h1 class="logo">Kiwi IRC</h1><div id="login"><form class="formconnectwindow"><div class="content top"><ul><li><label for="nick">Your nickname:</label><input type="text" id="nick" name="nick" placeholder="Your nick.." class="nick"/></li></ul><a href="" class="connect">Connect...</a></div><div style="" class="more"><a href="" class="more_link">more</a><div class="content bottom"><ul><li><label for="network">Server:</label><input type="text" id="network" name="network" value="irc.anonnet.org" class="network"/></li><li><label for="channel">Channel:</label><input type="text" id="channel" name="channel" value="#kiwiirc" class="channel"/></li></ul><a href="" class="connect">Connect...</a></div></div></form></div></div><div class="windowlist"><div class="poweredby">Powered by Kiwi IRC</div><ul></ul></div><div class="cur_topic"></div><div class="userlist"><ul></ul></div><div id="windows" class="windows"><div style="width:100%" class="scroller"></div></div><div class="control"><div class="msginput"><div class="nick"><a href="#"></a>:
-</div><input type="text" name="kiwi_msginput" id="kiwi_msginput"/></div><div class="plugins"><ul><li><a class="load_plugin_file">Plugins</a></li></ul></div></div></div></body></html>
\ No newline at end of file
index c76a7b9139dcb9cec9bdae265fcc633a6444c911..9918e820b09077df9844acca5d34e5a7ffc7f5c3 100644 (file)
@@ -34,7 +34,7 @@ html(xmlns="http://www.w3.org/1999/xhtml")
             var agent = '#{agent}';
             var touchscreen = #{touchscreen};
             var init_data = {};
-            var kiwi_server = '#{proto}://192.168.1.127:7777/kiwi';
+            var kiwi_server = '#{proto}://' + document.location.host + '/kiwi';
             var touch_scroll;
             
             $(document).ready(function(){