From bf6590eef9bb03605470a29af6425dcdb688a488 Mon Sep 17 00:00:00 2001 From: life Date: Tue, 13 May 2014 21:18:33 +0800 Subject: [PATCH] lock page --- app/views/Note/note-dev.html | 1 + public/js/app/page.js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/app/views/Note/note-dev.html b/app/views/Note/note-dev.html index 97454cd..525069b 100644 --- a/app/views/Note/note-dev.html +++ b/app/views/Note/note-dev.html @@ -906,6 +906,7 @@ function log(o) {
+
diff --git a/public/js/app/page.js b/public/js/app/page.js index 8bc4561..6a45686 100644 --- a/public/js/app/page.js +++ b/public/js/app/page.js @@ -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(); }