(function () {
-
+
var switchedArea = null;
Rakka.switchScreen = function () {
if (switchedArea == null) {
switchedArea = $.DIV({});
-
- $("div.sideBar div.outline").hide();
$("p.redirection").hide();
.hide()
.end()
.append(switchedArea);
+
+ $("body").append(
+ $.DIV({className: "left sideBarMask"}));
+
+ var btnClose
+ = $.INPUT({type : "button",
+ className: "closeButton",
+ value : "Close"});
+ $("body").append(
+ $.DIV({className: "right sideBarMask"},
+ $.DIV({className: "content"},
+ btnClose)));
+
+ $(btnClose).click(function () {
+ Rakka.restoreScreen();
+ });
}
else {
$(switchedArea).empty();
}
-
+
return $(switchedArea);
};
Rakka.restoreScreen = function () {
if (switchedArea != null) {
- $("div.sideBar div.outline").show();
-
$("p.redirection").show();
$(switchedArea).remove();
switchedArea = null;
+ $("div.sideBarMask").remove();
+
$("div.body").children().show();
}
return null;
waitingMessageBoard
= $.P({className: "waitingMessageBoard"},
$.P({}, msg));
-
+
$("body").append(waitingMessageBoard);
};
waitingMessageBoard = null;
}
};
-
+
})();