From 4e64583a0b6175d2c9a6729ffde1472dd55d389c Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Fri, 15 May 2015 12:58:13 +0800 Subject: Marked as 0.2.8 --- public/css/cover.css | 61 +- public/css/github-extract.css | 3 +- public/css/index.css | 6 +- public/css/site.css | 1 + public/index.html | 73 +- public/js/common.js | 53 + public/js/cover.js | 245 +- public/js/extra.js | 6 +- public/js/fb.js | 8 + public/js/ga.js | 14 - public/js/history.js | 187 +- public/js/index.js | 419 +- public/js/pretty.js | 9 + public/js/syncscroll.js | 327 ++ public/vendor/codemirror/addon/dialog/dialog.css | 4 + .../codemirror/addon/scroll/annotatescrollbar.js | 2 +- .../codemirror/addon/scroll/simplescrollbars.css | 3 +- .../codemirror/addon/scroll/simplescrollbars.js | 3 +- public/vendor/codemirror/addon/search/search.js | 8 +- public/vendor/codemirror/codemirror.min.js | 18 +- public/vendor/codemirror/compress.sh | 12 +- public/vendor/codemirror/keymap/sublime.js | 12 +- public/vendor/gist-embed.js | 6 +- .../codemirror.inline-attachment.js | 95 + .../vendor/inlineAttachment/inline-attachment.js | 435 ++ public/vendor/jquery.cookie-1.4.1.min.js | 2 - public/vendor/js.cookie.js | 137 + public/vendor/select2/css/select2.css | 421 -- public/vendor/select2/css/select2.min.css | 1 - public/vendor/select2/js/i18n/az.js | 1 - public/vendor/select2/js/i18n/bg.js | 1 - public/vendor/select2/js/i18n/ca.js | 1 - public/vendor/select2/js/i18n/cs.js | 1 - public/vendor/select2/js/i18n/da.js | 1 - public/vendor/select2/js/i18n/de.js | 1 - public/vendor/select2/js/i18n/en.js | 1 - public/vendor/select2/js/i18n/es.js | 1 - public/vendor/select2/js/i18n/et.js | 1 - public/vendor/select2/js/i18n/eu.js | 1 - public/vendor/select2/js/i18n/fi.js | 1 - public/vendor/select2/js/i18n/fr.js | 1 - public/vendor/select2/js/i18n/gl.js | 1 - public/vendor/select2/js/i18n/hi.js | 1 - public/vendor/select2/js/i18n/hr.js | 1 - public/vendor/select2/js/i18n/hu.js | 1 - public/vendor/select2/js/i18n/id.js | 1 - public/vendor/select2/js/i18n/is.js | 1 - public/vendor/select2/js/i18n/it.js | 1 - public/vendor/select2/js/i18n/lt.js | 1 - public/vendor/select2/js/i18n/lv.js | 1 - public/vendor/select2/js/i18n/mk.js | 1 - public/vendor/select2/js/i18n/nb.js | 1 - public/vendor/select2/js/i18n/nl.js | 1 - public/vendor/select2/js/i18n/pl.js | 1 - public/vendor/select2/js/i18n/pt-BR.js | 1 - public/vendor/select2/js/i18n/pt.js | 1 - public/vendor/select2/js/i18n/ro.js | 1 - public/vendor/select2/js/i18n/ru.js | 1 - public/vendor/select2/js/i18n/sk.js | 1 - public/vendor/select2/js/i18n/sr.js | 1 - public/vendor/select2/js/i18n/sv.js | 1 - public/vendor/select2/js/i18n/th.js | 1 - public/vendor/select2/js/i18n/tr.js | 1 - public/vendor/select2/js/i18n/uk.js | 1 - public/vendor/select2/js/i18n/vi.js | 1 - public/vendor/select2/js/i18n/zh-CN.js | 1 - public/vendor/select2/js/i18n/zh-TW.js | 1 - public/vendor/select2/js/select2.amd.full.js | 5326 ------------------ public/vendor/select2/js/select2.amd.js | 4766 ---------------- public/vendor/select2/js/select2.full.js | 5765 -------------------- public/vendor/select2/js/select2.full.min.js | 3 - public/vendor/select2/js/select2.js | 5205 ------------------ public/vendor/select2/js/select2.min.js | 2 - public/vendor/select2/select2-bootstrap.css | 495 ++ public/vendor/select2/select2-spinner.gif | Bin 0 -> 1849 bytes public/vendor/select2/select2.css | 704 +++ public/vendor/select2/select2.min.js | 23 + public/vendor/select2/select2.png | Bin 0 -> 613 bytes public/vendor/select2/select2x2.png | Bin 0 -> 845 bytes public/vendor/store.min.js | 2 + public/vendor/url.min.js | 1 + public/views/foot.ejs | 53 +- public/views/head.ejs | 16 +- public/views/header.ejs | 4 +- public/views/pretty.ejs | 43 +- 85 files changed, 2977 insertions(+), 22040 deletions(-) create mode 100644 public/js/common.js create mode 100644 public/js/fb.js delete mode 100644 public/js/ga.js create mode 100644 public/js/pretty.js create mode 100644 public/js/syncscroll.js create mode 100755 public/vendor/inlineAttachment/codemirror.inline-attachment.js create mode 100755 public/vendor/inlineAttachment/inline-attachment.js delete mode 100644 public/vendor/jquery.cookie-1.4.1.min.js create mode 100755 public/vendor/js.cookie.js delete mode 100755 public/vendor/select2/css/select2.css delete mode 100755 public/vendor/select2/css/select2.min.css delete mode 100755 public/vendor/select2/js/i18n/az.js delete mode 100755 public/vendor/select2/js/i18n/bg.js delete mode 100755 public/vendor/select2/js/i18n/ca.js delete mode 100755 public/vendor/select2/js/i18n/cs.js delete mode 100755 public/vendor/select2/js/i18n/da.js delete mode 100755 public/vendor/select2/js/i18n/de.js delete mode 100755 public/vendor/select2/js/i18n/en.js delete mode 100755 public/vendor/select2/js/i18n/es.js delete mode 100755 public/vendor/select2/js/i18n/et.js delete mode 100755 public/vendor/select2/js/i18n/eu.js delete mode 100755 public/vendor/select2/js/i18n/fi.js delete mode 100755 public/vendor/select2/js/i18n/fr.js delete mode 100755 public/vendor/select2/js/i18n/gl.js delete mode 100755 public/vendor/select2/js/i18n/hi.js delete mode 100755 public/vendor/select2/js/i18n/hr.js delete mode 100755 public/vendor/select2/js/i18n/hu.js delete mode 100755 public/vendor/select2/js/i18n/id.js delete mode 100755 public/vendor/select2/js/i18n/is.js delete mode 100755 public/vendor/select2/js/i18n/it.js delete mode 100755 public/vendor/select2/js/i18n/lt.js delete mode 100755 public/vendor/select2/js/i18n/lv.js delete mode 100755 public/vendor/select2/js/i18n/mk.js delete mode 100755 public/vendor/select2/js/i18n/nb.js delete mode 100755 public/vendor/select2/js/i18n/nl.js delete mode 100755 public/vendor/select2/js/i18n/pl.js delete mode 100755 public/vendor/select2/js/i18n/pt-BR.js delete mode 100755 public/vendor/select2/js/i18n/pt.js delete mode 100755 public/vendor/select2/js/i18n/ro.js delete mode 100755 public/vendor/select2/js/i18n/ru.js delete mode 100755 public/vendor/select2/js/i18n/sk.js delete mode 100755 public/vendor/select2/js/i18n/sr.js delete mode 100755 public/vendor/select2/js/i18n/sv.js delete mode 100755 public/vendor/select2/js/i18n/th.js delete mode 100755 public/vendor/select2/js/i18n/tr.js delete mode 100755 public/vendor/select2/js/i18n/uk.js delete mode 100755 public/vendor/select2/js/i18n/vi.js delete mode 100755 public/vendor/select2/js/i18n/zh-CN.js delete mode 100755 public/vendor/select2/js/i18n/zh-TW.js delete mode 100755 public/vendor/select2/js/select2.amd.full.js delete mode 100755 public/vendor/select2/js/select2.amd.js delete mode 100755 public/vendor/select2/js/select2.full.js delete mode 100755 public/vendor/select2/js/select2.full.min.js delete mode 100755 public/vendor/select2/js/select2.js delete mode 100755 public/vendor/select2/js/select2.min.js create mode 100644 public/vendor/select2/select2-bootstrap.css create mode 100755 public/vendor/select2/select2-spinner.gif create mode 100755 public/vendor/select2/select2.css create mode 100755 public/vendor/select2/select2.min.js create mode 100755 public/vendor/select2/select2.png create mode 100755 public/vendor/select2/select2x2.png create mode 100644 public/vendor/store.min.js create mode 100755 public/vendor/url.min.js (limited to 'public') diff --git a/public/css/cover.css b/public/css/cover.css index da4207b8..30d54d34 100644 --- a/public/css/cover.css +++ b/public/css/cover.css @@ -23,13 +23,15 @@ a:hover { /* * Base structure */ - +html { + height: 100%; +} html, body { - height: 100%; background-color: #333; } body { + min-height: 100%; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); @@ -40,7 +42,7 @@ body { padding: 10px; display: table; width: 100%; - height: 100%; + height: 100vh; /* For at least Firefox */ min-height: 100%; -webkit-box-shadow: inset 0 0 100px rgba(0, 0, 0, .5); @@ -156,7 +158,7 @@ body { .masthead, .mastfoot, .cover-container { - width: 700px; + width: 1000px; } } .section ul { @@ -168,41 +170,14 @@ html, body { overflow-x: hidden; } -.select2-selection, -.select2-search__field { - outline: 0; -} -.select2-search__field:hover { - border: 1px solid #b9b9b9 !important; - border-top-color: #a0a0a0 !important; -} -.select2-search__field:focus { - border: 1px solid #4d90fe !important; -} input { color: black; } .mastfoot { position: relative; } -.select2 { - width: 100% !important; - max-width: 400px; -} -.select2-selection { - height: 32px !important; -} -.select2-selection__rendered { - line-height: 32px !important; -} -.select2-selection__arrow { - height: 30px !important; -} -.select2-selection__rendered, -.select2-selection__placeholder, -.select2-results__option { - color: #000; - text-shadow: none; +.select2-container { + margin: 0 auto !important; } .list { width: 100%; @@ -275,4 +250,24 @@ input { .modal-title { text-align: left; color: black; +} + +.btn-file { + position: relative; + overflow: hidden; +} +.btn-file input[type=file] { + position: absolute; + top: 0; + right: 0; + min-width: 100%; + min-height: 100%; + font-size: 100px; + text-align: right; + filter: alpha(opacity=0); + opacity: 0; + outline: none; + background: white; + cursor: inherit; + display: block; } \ No newline at end of file diff --git a/public/css/github-extract.css b/public/css/github-extract.css index 201aebc6..67ceb418 100644 --- a/public/css/github-extract.css +++ b/public/css/github-extract.css @@ -1,6 +1,5 @@ .markdown-body { overflow: hidden; - font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; font-size: 16px; line-height: 1.6; word-wrap: break-word; @@ -339,7 +338,7 @@ } .task-list-item-checkbox { float: left; - margin: 0.4em 0 0.2em -1.3em !important; + margin: 0.31em 0 0.2em -1.3em !important; vertical-align: middle; cursor: default !important; } \ No newline at end of file diff --git a/public/css/index.css b/public/css/index.css index 6cfbeab0..b3a6bae5 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -20,7 +20,7 @@ form, font-family: 'Source Code Pro', Consolas, monaco, monospace; line-height: 18px; font-size: 16px; - height: auto; + /*height: auto;*/ min-height: 100%; overflow-y: hidden !important; -webkit-overflow-scrolling: touch; @@ -30,7 +30,7 @@ form, overflow-y: auto !important; } .CodeMirror-code { - padding-bottom: 100px; + /*padding-bottom: 72px;*/ } .CodeMirror-linenumber { opacity: 0.5; @@ -43,7 +43,7 @@ form, .CodeMirror-foldmarker { color: #d0d0d0; text-shadow: none; - font-family: arial; + font-family: Arial; line-height: .3; cursor: pointer; margin: 2px; diff --git a/public/css/site.css b/public/css/site.css index b50a1f9b..eed8b950 100644 --- a/public/css/site.css +++ b/public/css/site.css @@ -6,6 +6,7 @@ body { text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004); /*text-rendering: optimizeLegibility;*/ -webkit-overflow-scrolling: touch; + font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft JhengHei", sans-serif !important; } :focus { outline: none !important; diff --git a/public/index.html b/public/index.html index ab844ab8..c52b8ec3 100644 --- a/public/index.html +++ b/public/index.html @@ -10,13 +10,6 @@ - - - - - - -
- Realtime collaborate notes.
-
Using markdown syntax.
-
On all platforms.
+ Realtime collaborative markdown notes on all platforms.
Below are history from cookie
+Below are history from browser