lock page
This commit is contained in:
@ -906,6 +906,7 @@ function log(o) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="hide" id="copyDiv"></div>
|
<div class="hide" id="copyDiv"></div>
|
||||||
|
<div id="lock" style="position: fixed; left:0; top:0;z-index:100; background-color:#fff"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -733,6 +733,12 @@ editorMode.prototype.changeMode = function(isWritingMode) {
|
|||||||
$("#moreBtn i").removeClass("fa-angle-up").addClass("fa-angle-down");
|
$("#moreBtn i").removeClass("fa-angle-up").addClass("fa-angle-down");
|
||||||
}
|
}
|
||||||
editorMode.prototype.normalMode = function() {
|
editorMode.prototype.normalMode = function() {
|
||||||
|
/*
|
||||||
|
var w = $(document).width();
|
||||||
|
var h = $(document).height();
|
||||||
|
$("#lock").css({right:0, bottom:0});
|
||||||
|
*/
|
||||||
|
|
||||||
var $c = $("#editorContent_ifr").contents();
|
var $c = $("#editorContent_ifr").contents();
|
||||||
|
|
||||||
$c.contents().find("#writtingMode").remove();
|
$c.contents().find("#writtingMode").remove();
|
||||||
@ -746,9 +752,17 @@ editorMode.prototype.normalMode = function() {
|
|||||||
$("#themeLink").attr("href", "/css/theme/" + theme);
|
$("#themeLink").attr("href", "/css/theme/" + theme);
|
||||||
|
|
||||||
$("#mceToolbar").css("height", "30px");
|
$("#mceToolbar").css("height", "30px");
|
||||||
|
|
||||||
|
// $("#lock").animate({right:w},1000);
|
||||||
}
|
}
|
||||||
editorMode.prototype.writtingMode = function() {
|
editorMode.prototype.writtingMode = function() {
|
||||||
|
/*
|
||||||
// $("body").fadeOut();
|
// $("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");
|
$("#themeLink").attr("href", "/css/theme/writting-overwrite.css");
|
||||||
|
|
||||||
@ -766,6 +780,8 @@ editorMode.prototype.writtingMode = function() {
|
|||||||
|
|
||||||
// 点击扩展会使html的height生成, 切换后会覆盖css文件的
|
// 点击扩展会使html的height生成, 切换后会覆盖css文件的
|
||||||
$("#mceToolbar").css("height", "40px");
|
$("#mceToolbar").css("height", "40px");
|
||||||
|
|
||||||
|
// $("#lock").animate({right:w},1000);
|
||||||
// $("body").fadeIn();
|
// $("body").fadeIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user