]>
jfr.im git - irc/quakenet/qwebirc.git/blob - js/qwebircinterface.js
1 var QWebIRCInterface
= new Class({
4 initialNickname: "qwebirc" + Math
.ceil(Math
.random() * 100000),
9 initialize: function(element
, ui
, options
) {
10 this.setOptions(options
);
12 window
.addEvent("domready", function() {
13 var ui_
= new ui($(element
), new Theme(this.options
.theme
));
15 if(this.options
.searchURL
) {
16 /* TODO: look at URI and detect nickname/channels... */
19 var details
= ui_
.loginBox(function(options
) {
20 var IRC
= new IRCClient(options
, ui_
);
22 window
.addEvent("beforeunload", function() {
23 IRC
.quit("Page closed");
25 }, this.options
.initialNickname
, this.options
.initialChannels
);