$("div.sideBar div.outline").hide();
+ $("p.redirection").hide();
+
$("div.body")
.children()
.hide()
};
Rakka.restoreScreen = function () {
- if (switchedArea == null) {
- throw new Error("Rakka.restoreScreen(): not switched");
- }
+ if (switchedArea != null) {
+ $("div.sideBar div.outline").show();
- $("div.sideBar div.outline").show();
+ $("p.redirection").show();
- $(switchedArea).remove();
- switchedArea = null;
+ $(switchedArea).remove();
+ switchedArea = null;
- $("div.body").children().show();
+ $("div.body").children().show();
+ }
return null;
};
+
+ Rakka.getSwitchedScreen = function () {
+ return switchedArea;
+ };
+
+ Rakka.scrollToTopLeft = function () {
+ $("div.center").each(function () {
+ this.scrollTop = 0;
+ this.scrollLeft = 0;
+ });
+ };
+
+ var waitingMessageBoard = null;
+
+ Rakka.displayWaitingMessage = function (msg) {
+ Rakka.hideWaitingMessage();
+
+ waitingMessageBoard
+ = $.P({className: "waitingMessageBoard"},
+ $.P({}, msg));
+
+ $("body").append(waitingMessageBoard);
+ };
+
+ Rakka.hideWaitingMessage = function () {
+ if (waitingMessageBoard != null) {
+ $(waitingMessageBoard).remove();
+ waitingMessageBoard = null;
+ }
+ };
})();