diff options
author | Yukai Huang | 2017-01-21 12:55:45 +0800 |
---|---|---|
committer | Yukai Huang | 2017-01-21 12:55:45 +0800 |
commit | 74b04d08b5a4cf51ba71dd1ea12388974e74f4df (patch) | |
tree | b9c82d9f35ab0875eadd0ce83108a100b8f4152a /public | |
parent | 93d6fe6d7cf7d49b3dcea8ffaad4d3d51beed965 (diff) | |
parent | 6e8ff3de234471375836ba907e86bf39804c308e (diff) |
Merge branch 'master' into es6-integration
Diffstat (limited to '')
-rw-r--r-- | public/css/cover.css | 6 | ||||
-rw-r--r-- | public/js/index.js | 1 | ||||
-rw-r--r-- | public/js/pretty.js | 1 | ||||
-rw-r--r-- | public/screenshot.png | bin | 0 -> 238635 bytes | |||
-rw-r--r-- | public/views/index.ejs | 1 |
5 files changed, 9 insertions, 0 deletions
diff --git a/public/css/cover.css b/public/css/cover.css index a1527bfa..6e191d2b 100644 --- a/public/css/cover.css +++ b/public/css/cover.css @@ -354,6 +354,12 @@ input { color: white; } +.screenshot { + margin: 30px auto; + width: 100%; + border-radius: 3px; +} + select { color: black; } diff --git a/public/js/index.js b/public/js/index.js index 8e3bc561..39f28fbd 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -3452,6 +3452,7 @@ function updateViewInner() { var value = editor.getValue(); var lastMeta = md.meta; md.meta = {}; + delete md.metaError; var rendered = md.render(value); if (md.meta.type && md.meta.type === 'slide') { var slideOptions = { diff --git a/public/js/pretty.js b/public/js/pretty.js index 64d41c43..18d0dc0d 100644 --- a/public/js/pretty.js +++ b/public/js/pretty.js @@ -24,6 +24,7 @@ const markdown = $("#doc.markdown-body"); const text = markdown.text(); const lastMeta = md.meta; md.meta = {}; +delete md.metaError; let rendered = md.render(text); if (md.meta.type && md.meta.type === 'slide') { const slideOptions = { diff --git a/public/screenshot.png b/public/screenshot.png Binary files differnew file mode 100644 index 00000000..e1e77431 --- /dev/null +++ b/public/screenshot.png diff --git a/public/views/index.ejs b/public/views/index.ejs index 25139907..4bcea0eb 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -87,6 +87,7 @@ <a type="button" href="<%- url %>/features" class="btn btn-lg btn-primary" style="min-width: 200px;"><%= __('Explore all features') %></a> <br> <br> + <img src="<%- url %>/screenshot.png" class="screenshot ui-signin"> </span> <div class="lead row" style="width: 90%; margin: 0 auto;"> <div class="col-md-4 inner"> |