-
{{msg . "writingMode"}}
+
{{if eq .userInfo.Email "demo@leanote.com"}}
diff --git a/public/css/theme/basic.less b/public/css/theme/basic.less
index ae776c7..32df0af 100644
--- a/public/css/theme/basic.less
+++ b/public/css/theme/basic.less
@@ -38,6 +38,20 @@
/*"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue", Helvetica, "Microsoft Yahei", Verdana, Simsun, "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "BBAlpha Sans", "S60 Sans", Arial, sans-serif;*/
+#noteItemList, #notebook, #leftNotebook,
+.slimScrollDiv,
+#editorContent_ifr,
+.mce-edit-area,.mce-container-body,.mce-tinymce,
+#editor .mce-ifr,
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags
+{
+ -webkit-overflow-scrolling: touch !important; // for iphone
+}
+
+
.btn {
border-radius: 2px;
}
@@ -618,7 +632,7 @@
}
#tag {
position: absolute;
- right: 270px;
+ right: 300px;
left: 0;
top: 0;
bottom: 0;
diff --git a/public/css/theme/default.css b/public/css/theme/default.css
index e817a20..76d9540 100644
--- a/public/css/theme/default.css
+++ b/public/css/theme/default.css
@@ -31,6 +31,21 @@
font-style: normal;
}
/*"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue", Helvetica, "Microsoft Yahei", Verdana, Simsun, "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "BBAlpha Sans", "S60 Sans", Arial, sans-serif;*/
+#noteItemList,
+#notebook,
+#leftNotebook,
+.slimScrollDiv,
+#editorContent_ifr,
+.mce-edit-area,
+.mce-container-body,
+.mce-tinymce,
+#editor .mce-ifr,
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags {
+ -webkit-overflow-scrolling: touch !important;
+}
.btn {
border-radius: 2px;
}
@@ -561,7 +576,7 @@
}
#tag {
position: absolute;
- right: 270px;
+ right: 300px;
left: 0;
top: 0;
bottom: 0;
@@ -1807,7 +1822,10 @@ background-position:-1px -670px
.new-note-text,
.username,
#notebookMin,
- .ui-loader {
+ .ui-loader,
+ #md-section-helper,
+ #right-column,
+ .writing-mobile-hide {
display: none !important;
}
*,
@@ -1940,7 +1958,6 @@ background-position:-1px -670px
bottom: 0;
overflow-y: hidden;
overflow-x: scroll;
- -webkit-overflow-scrolling: touch !important;
position: absolute;
line-height: 40px;
line-height: inherit !important;
@@ -1968,12 +1985,6 @@ background-position:-1px -670px
#mdEditor #wmd-input {
font-size: 16px;
}
- #md-section-helper {
- display: none;
- }
- #right-column {
- display: none !important;
- }
.new-markdown-text-abbr,
.new-note-text-abbr {
display: inline;
@@ -1997,19 +2008,18 @@ background-position:-1px -670px
.mce-container-body,
.mce-tinymce,
#editor .mce-ifr,
- .wmd-input {
+ .wmd-input,
+ #noteReadContent,
+ #attachList,
+ #tags {
overflow: scroll !important;
-webkit-overflow-scrolling: touch !important;
}
- #noteReadContent {
- -webkit-overflow-scrolling: touch !important;
- }
#attachMenu {
width: 320px;
}
#attachList {
max-height: 200px;
- -webkit-overflow-scrolling: touch !important;
}
#attachList li .attach-title {
width: 170px;
@@ -2043,3 +2053,164 @@ background-position:-1px -670px
opacity: 0.8;
}
}
+@media screen and (max-device-width: 1024px) and (orientation: landscape) {
+ #noteItemList,
+ #notebook,
+ #leftNotebook,
+ .slimScrollDiv,
+ #editorContent_ifr,
+ .mce-edit-area,
+ .mce-container-body,
+ .mce-tinymce,
+ #editor .mce-ifr,
+ .wmd-input,
+ #noteReadContent,
+ #attachList,
+ #tags {
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important;
+ }
+ #tag {
+ position: absolute;
+ right: 140px;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ overflow: hidden;
+ }
+ #tag #tags {
+ left: 50px;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow-y: hidden;
+ overflow-x: scroll;
+ position: absolute;
+ line-height: 40px;
+ line-height: inherit !important;
+ }
+ #tag #tagDropdown {
+ float: left;
+ width: 50px;
+ line-height: 40px;
+ overflow: hidden;
+ padding-left: 3px;
+ }
+ #tag .add-tag-text {
+ display: none;
+ }
+ #tag #addTagInput {
+ width: 30px;
+ display: inline-block;
+ }
+ #tag #tagColor {
+ display: none !important;
+ }
+}
+@media screen and (max-width: 800px) {
+ #noteItemList,
+ #notebook,
+ #leftNotebook,
+ .slimScrollDiv,
+ #editorContent_ifr,
+ .mce-edit-area,
+ .mce-container-body,
+ .mce-tinymce,
+ #editor .mce-ifr,
+ .wmd-input,
+ #noteReadContent,
+ #attachList,
+ #tags {
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important;
+ }
+ #lea,
+ .lea-blog,
+ #myBlog,
+ #demoRegister,
+ .noteSplit,
+ #tipsBtn,
+ #contentHistory,
+ #curNotebookForNewNote,
+ #curNotebookForNewSharedNote,
+ .for-split,
+ #listNotebookDropdownMenu,
+ #listShareNotebookDropdownMenu,
+ .username,
+ .ui-loader,
+ #md-section-helper,
+ #right-column {
+ display: none !important;
+ }
+ #tag {
+ position: absolute;
+ right: 160px;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ overflow: hidden;
+ }
+ #tag #tags {
+ left: 50px;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow-y: hidden;
+ overflow-x: scroll;
+ position: absolute;
+ line-height: 40px;
+ line-height: inherit !important;
+ }
+ #tag #tagDropdown {
+ float: left;
+ width: 50px;
+ line-height: 40px;
+ overflow: hidden;
+ padding-left: 3px;
+ }
+ #tag .add-tag-text {
+ display: none;
+ }
+ #tag #addTagInput {
+ width: 30px;
+ display: inline-block;
+ }
+ #tag #tagColor {
+ display: none !important;
+ }
+ .my-link {
+ display: block;
+ }
+ #attachMenu {
+ width: 320px;
+ }
+ #attachList {
+ max-height: 200px;
+ }
+ #attachList li .attach-title {
+ width: 170px;
+ }
+ #dropAttach .btn {
+ padding: 5px 3px;
+ margin-top: 3px;
+ display: block;
+ }
+ #myTag .folderBody li {
+ margin: 5px;
+ }
+ #myTag .folderBody li a:hover span {
+ color: #65bd77;
+ }
+ #left-column {
+ width: 100% !important;
+ }
+ #mdEditor #wmd-input {
+ font-size: 16px;
+ }
+ .my-link {
+ display: block;
+ }
+ #themeForm img {
+ height: 70px !important;
+ }
+}
diff --git a/public/css/theme/mobile.less b/public/css/theme/mobile.less
index fa9761a..e0de044 100644
--- a/public/css/theme/mobile.less
+++ b/public/css/theme/mobile.less
@@ -1,6 +1,6 @@
-@media screen and (max-width:700px) {
@green: #65bd77;
+@media screen and (max-width:700px) {
#toggleEditorMode,
#lea,
#myBlog,
@@ -18,7 +18,10 @@
.new-note-text,
.username,
#notebookMin,
-.ui-loader
+.ui-loader,
+#md-section-helper,
+#right-column,
+.writing-mobile-hide
{
display: none !important;
}
@@ -159,7 +162,6 @@ a:focus, a:hover, a:active {
bottom: 0;
overflow-y: hidden;
overflow-x: scroll;
- -webkit-overflow-scrolling: touch !important; // for iphone
position: absolute;
line-height: 40px;
line-height: inherit !important;
@@ -188,12 +190,7 @@ a:focus, a:hover, a:active {
#mdEditor #wmd-input {
font-size: 16px;
}
-#md-section-helper {
- display: none;
-}
-#right-column {
- display: none !important;
-}
+
.new-markdown-text-abbr, .new-note-text-abbr {
display: inline;
}
@@ -214,21 +211,20 @@ a:focus, a:hover, a:active {
#editorContent_ifr,
.mce-edit-area,.mce-container-body,.mce-tinymce,
#editor .mce-ifr,
-.wmd-input{
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags
+{
overflow: scroll !important;
-webkit-overflow-scrolling: touch !important; // for iphone
}
-#noteReadContent {
- -webkit-overflow-scrolling: touch !important; // for iphone
-}
-
#attachMenu {
width: 320px;
}
#attachList {
max-height: 200px;
- -webkit-overflow-scrolling: touch !important; // for iphone
}
#attachList li .attach-title {
width: 170px;
@@ -266,4 +262,179 @@ a:focus, a:hover, a:active {
opacity: .8
}
+}
+
+// ipad
+@media screen and (max-device-width: 1024px) and (orientation: landscape) {
+#noteItemList, #notebook, #leftNotebook,
+.slimScrollDiv,
+#editorContent_ifr,
+.mce-edit-area,.mce-container-body,.mce-tinymce,
+#editor .mce-ifr,
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags
+{
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important; // for iphone
+}
+
+#tag {
+ position: absolute;
+ right: 140px;
+ left:0;
+ top:0;
+ bottom:0;
+ overflow: hidden;
+
+ #tags {
+ position: absolute;
+ left: 50px;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow-y: hidden;
+ overflow-x: scroll;
+ position: absolute;
+ line-height: 40px;
+ line-height: inherit !important;
+ }
+ #tagDropdown {
+ float: left;
+ width: 50px;
+ line-height: 40px;
+ overflow: hidden;
+ padding-left: 3px;
+ }
+ .add-tag-text {
+ display: none;
+ }
+ #addTagInput {
+ width: 30px;
+ display: inline-block;
+ }
+ #tagColor {
+ display: none !important;
+ }
+}
+
+}
+
+@media screen and (max-width: 800px) {
+#noteItemList, #notebook, #leftNotebook,
+.slimScrollDiv,
+#editorContent_ifr,
+.mce-edit-area,.mce-container-body,.mce-tinymce,
+#editor .mce-ifr,
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags
+{
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important; // for iphone
+}
+
+#lea,
+.lea-blog,
+#myBlog,
+#demoRegister,
+.noteSplit,
+#tipsBtn,
+#contentHistory,
+#curNotebookForNewNote,
+#curNotebookForNewSharedNote,
+.for-split,
+#listNotebookDropdownMenu,
+#listShareNotebookDropdownMenu,
+.username,
+.ui-loader,
+#md-section-helper,
+#right-column
+{
+ display: none !important;
+}
+
+#tag {
+ position: absolute;
+ right: 160px;
+ left:0;
+ top:0;
+ bottom:0;
+ overflow: hidden;
+
+ #tags {
+ position: absolute;
+ left: 50px;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow-y: hidden;
+ overflow-x: scroll;
+ position: absolute;
+ line-height: 40px;
+ line-height: inherit !important;
+ }
+ #tagDropdown {
+ float: left;
+ width: 50px;
+ line-height: 40px;
+ overflow: hidden;
+ padding-left: 3px;
+ }
+ .add-tag-text {
+ display: none;
+ }
+ #addTagInput {
+ width: 30px;
+ display: inline-block;
+ }
+ #tagColor {
+ display: none !important;
+ }
+}
+
+.my-link {
+ display: block;
+}
+
+#attachMenu {
+ width: 320px;
+}
+#attachList {
+ max-height: 200px;
+}
+#attachList li .attach-title {
+ width: 170px;
+}
+#dropAttach .btn {
+ padding: 5px 3px;
+ margin-top: 3px;
+ display: block;
+}
+#myTag .folderBody li {
+ margin: 5px;
+ a:hover {
+ span {
+ color: @green;
+ }
+ }
+}
+
+#left-column {
+ width: 100% !important;
+}
+#mdEditor #wmd-input {
+ font-size: 16px;
+}
+
+.my-link {
+ display: block;
+}
+
+#themeForm img {
+ height: 70px !important;
+}
+
}
\ No newline at end of file
diff --git a/public/css/theme/simple.css b/public/css/theme/simple.css
index 9d59b38..24f07da 100644
--- a/public/css/theme/simple.css
+++ b/public/css/theme/simple.css
@@ -31,6 +31,21 @@
font-style: normal;
}
/*"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue", Helvetica, "Microsoft Yahei", Verdana, Simsun, "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "BBAlpha Sans", "S60 Sans", Arial, sans-serif;*/
+#noteItemList,
+#notebook,
+#leftNotebook,
+.slimScrollDiv,
+#editorContent_ifr,
+.mce-edit-area,
+.mce-container-body,
+.mce-tinymce,
+#editor .mce-ifr,
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags {
+ -webkit-overflow-scrolling: touch !important;
+}
.btn {
border-radius: 2px;
}
@@ -561,7 +576,7 @@
}
#tag {
position: absolute;
- right: 270px;
+ right: 300px;
left: 0;
top: 0;
bottom: 0;
@@ -1742,7 +1757,10 @@ background-position:-1px -670px
.new-note-text,
.username,
#notebookMin,
- .ui-loader {
+ .ui-loader,
+ #md-section-helper,
+ #right-column,
+ .writing-mobile-hide {
display: none !important;
}
*,
@@ -1875,7 +1893,6 @@ background-position:-1px -670px
bottom: 0;
overflow-y: hidden;
overflow-x: scroll;
- -webkit-overflow-scrolling: touch !important;
position: absolute;
line-height: 40px;
line-height: inherit !important;
@@ -1903,12 +1920,6 @@ background-position:-1px -670px
#mdEditor #wmd-input {
font-size: 16px;
}
- #md-section-helper {
- display: none;
- }
- #right-column {
- display: none !important;
- }
.new-markdown-text-abbr,
.new-note-text-abbr {
display: inline;
@@ -1932,19 +1943,18 @@ background-position:-1px -670px
.mce-container-body,
.mce-tinymce,
#editor .mce-ifr,
- .wmd-input {
+ .wmd-input,
+ #noteReadContent,
+ #attachList,
+ #tags {
overflow: scroll !important;
-webkit-overflow-scrolling: touch !important;
}
- #noteReadContent {
- -webkit-overflow-scrolling: touch !important;
- }
#attachMenu {
width: 320px;
}
#attachList {
max-height: 200px;
- -webkit-overflow-scrolling: touch !important;
}
#attachList li .attach-title {
width: 170px;
@@ -1978,3 +1988,164 @@ background-position:-1px -670px
opacity: 0.8;
}
}
+@media screen and (max-device-width: 1024px) and (orientation: landscape) {
+ #noteItemList,
+ #notebook,
+ #leftNotebook,
+ .slimScrollDiv,
+ #editorContent_ifr,
+ .mce-edit-area,
+ .mce-container-body,
+ .mce-tinymce,
+ #editor .mce-ifr,
+ .wmd-input,
+ #noteReadContent,
+ #attachList,
+ #tags {
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important;
+ }
+ #tag {
+ position: absolute;
+ right: 140px;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ overflow: hidden;
+ }
+ #tag #tags {
+ left: 50px;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow-y: hidden;
+ overflow-x: scroll;
+ position: absolute;
+ line-height: 40px;
+ line-height: inherit !important;
+ }
+ #tag #tagDropdown {
+ float: left;
+ width: 50px;
+ line-height: 40px;
+ overflow: hidden;
+ padding-left: 3px;
+ }
+ #tag .add-tag-text {
+ display: none;
+ }
+ #tag #addTagInput {
+ width: 30px;
+ display: inline-block;
+ }
+ #tag #tagColor {
+ display: none !important;
+ }
+}
+@media screen and (max-width: 800px) {
+ #noteItemList,
+ #notebook,
+ #leftNotebook,
+ .slimScrollDiv,
+ #editorContent_ifr,
+ .mce-edit-area,
+ .mce-container-body,
+ .mce-tinymce,
+ #editor .mce-ifr,
+ .wmd-input,
+ #noteReadContent,
+ #attachList,
+ #tags {
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important;
+ }
+ #lea,
+ .lea-blog,
+ #myBlog,
+ #demoRegister,
+ .noteSplit,
+ #tipsBtn,
+ #contentHistory,
+ #curNotebookForNewNote,
+ #curNotebookForNewSharedNote,
+ .for-split,
+ #listNotebookDropdownMenu,
+ #listShareNotebookDropdownMenu,
+ .username,
+ .ui-loader,
+ #md-section-helper,
+ #right-column {
+ display: none !important;
+ }
+ #tag {
+ position: absolute;
+ right: 160px;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ overflow: hidden;
+ }
+ #tag #tags {
+ left: 50px;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow-y: hidden;
+ overflow-x: scroll;
+ position: absolute;
+ line-height: 40px;
+ line-height: inherit !important;
+ }
+ #tag #tagDropdown {
+ float: left;
+ width: 50px;
+ line-height: 40px;
+ overflow: hidden;
+ padding-left: 3px;
+ }
+ #tag .add-tag-text {
+ display: none;
+ }
+ #tag #addTagInput {
+ width: 30px;
+ display: inline-block;
+ }
+ #tag #tagColor {
+ display: none !important;
+ }
+ .my-link {
+ display: block;
+ }
+ #attachMenu {
+ width: 320px;
+ }
+ #attachList {
+ max-height: 200px;
+ }
+ #attachList li .attach-title {
+ width: 170px;
+ }
+ #dropAttach .btn {
+ padding: 5px 3px;
+ margin-top: 3px;
+ display: block;
+ }
+ #myTag .folderBody li {
+ margin: 5px;
+ }
+ #myTag .folderBody li a:hover span {
+ color: #65bd77;
+ }
+ #left-column {
+ width: 100% !important;
+ }
+ #mdEditor #wmd-input {
+ font-size: 16px;
+ }
+ .my-link {
+ display: block;
+ }
+ #themeForm img {
+ height: 70px !important;
+ }
+}
diff --git a/public/css/theme/writting-overwrite.css b/public/css/theme/writting-overwrite.css
index 30730e2..e03ece6 100644
--- a/public/css/theme/writting-overwrite.css
+++ b/public/css/theme/writting-overwrite.css
@@ -31,6 +31,21 @@
font-style: normal;
}
/*"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue", Helvetica, "Microsoft Yahei", Verdana, Simsun, "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "BBAlpha Sans", "S60 Sans", Arial, sans-serif;*/
+#noteItemList,
+#notebook,
+#leftNotebook,
+.slimScrollDiv,
+#editorContent_ifr,
+.mce-edit-area,
+.mce-container-body,
+.mce-tinymce,
+#editor .mce-ifr,
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags {
+ -webkit-overflow-scrolling: touch !important;
+}
.btn {
border-radius: 2px;
}
@@ -561,7 +576,7 @@
}
#tag {
position: absolute;
- right: 270px;
+ right: 300px;
left: 0;
top: 0;
bottom: 0;
@@ -1638,14 +1653,12 @@ body {
}
#newNoteWrap,
#topNav,
-#lea,
-#myBlog {
+#lea {
opacity: 0;
}
#newNoteWrap:hover,
#topNav:hover,
-#lea:hover,
-#myBlog:hover {
+#lea:hover {
opacity: 1;
}
#mainContainer {
@@ -1846,3 +1859,45 @@ body {
#searchNotebookForAdd {
background: none;
}
+.writting-hide {
+ display: none;
+}
+@media screen and (max-width: 800px) {
+ #leanoteMsg {
+ display: none;
+ }
+ #noteItemList,
+ #notebook,
+ #leftNotebook,
+ .slimScrollDiv,
+ #editorContent_ifr,
+ .mce-edit-area,
+ .mce-container-body,
+ .mce-tinymce,
+ #editor .mce-ifr,
+ .wmd-input,
+ #noteReadContent,
+ #attachList,
+ #tags {
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important;
+ }
+}
+@media screen and (max-device-width: 1024px) and (orientation: landscape) {
+ #noteItemList,
+ #notebook,
+ #leftNotebook,
+ .slimScrollDiv,
+ #editorContent_ifr,
+ .mce-edit-area,
+ .mce-container-body,
+ .mce-tinymce,
+ #editor .mce-ifr,
+ .wmd-input,
+ #noteReadContent,
+ #attachList,
+ #tags {
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important;
+ }
+}
diff --git a/public/css/theme/writting-overwrite.less b/public/css/theme/writting-overwrite.less
index b3947b5..092e6ee 100644
--- a/public/css/theme/writting-overwrite.less
+++ b/public/css/theme/writting-overwrite.less
@@ -869,7 +869,7 @@ html,body {
z-index:333;
#leanoteMsg {
position: absolute;
- width: @editorWidth;
+ width: 700px;
left:0;
right:0;
text-align: right;
@@ -884,7 +884,7 @@ html,body {
margin-left: 10px;
}
-#newNoteWrap, #topNav, #lea, #myBlog {
+#newNoteWrap, #topNav, #lea {
opacity: 0;
&:hover {
opacity: 1;
@@ -1096,4 +1096,42 @@ body {
}
#searchNotebookForAdd {
background: none;
-}
\ No newline at end of file
+}
+.writting-hide {
+ display: none;
+}
+
+@media screen and (max-width: 800px) {
+#leanoteMsg {
+ display: none;
+}
+#noteItemList, #notebook, #leftNotebook,
+.slimScrollDiv,
+#editorContent_ifr,
+.mce-edit-area,.mce-container-body,.mce-tinymce,
+#editor .mce-ifr,
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags
+{
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important; // for iphone
+}
+}
+
+@media screen and (max-device-width: 1024px) and (orientation: landscape) {
+#noteItemList, #notebook, #leftNotebook,
+.slimScrollDiv,
+#editorContent_ifr,
+.mce-edit-area,.mce-container-body,.mce-tinymce,
+#editor .mce-ifr,
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags
+{
+ overflow: scroll !important;
+ -webkit-overflow-scrolling: touch !important; // for iphone
+}
+}
diff --git a/public/css/theme/writting.css b/public/css/theme/writting.css
index b9e7b67..90f8fed 100644
--- a/public/css/theme/writting.css
+++ b/public/css/theme/writting.css
@@ -31,6 +31,21 @@
font-style: normal;
}
/*"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue", Helvetica, "Microsoft Yahei", Verdana, Simsun, "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "BBAlpha Sans", "S60 Sans", Arial, sans-serif;*/
+#noteItemList,
+#notebook,
+#leftNotebook,
+.slimScrollDiv,
+#editorContent_ifr,
+.mce-edit-area,
+.mce-container-body,
+.mce-tinymce,
+#editor .mce-ifr,
+.wmd-input,
+#noteReadContent,
+#attachList,
+#tags {
+ -webkit-overflow-scrolling: touch !important;
+}
.btn {
border-radius: 2px;
}
@@ -561,7 +576,7 @@
}
#tag {
position: absolute;
- right: 270px;
+ right: 300px;
left: 0;
top: 0;
bottom: 0;
diff --git a/public/js/app/page-min.js b/public/js/app/page-min.js
index c9b445d..ecceaca 100644
--- a/public/js/app/page-min.js
+++ b/public/js/app/page-min.js
@@ -1 +1 @@
-function editorMode(){this.writingHash="#writing";this.normalHash="#normal";this.isWritingMode=location.hash==this.writingHash;this.toggleA=null}editorMode.prototype.toggleAText=function(isWriting){var self=this;setTimeout(function(){toggleA=$("#toggleEditorMode a");if(isWriting){toggleA.attr("href",self.normalHash).text(getMsg("normalMode"))}else{toggleA.attr("href",self.writingHash).text(getMsg("writingMode"))}},0)};editorMode.prototype.isWriting=function(hash){return hash==this.writingHash};editorMode.prototype.init=function(){this.changeMode(this.isWritingMode);var self=this;$("#toggleEditorMode").click(function(){saveBookmark();var $a=$(this).find("a");var isWriting=self.isWriting($a.attr("href"));self.changeMode(isWriting);restoreBookmark()})};editorMode.prototype.changeMode=function(isWritingMode){this.toggleAText(isWritingMode);if(isWritingMode){this.writtingMode()}else{this.normalMode()}$("#moreBtn i").removeClass("fa-angle-up").addClass("fa-angle-down")};editorMode.prototype.resizeEditor=function(){setTimeout(function(){resizeEditor()},10);setTimeout(function(){resizeEditor()},20);setTimeout(function(){resizeEditor()},500)};editorMode.prototype.normalMode=function(){var $c=$("#editorContent_ifr").contents();$c.contents().find("#writtingMode").remove();$c.contents().find('link[href$="editor-writting-mode.css"]').remove();$("#noteItemListWrap, #notesAndSort").show();$("#noteList").unbind("mouseenter").unbind("mouseleave");var theme=UserInfo.Theme||"default";theme+=".css";$("#themeLink").attr("href","/css/theme/"+theme);$("#mceToolbar").css("height","30px");this.resizeEditor();$("#noteList").width(UserInfo.NoteListWidth);$("#note").css("left",UserInfo.NoteListWidth)};editorMode.prototype.writtingMode=function(){$("#themeLink").attr("href","/css/theme/writting-overwrite.css");setTimeout(function(){var $c=$("#editorContent_ifr").contents();$c.contents().find("head").append('
')},0);$("#noteItemListWrap, #notesAndSort").fadeOut();$("#noteList").hover(function(){$("#noteItemListWrap, #notesAndSort").fadeIn()},function(){$("#noteItemListWrap, #notesAndSort").fadeOut()});$("#mceToolbar").css("height","40px");this.resizeEditor();$("#noteList").width(250);$("#note").css("left",0)};editorMode.prototype.getWritingCss=function(){if(this.isWritingMode){return["css/editor/editor-writting-mode.css"]}return[]};var em=new editorMode;var Resize={lineMove:false,mdLineMove:false,target:null,leftNotebook:$("#leftNotebook"),notebookSplitter:$("#notebookSplitter"),noteList:$("#noteList"),noteAndEditor:$("#noteAndEditor"),noteSplitter:$("#noteSplitter"),note:$("#note"),body:$("body"),leftColumn:$("#left-column"),rightColumn:$("#right-column"),mdSplitter:$("#mdSplitter"),init:function(){var self=this;self.initEvent()},initEvent:function(){var self=this;$(".noteSplit").bind("mousedown",function(event){event.preventDefault();self.lineMove=true;$(this).css("background-color","#ccc");self.target=$(this).attr("id");$("#noteMask").css("z-index",99999)});self.mdSplitter.bind("mousedown",function(event){event.preventDefault();self.mdLineMove=true;$(this).css("background-color","#ccc")});self.body.bind("mousemove",function(event){if(self.lineMove){event.preventDefault();self.resize3Columns(event)}else if(self.mdLineMove){event.preventDefault();self.resizeMdColumns(event)}});self.body.bind("mouseup",function(event){self.stopResize();$("#noteMask").css("z-index",-1)})},stopResize:function(){var self=this;if(self.lineMove||self.mdLineMove){ajaxGet("/user/updateColumnWidth",{mdEditorWidth:UserInfo.MdEditorWidth,notebookWidth:UserInfo.NotebookWidth,noteListWidth:UserInfo.NoteListWidth},function(){})}self.lineMove=false;self.mdLineMove=false;$(".noteSplit").css("background","none");self.mdSplitter.css("background","none")},set3ColumnsWidth:function(notebookWidth,noteListWidth){var self=this;if(notebookWidth<150||noteListWidth<100){return}var noteWidth=self.body.width()-notebookWidth-noteListWidth;if(noteWidth<400){return}self.leftNotebook.width(notebookWidth);self.notebookSplitter.css("left",notebookWidth);self.noteAndEditor.css("left",notebookWidth);self.noteList.width(noteListWidth);self.noteSplitter.css("left",noteListWidth);self.note.css("left",noteListWidth);UserInfo.NotebookWidth=notebookWidth;UserInfo.NoteListWidth=noteListWidth},resize3Columns:function(event,isFromeIfr){var self=this;if(isFromeIfr){event.clientX+=self.body.width()-self.note.width()}var notebookWidth,noteListWidth;if(self.lineMove){if(self.target=="notebookSplitter"){notebookWidth=event.clientX;noteListWidth=self.noteList.width();self.set3ColumnsWidth(notebookWidth,noteListWidth)}else{notebookWidth=self.leftNotebook.width();noteListWidth=event.clientX-notebookWidth;self.set3ColumnsWidth(notebookWidth,noteListWidth)}resizeEditor()}},resizeMdColumns:function(event){var self=this;if(self.mdLineMove){var mdEditorWidth=event.clientX-self.leftNotebook.width()-self.noteList.width();self.setMdColumnWidth(mdEditorWidth)}},setMdColumnWidth:function(mdEditorWidth){var self=this;if(mdEditorWidth>100){UserInfo.MdEditorWidth=mdEditorWidth;self.leftColumn.width(mdEditorWidth);self.rightColumn.css("left",mdEditorWidth);self.mdSplitter.css("left",mdEditorWidth)}}};Mobile={noteO:$("#note"),bodyO:$("body"),setMenuO:$("#setMenu"),hashChange:function(){var self=Mobile;var hash=location.hash;if(hash.indexOf("noteId")!=-1){self.toEditor(false);var noteId=hash.substr(8);Note.changeNote(noteId,false,false)}else{self.toNormal(false)}},init:function(){var self=this;self.isMobile();$(window).on("hashchange",self.hashChange);self.hashChange()},isMobile:function(){var u=navigator.userAgent;LEA.isMobile=false;LEA.isMobile=/Mobile|Android|iPhone/i.test(u);if(!LEA.isMobile&&$(document).width()<=700){LEA.isMobile=true}return LEA.isMobile},changeNote:function(noteId){var self=this;if(!LEA.isMobile){return true}self.toEditor(true,noteId);return false},toEditor:function(changeHash,noteId){var self=this;self.bodyO.addClass("full-editor");self.noteO.addClass("editor-show");if(changeHash){if(!noteId){noteId=Note.curNoteId}location.hash="noteId="+noteId}},toNormal:function(changeHash){var self=this;self.bodyO.removeClass("full-editor");self.noteO.removeClass("editor-show");if(changeHash){location.hash="notebookAndNote"}},switchPage:function(){var self=this;if(!LEA.isMobile){return true}if(self.bodyO.hasClass("full-editor")){self.toNormal(true)}else{self.toEditor(true)}return false}};function initSlimScroll(){if(Mobile.isMobile()){return}$("#notebook").slimScroll({height:"100%"});$("#noteItemList").slimScroll({height:"100%"});$("#wmd-input").slimScroll({height:"100%"});$("#wmd-input").css("width","100%");$("#wmd-panel-preview").slimScroll({height:"100%"});$("#wmd-panel-preview").css("width","100%")}function initEditor(){var mceToobarEverHeight=0;$("#moreBtn").click(function(){saveBookmark();var height=$("#mceToolbar").height();if(height<$("#popularToolbar").height()){$("#mceToolbar").height($("#popularToolbar").height());$(this).find("i").removeClass("fa-angle-down").addClass("fa-angle-up");mceToobarEverHeight=height}else{$("#mceToolbar").height(mceToobarEverHeight);$(this).find("i").removeClass("fa-angle-up").addClass("fa-angle-down")}resizeEditor();restoreBookmark()});tinymce.init({setup:function(ed){ed.on("keydown",Note.saveNote);ed.on("keydown",function(e){var num=e.which?e.which:e.keyCode;if(num==9){if(!e.shiftKey){var node=ed.selection.getNode();if(node.nodeName=="PRE"){ed.execCommand("mceInsertRawHTML",false," ")}else{ed.execCommand("mceInsertRawHTML",false," ")}}else{}e.preventDefault();e.stopPropagation();return false}});ed.on("click",function(e){$("body").trigger("click")});ed.on("click",function(){log(ed.selection.getNode())})},convert_urls:true,relative_urls:false,remove_script_host:false,selector:"#editorContent",content_css:["css/bootstrap.css","css/editor/editor.css"].concat(em.getWritingCss()),skin:"custom",language:LEA.locale,plugins:["autolink link leaui_image lists charmap hr","paste","searchreplace leanote_nav leanote_code tabfocus","table directionality textcolor codemirror"],toolbar1:"formatselect | forecolor backcolor | bold italic underline strikethrough | leaui_image | leanote_code | bullist numlist | alignleft aligncenter alignright alignjustify",toolbar2:"outdent indent blockquote | link unlink | table | hr removeformat | subscript superscript |searchreplace | code | pastetext pasteCopyImage | fontselect fontsizeselect",menubar:false,toolbar_items_size:"small",statusbar:false,url_converter:false,font_formats:"Arial=arial,helvetica,sans-serif;"+"Arial Black=arial black,avant garde;"+"Times New Roman=times new roman,times;"+"Courier New=courier new,courier;"+"Tahoma=tahoma,arial,helvetica,sans-serif;"+"Verdana=verdana,geneva;"+"宋体=SimSun;"+"新宋体=NSimSun;"+"黑体=SimHei;"+"微软雅黑=Microsoft YaHei",block_formats:"Header 1=h1;Header 2=h2;Header 3=h3; Header 4=h4;Pre=pre;Paragraph=p",codemirror:{indentOnInit:true,path:"CodeMirror",config:{lineNumbers:true},jsFiles:[]},paste_data_images:true});window.onbeforeunload=function(e){Note.curChangedSaveIt()};$("body").on("keydown",Note.saveNote)}var random=1;function scrollTo(self,tagName,text){var iframe=$("#editorContent_ifr").contents();var target=iframe.find(tagName+":contains("+text+")");random++;var navs=$('#leanoteNavContent [data-a="'+tagName+"-"+encodeURI(text)+'"]');var len=navs.size();for(var i=0;i
=i+1){target=target.eq(i);var top=target.offset().top;var nowTop=iframe.scrollTop();var d=200;for(var i=0;i')},0);$("#noteItemListWrap, #notesAndSort").fadeOut();$("#noteList").hover(function(){$("#noteItemListWrap, #notesAndSort").fadeIn()},function(){$("#noteItemListWrap, #notesAndSort").fadeOut()});$("#mceToolbar").css("height","40px");this.resizeEditor();$("#noteList").width(250);$("#note").css("left",0)};editorMode.prototype.getWritingCss=function(){if(this.isWritingMode){return["css/editor/editor-writting-mode.css"]}return[]};var em=new editorMode;var Resize={lineMove:false,mdLineMove:false,target:null,leftNotebook:$("#leftNotebook"),notebookSplitter:$("#notebookSplitter"),noteList:$("#noteList"),noteAndEditor:$("#noteAndEditor"),noteSplitter:$("#noteSplitter"),note:$("#note"),body:$("body"),leftColumn:$("#left-column"),rightColumn:$("#right-column"),mdSplitter:$("#mdSplitter"),init:function(){var self=this;self.initEvent()},initEvent:function(){var self=this;$(".noteSplit").bind("mousedown",function(event){event.preventDefault();self.lineMove=true;$(this).css("background-color","#ccc");self.target=$(this).attr("id");$("#noteMask").css("z-index",99999)});self.mdSplitter.bind("mousedown",function(event){event.preventDefault();self.mdLineMove=true;$(this).css("background-color","#ccc")});self.body.bind("mousemove",function(event){if(self.lineMove){event.preventDefault();self.resize3Columns(event)}else if(self.mdLineMove){event.preventDefault();self.resizeMdColumns(event)}});self.body.bind("mouseup",function(event){self.stopResize();$("#noteMask").css("z-index",-1)})},stopResize:function(){var self=this;if(self.lineMove||self.mdLineMove){ajaxGet("/user/updateColumnWidth",{mdEditorWidth:UserInfo.MdEditorWidth,notebookWidth:UserInfo.NotebookWidth,noteListWidth:UserInfo.NoteListWidth},function(){})}self.lineMove=false;self.mdLineMove=false;$(".noteSplit").css("background","none");self.mdSplitter.css("background","none")},set3ColumnsWidth:function(notebookWidth,noteListWidth){var self=this;if(notebookWidth<150||noteListWidth<100){return}var noteWidth=self.body.width()-notebookWidth-noteListWidth;if(noteWidth<400){return}self.leftNotebook.width(notebookWidth);self.notebookSplitter.css("left",notebookWidth);self.noteAndEditor.css("left",notebookWidth);self.noteList.width(noteListWidth);self.noteSplitter.css("left",noteListWidth);self.note.css("left",noteListWidth);UserInfo.NotebookWidth=notebookWidth;UserInfo.NoteListWidth=noteListWidth},resize3Columns:function(event,isFromeIfr){var self=this;if(isFromeIfr){event.clientX+=self.body.width()-self.note.width()}var notebookWidth,noteListWidth;if(self.lineMove){if(self.target=="notebookSplitter"){notebookWidth=event.clientX;noteListWidth=self.noteList.width();self.set3ColumnsWidth(notebookWidth,noteListWidth)}else{notebookWidth=self.leftNotebook.width();noteListWidth=event.clientX-notebookWidth;self.set3ColumnsWidth(notebookWidth,noteListWidth)}resizeEditor()}},resizeMdColumns:function(event){var self=this;if(self.mdLineMove){var mdEditorWidth=event.clientX-self.leftNotebook.width()-self.noteList.width();self.setMdColumnWidth(mdEditorWidth)}},setMdColumnWidth:function(mdEditorWidth){var self=this;if(mdEditorWidth>100){UserInfo.MdEditorWidth=mdEditorWidth;self.leftColumn.width(mdEditorWidth);self.rightColumn.css("left",mdEditorWidth);self.mdSplitter.css("left",mdEditorWidth)}}};Mobile={noteO:$("#note"),bodyO:$("body"),setMenuO:$("#setMenu"),hashChange:function(){var self=Mobile;var hash=location.hash;if(hash.indexOf("noteId")!=-1){self.toEditor(false);var noteId=hash.substr(8);Note.changeNote(noteId,false,false)}else{self.toNormal(false)}},init:function(){var self=this;self.isMobile();$(window).on("hashchange",self.hashChange);self.hashChange()},isMobile:function(){var u=navigator.userAgent;LEA.isMobile=false;LEA.isMobile=/Mobile|Android|iPhone|iPad/i.test(u);LEA.isIpad=/iPhone|iPad/i.test(u);if(!LEA.isMobile&&$(document).width()<=700){LEA.isMobile=true}return LEA.isMobile},changeNote:function(noteId){var self=this;if(!LEA.isMobile){return true}self.toEditor(true,noteId);return false},toEditor:function(changeHash,noteId){var self=this;self.bodyO.addClass("full-editor");self.noteO.addClass("editor-show");if(changeHash){if(!noteId){noteId=Note.curNoteId}location.hash="noteId="+noteId}},toNormal:function(changeHash){var self=this;self.bodyO.removeClass("full-editor");self.noteO.removeClass("editor-show");if(changeHash){location.hash="notebookAndNote"}},switchPage:function(){var self=this;if(!LEA.isMobile||LEA.isIpad){return true}if(self.bodyO.hasClass("full-editor")){self.toNormal(true)}else{self.toEditor(true)}return false}};function initSlimScroll(){if(Mobile.isMobile()){return}$("#notebook").slimScroll({height:"100%"});$("#noteItemList").slimScroll({height:"100%"});$("#wmd-input").slimScroll({height:"100%"});$("#wmd-input").css("width","100%");$("#wmd-panel-preview").slimScroll({height:"100%"});$("#wmd-panel-preview").css("width","100%")}function initEditor(){var mceToobarEverHeight=0;$("#moreBtn").click(function(){saveBookmark();var height=$("#mceToolbar").height();if(height<$("#popularToolbar").height()){$("#mceToolbar").height($("#popularToolbar").height());$(this).find("i").removeClass("fa-angle-down").addClass("fa-angle-up");mceToobarEverHeight=height}else{$("#mceToolbar").height(mceToobarEverHeight);$(this).find("i").removeClass("fa-angle-up").addClass("fa-angle-down")}resizeEditor();restoreBookmark()});tinymce.init({setup:function(ed){ed.on("keydown",Note.saveNote);ed.on("keydown",function(e){var num=e.which?e.which:e.keyCode;if(num==9){if(!e.shiftKey){var node=ed.selection.getNode();if(node.nodeName=="PRE"){ed.execCommand("mceInsertRawHTML",false," ")}else{ed.execCommand("mceInsertRawHTML",false," ")}}else{}e.preventDefault();e.stopPropagation();return false}});ed.on("click",function(e){$("body").trigger("click")});ed.on("click",function(){log(ed.selection.getNode())})},convert_urls:true,relative_urls:false,remove_script_host:false,selector:"#editorContent",content_css:["css/bootstrap.css","css/editor/editor.css"].concat(em.getWritingCss()),skin:"custom",language:LEA.locale,plugins:["autolink link leaui_image lists charmap hr","paste","searchreplace leanote_nav leanote_code tabfocus","table directionality textcolor codemirror"],toolbar1:"formatselect | forecolor backcolor | bold italic underline strikethrough | leaui_image | leanote_code | bullist numlist | alignleft aligncenter alignright alignjustify",toolbar2:"outdent indent blockquote | link unlink | table | hr removeformat | subscript superscript |searchreplace | code | pastetext pasteCopyImage | fontselect fontsizeselect",menubar:false,toolbar_items_size:"small",statusbar:false,url_converter:false,font_formats:"Arial=arial,helvetica,sans-serif;"+"Arial Black=arial black,avant garde;"+"Times New Roman=times new roman,times;"+"Courier New=courier new,courier;"+"Tahoma=tahoma,arial,helvetica,sans-serif;"+"Verdana=verdana,geneva;"+"宋体=SimSun;"+"新宋体=NSimSun;"+"黑体=SimHei;"+"微软雅黑=Microsoft YaHei",block_formats:"Header 1=h1;Header 2=h2;Header 3=h3; Header 4=h4;Pre=pre;Paragraph=p",codemirror:{indentOnInit:true,path:"CodeMirror",config:{lineNumbers:true},jsFiles:[]},paste_data_images:true});window.onbeforeunload=function(e){Note.curChangedSaveIt()};$("body").on("keydown",Note.saveNote)}var random=1;function scrollTo(self,tagName,text){var iframe=$("#editorContent_ifr").contents();var target=iframe.find(tagName+":contains("+text+")");random++;var navs=$('#leanoteNavContent [data-a="'+tagName+"-"+encodeURI(text)+'"]');var len=navs.size();for(var i=0;i=i+1){target=target.eq(i);var top=target.offset().top;var nowTop=iframe.scrollTop();var d=200;for(var i=0;i