slim scroll
This commit is contained in:
@ -950,6 +950,9 @@ Note.setNoteCache(noteContentJson);
|
|||||||
Note.renderNoteContent(noteContentJson)
|
Note.renderNoteContent(noteContentJson)
|
||||||
|
|
||||||
Tag.renderTagNav(tagsJson);
|
Tag.renderTagNav(tagsJson);
|
||||||
|
|
||||||
|
// init notebook后才调用
|
||||||
|
initSlimScroll();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- mdEditor -->
|
<!-- mdEditor -->
|
||||||
|
@ -950,6 +950,9 @@ Note.setNoteCache(noteContentJson);
|
|||||||
Note.renderNoteContent(noteContentJson)
|
Note.renderNoteContent(noteContentJson)
|
||||||
|
|
||||||
Tag.renderTagNav(tagsJson);
|
Tag.renderTagNav(tagsJson);
|
||||||
|
|
||||||
|
// init notebook后才调用
|
||||||
|
initSlimScroll();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- mdEditor -->
|
<!-- mdEditor -->
|
||||||
|
2
public/js/app/page-min.js
vendored
2
public/js/app/page-min.js
vendored
File diff suppressed because one or more lines are too long
@ -666,29 +666,35 @@ $(function() {
|
|||||||
|
|
||||||
// slimScroll
|
// slimScroll
|
||||||
//---
|
//---
|
||||||
|
/*
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$("#notebook").slimScroll({
|
initSlimScroll();
|
||||||
height: "100%", // $("#leftNotebook").height()+"px"
|
|
||||||
});
|
|
||||||
$("#noteItemList").slimScroll({
|
|
||||||
height: "100%", // ($("#leftNotebook").height()-42)+"px"
|
|
||||||
});
|
|
||||||
$("#wmd-input").slimScroll({
|
|
||||||
height: "100%", // $("#wmd-input").height()+"px"
|
|
||||||
});
|
|
||||||
$("#wmd-input").css("width", "100%");
|
|
||||||
|
|
||||||
$("#wmd-panel-preview").slimScroll({
|
|
||||||
height: "100%", // $("#wmd-panel-preview").height()+"px"
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#wmd-panel-preview").css("width", "100%");
|
|
||||||
}, 10);
|
}, 10);
|
||||||
|
*/
|
||||||
|
|
||||||
// 编辑器模式
|
// 编辑器模式
|
||||||
em.init();
|
em.init();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function initSlimScroll() {
|
||||||
|
$("#notebook").slimScroll({
|
||||||
|
height: "100%", // $("#leftNotebook").height()+"px"
|
||||||
|
});
|
||||||
|
$("#noteItemList").slimScroll({
|
||||||
|
height: "100%", // ($("#leftNotebook").height()-42)+"px"
|
||||||
|
});
|
||||||
|
$("#wmd-input").slimScroll({
|
||||||
|
height: "100%", // $("#wmd-input").height()+"px"
|
||||||
|
});
|
||||||
|
$("#wmd-input").css("width", "100%");
|
||||||
|
|
||||||
|
$("#wmd-panel-preview").slimScroll({
|
||||||
|
height: "100%", // $("#wmd-panel-preview").height()+"px"
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#wmd-panel-preview").css("width", "100%");
|
||||||
|
}
|
||||||
|
|
||||||
// 编辑器模式
|
// 编辑器模式
|
||||||
function editorMode() {
|
function editorMode() {
|
||||||
this.writingHash = "#writing";
|
this.writingHash = "#writing";
|
||||||
|
Reference in New Issue
Block a user