font-family:Verdana, Geneva, sans-serif;\r
font-size:.85em;\r
line-height:18px; vertical-align:middle;\r
- height:18px;\r
+ /*height:18px;*/\r
text-align:center;\r
- white-space: nowrap; overflow: hidden;\r
+ /*white-space: nowrap;*/ overflow: hidden;\r
padding: 3px 5px;\r
border-bottom:3px solid #1B1B1B;\r
\r
}\r
\r
+\r
+#kiwi_menu {\r
+ display:none;\r
+ position:absolute;\r
+ right:0px;\r
+ background: gray;\r
+ border: 1px solid dark-gray;\r
+}\r
+.cur_topic .edit:hover #kiwi_menu { display:inline; }\r
+\r
+\r
+\r
#kiwi .windows {\r
position: absolute;\r
top:92px; left:0px;\r
$node_server = $_SERVER['HTTP_HOST'];\r
\r
?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
+<!DOCTYPE html>\r
<html xmlns="http://www.w3.org/1999/xhtml">\r
<head>\r
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
<ul></ul>\r
</div>\r
\r
- <div class="cur_topic"></div>\r
+ <div class="cur_topic">\r
+ <!--\r
+ <ul class="edit" style="float:right;">\r
+ <li>\r
+ <img src="img/more.png" />\r
+ <ul id="kiwi_menu">\r
+ <li>Item 1</li>\r
+ <li>Item 2</li>\r
+ <li>Item 3</li>\r
+ </ul>\r
+ </li>\r
+ </ul>\r
+ -->\r
+ <div class="topic" style="margin-right:5em; overflow:hidden; white-space: pre-wrap; word-wrap: break-word;"></div>\r
+ </div>\r
\r
<div class="userlist">\r
<ul></ul>\r
front.registerKeys();
-
+ $('#kiwi .cur_topic').resize(front.doLayoutSize);
+
$('#kiwi .formconnectwindow').submit(function () {
var netsel = $('#kiwi .formconnectwindow .network');
var nick = $('#kiwi .formconnectwindow .nick');
this.onNotice({}, {nick:gateway.nick, channel:dest, msg:msg});
break;
+ case '/win':
+ if (parts[1] !== undefined) {
+ front.windowsShow(parseInt(parts[1]));
+ }
+ break;
+
case '/quit':
gateway.quit(msg.split(" ",2)[1]);
break;
return false;
break;
case e.which === 37: // left
- if(e.altKey) front.windowsPrevious();
- return false;
+ if(e.altKey){
+ front.windowsPrevious();
+ return false;
+ }
break;
case e.which === 38: // up
if (front.buffer_pos > 0) {
}
break;
case e.which === 39: // right
- if(e.altKey) front.windowsNext();
- return false;
+ if(e.altKey){
+ front.windowsNext();
+ return false;
+ }
break;
case e.which === 40: // down
if (front.buffer_pos < front.buffer.length) {
setTopicText: function (new_topic) {
- $('#kiwi .cur_topic').text(new_topic);
+ $('#kiwi .cur_topic .topic').text(new_topic);
+ front.doLayoutSize();
},
"ssl_cert": "cert.pem",
"quit_message": "KiwiIRC",
"cap_options": [],
- "handle_http": true
-}
+ "handle_http": true,
+ "public_http": "./../"
+}
\ No newline at end of file
https = require('https'),
fs = require('fs'),
url = require('url'),
- static_server = require('node-static'),
ws = require('socket.io'),
- jade = require('jade'),
_ = require('./lib/underscore.min.js'),
starttls = require('./lib/starttls.js');
var config = JSON.parse(fs.readFileSync(__dirname + '/config.json', 'ascii'));
+if (config.handle_http) {
+ var static_server = require('node-static'),
+ jade = require('jade');
+}
+
var ircNumerics = {
RPL_WELCOME: '001',
RPL_ISUPPORT: '005',
}
};
-var fileServer = new (static_server.Server)(__dirname + '/client');
+if (config.handle_http) {
+ var fileServer = new (static_server.Server)(__dirname + config.public_http);
+}
var httpHandler = function (request, response) {
var uri, subs, useragent, agent, server_set, server, nick, debug, touchscreen;