Add FAQ page.
#!/usr/bin/env python
IRC_BASE = ["ircconnection", "irclib", "numerics", "baseircclient", "irctracker", "commandparser", "commands", "ircclient", "commandhistory"]
-UI_BASE = ["baseui", "baseuiwindow", "colour", "url", "theme", "hilightcontroller", "menuitems", "tabcompleter", "panes/connect", "panes/embed", "panes/options", "panes/about", "panes/privacypolicy", "panes/feedback"]
+PANES = ["connect", "embed", "options", "about", "privacypolicy", "feedback", "faq"]
+UI_BASE = ["menuitems", "baseui", "baseuiwindow", "colour", "url", "theme", "hilightcontroller", "tabcompleter"]
+UI_BASE.extend(["panes/%s" % x for x in PANES])
DEBUG_BASE = ["qwebirc", "version", "jslib", "crypto", "md5", ["irc/%s" % x for x in IRC_BASE], ["ui/%s" % x for x in UI_BASE], "qwebircinterface", "auth", "sound"]
BUILD_BASE = ["qwebirc"]
}
.qwebirc-aboutpane .header .title {
- font-size: 4em;
+ font-size: 3em;
}
.qwebirc-aboutpane .header .subtitle {
}
.qwebirc-privacypolicypane .header .title {
- font-size: 4em;
+ font-size: 3em;
}
.qwebirc-privacypolicypane .header .subtitle {
}
.qwebirc-feedbackpane .header .title {
- font-size: 4em;
+ font-size: 3em;
}
.qwebirc-feedbackpane .header .subtitle {
font-family: Consolas, "Lucida Console", monospace;
}
+/************* FAQ *****************/
+
+.qwebirc-faqpane {
+ font-size: 1em !important;
+}
+
+.qwebirc-faqpane .mainbody {
+ font-size: 0.8em;
+ text-align: center;
+ padding: 5px;
+ margin-left: 20px;
+ margin-right: 20px;
+}
+
+.qwebirc-faqpane table {
+ display: inline-block;
+}
+
+.qwebirc-faqpane div.header {
+ padding-top: 5px;
+}
+
+.qwebirc-faqpane .header {
+ background: white;
+ text-align: center;
+ border-bottom: 1px solid gray;
+ padding-bottom: 5px;
+}
+
+.qwebirc-faqpane .header .title {
+ font-size: 3em;
+}
+
+.qwebirc-faqpane .header .subtitle {
+ text-align: center;
+ margin-top: 10px;
+}
+
+.qwebirc-faqpane .monospace {
+ font-family: Consolas, "Lucida Console", monospace;
+}
+
.qwebirc .loading {
padding-left: 4px;
padding-top: 3px;
font-size: 0.8em;
}
+
return {"send": function() { }, "cancel": function() { }};
}
}
+ } else {
+ this.floodCounter = 0;
}
this.lastActiveRequest = t;
}
qwebirc.ui.StandardUI = new Class({
Extends: qwebirc.ui.BaseUI,
- UICommands: [
- ["Options", "options"],
- ["Add webchat to your site", "embedded"],
- ["Privacy policy", "privacy"],
- ["Feedback", "feedback"],
- ["About qwebirc", "about"]
- ],
+ UICommands: qwebirc.ui.UI_COMMANDS,
initialize: function(parentElement, windowClass, uiName, options) {
this.parent(parentElement, windowClass, uiName, options);
feedbackWindow: function() {
this.addCustomWindow("Feedback", qwebirc.ui.FeedbackPane, "feedbackpane", this.uiOptions);
},
+ faqWindow: function() {
+ this.addCustomWindow("FAQ", qwebirc.ui.FAQPane, "faqpane", this.uiOptions);
+ },
urlDispatcher: function(name) {
if(name == "embedded")
return ["a", this.embeddedWindow.bind(this)];
this.client.exec("/ME slaps " + nick + " around a bit with a large fishbot");
}]
];
+
+qwebirc.ui.UI_COMMANDS = [
+ ["Options", "options"],
+ ["Add webchat to your site", "embedded"],
+ ["Privacy policy", "privacy"],
+ ["Feedback", "feedback"],
+ ["Frequently asked questions", "faq"],
+ ["About qwebirc", "about"]
+];
--- /dev/null
+qwebirc.ui.FAQPane = new Class({
+ Implements: [Events],
+ initialize: function(parent) {
+ var delayfn = function() { parent.set("html", "<div class=\"loading\">Loading. . .</div>"); };
+ var cb = delayfn.delay(500);
+
+ var r = new Request.HTML({url: "panes/faq.html", update: parent, onSuccess: function() {
+ $clear(cb);
+ parent.getElement("input[class=close]").addEvent("click", function() {
+ this.fireEvent("close");
+ }.bind(this));
+ }.bind(this)});
+ r.get();
+ }
+});
-qwebirc.VERSION = "0.80"
+qwebirc.VERSION = "0.81"
</div>
<div class="mainbody">
<div class="enterarea">
- <p class="maintext">We'd love to hear what you think about our web IRC client:</p>
+ <p class="maintext">We'd love to hear what you think about our web IRC client (in English please):</p>
<p><textarea cols="80" rows="10" class="mainarea"></textarea></p>
<p>Include your name if you'd like us to get back to you!</p>