lock page

This commit is contained in:
life
2014-05-13 21:18:33 +08:00
parent 0a75902865
commit bf6590eef9
2 changed files with 17 additions and 0 deletions

View File

@ -733,6 +733,12 @@ editorMode.prototype.changeMode = function(isWritingMode) {
$("#moreBtn i").removeClass("fa-angle-up").addClass("fa-angle-down");
}
editorMode.prototype.normalMode = function() {
/*
var w = $(document).width();
var h = $(document).height();
$("#lock").css({right:0, bottom:0});
*/
var $c = $("#editorContent_ifr").contents();
$c.contents().find("#writtingMode").remove();
@ -746,9 +752,17 @@ editorMode.prototype.normalMode = function() {
$("#themeLink").attr("href", "/css/theme/" + theme);
$("#mceToolbar").css("height", "30px");
// $("#lock").animate({right:w},1000);
}
editorMode.prototype.writtingMode = function() {
/*
// $("body").fadeOut();
var w = $(document).width();
var h = $(document).height();
$("#lock").css({right:0, bottom:0});
// $("#lock").animate({right:0}, 0);
*/
$("#themeLink").attr("href", "/css/theme/writting-overwrite.css");
@ -766,6 +780,8 @@ editorMode.prototype.writtingMode = function() {
// 点击扩展会使html的height生成, 切换后会覆盖css文件的
$("#mceToolbar").css("height", "40px");
// $("#lock").animate({right:w},1000);
// $("body").fadeIn();
}