if (request.headers['if-none-match'] === kiwi.cache.alljs_hash) {
response.statusCode = 304;
} else {
+ response.setHeader('Content-type', 'application/javascript');
response.setHeader('ETag', kiwi.cache.alljs_hash);
response.write(kiwi.cache.alljs);
}
}
response.setHeader('X-Generated-By', 'KiwiIRC');
- hash = crypto.createHash('md5').update(touchscreen ? 't' : 'f').update(debug ? 't' : 'f').update(server_set ? 't' : 'f').update(server).update(nick).update(agent).update(JSON.stringify(kiwi.config)).digest('base64');
+ hash = crypto.createHash('md5').update(touchscreen ? 't' : 'f')
+ .update(debug ? 't' : 'f')
+ .update(server_set ? 't' : 'f')
+ .update(server)
+ .update(nick)
+ .update(agent)
+ .update(JSON.stringify(kiwi.config))
+ .digest('base64');
if (kiwi.cache.html[hash]) {
if (request.headers['if-none-match'] === kiwi.cache.html[hash].hash) {
response.statusCode = 304;
meta(http-equiv="Content-Type", content="text/html; charset=utf-8")
- if ((agent === 'android') || (agent === 'iphone') || (agent === 'ipad') || (agent === 'ipod'))
meta(name="viewport", content="width=device-width,user-scalable=no")
-
+
title Kiwi IRC
+ link(rel="shortcut icon", href="/img/ico.png")
link(rel="stylesheet", type="text/css", href="/css/default.css")
link(rel="stylesheet", type="text/css", href="/css/ui.css")
}
$('.formconnectwindow .nick').keydown(input_submit);
$('.formconnectwindow .channel').keydown(input_submit);
- $('.formconnectwindow .server').keydown(input_submit);
+ $('.formconnectwindow .network').keydown(input_submit);
+ $('.formconnectwindow .port').keydown(input_submit);
}