diff options
Diffstat (limited to 'public/views')
-rw-r--r-- | public/views/foot.ejs | 53 | ||||
-rw-r--r-- | public/views/head.ejs | 16 | ||||
-rw-r--r-- | public/views/header.ejs | 4 | ||||
-rw-r--r-- | public/views/pretty.ejs | 43 |
4 files changed, 53 insertions, 63 deletions
diff --git a/public/views/foot.ejs b/public/views/foot.ejs index 070be36b..502a5edf 100644 --- a/public/views/foot.ejs +++ b/public/views/foot.ejs @@ -1,30 +1,35 @@ -<!--<script src="/js/ga.js"></script>--> -<script src="//cdnjs.cloudflare.com/ajax/libs/spin.js/2.0.1/spin.min.js"></script> -<script src="//code.jquery.com/jquery-1.11.3.min.js"></script> -<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> +<script src="/vendor/spin.min.js" defer></script> +<script src="/vendor/jquery-1.11.2.min.js" defer></script> +<script src="/vendor/bootstrap/js/bootstrap.min.js" defer></script> <!--codemirror--> -<script src="/vendor/codemirror/codemirror.min.js"></script> +<script src="/vendor/codemirror/codemirror.min.js" defer></script> +<script src="/vendor/inlineAttachment/inline-attachment.js" defer></script> +<script src="/vendor/inlineAttachment/codemirror.inline-attachment.js" defer></script> <!--others--> -<script src="/vendor/socket.io-1.3.5.js"></script> -<script src="/vendor/remarkable.min.js"></script> -<script src="/vendor/remarkable-regex.js"></script> -<script src="/vendor/gist-embed.js"></script> -<script src="/vendor/lz-string.min.js"></script> -<script src="/vendor/highlight-js/highlight.min.js"></script> -<script src="/vendor/jquery.cookie-1.4.1.min.js"></script> -<script src="/vendor/moment-with-locales.js"></script> -<script src="/vendor/emojify/js/emojify.js"></script> -<script src="/vendor/to-markdown.js"></script> -<script src="/vendor/raphael-min.js"></script> -<script src="/vendor/underscore-min.js"></script> -<script src="/vendor/sequence-diagrams/sequence-diagram-min.js"></script> -<script src="/vendor/flowchart/flowchart-1.4.0.min.js"></script> -<script src="/vendor/FileSaver.min.js"></script> +<script src="/vendor/socket.io-1.3.5.js" defer></script> +<script src="/vendor/remarkable.min.js" defer></script> +<script src="/vendor/remarkable-regex.js" defer></script> +<script src="/vendor/gist-embed.js" defer></script> +<script src="/vendor/lz-string.min.js" defer></script> +<script src="/vendor/highlight-js/highlight.min.js" defer></script> +<script src="/vendor/js.cookie.js" defer></script> +<script src="/vendor/moment-with-locales.js" defer></script> +<script src="/vendor/emojify/js/emojify.js" defer></script> +<script src="/vendor/to-markdown.js" defer></script> +<script src="/vendor/raphael-min.js" defer></script> +<script src="/vendor/underscore-min.js" defer></script> +<script src="/vendor/sequence-diagrams/sequence-diagram-min.js" defer></script> +<script src="/vendor/flowchart/flowchart-1.4.0.min.js" defer></script> +<script src="/vendor/FileSaver.min.js" defer></script> +<script src="/vendor/store.min.js" defer></script> +<script src="/vendor/url.min.js" defer></script> <script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="rdoizrlnkuha23r" async defer></script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); </script> -<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> -<script src="/js/extra.js"></script> -<script src="/js/history.js"></script> -<script src="/js/index.js"></script>
\ No newline at end of file +<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script> +<script src="/js/common.js" defer></script> +<script src="/js/extra.js" defer></script> +<script src="/js/history.js" defer></script> +<script src="/js/index.js" defer></script> +<script src="/js/syncscroll.js" defer></script>
\ No newline at end of file diff --git a/public/views/head.ejs b/public/views/head.ejs index 23a9e64a..b47fe730 100644 --- a/public/views/head.ejs +++ b/public/views/head.ejs @@ -6,25 +6,19 @@ <meta name="mobile-web-app-capable" content="yes"> <meta name="description" content="Realtime collaborative markdown notes on all platforms."> <meta name="author" content="jackycute"> -<!-- Open Graph data --> -<meta property="og:title" content="HackMD - Collaborative notes"> -<meta property="og:type" content="website"> -<meta property="og:url" content="https://hackmd.herokuapp.com/"> -<meta property="og:description" content="Realtime collaborative markdown notes on all platforms."> -<meta property="og:site_name" content="HackMD"> -<meta property="fb:admins" content="1463801565"> <title>HackMD - Collaborative notes</title> <link rel="icon" type="image/png" href="/favicon.png"> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> -<!--<link rel="stylesheet" href="/vendor/bootstrap-3.3.1/css/bootstrap.min.css">--> -<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> -<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> +<link rel="stylesheet" href="/vendor/bootstrap/css/bootstrap.min.css"> +<link rel="stylesheet" href="/vendor/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="/vendor/codemirror/lib/codemirror.css"> <link rel="stylesheet" href="/vendor/codemirror/addon/fold/foldgutter.css"> +<link rel="stylesheet" href="/vendor/codemirror/addon/dialog/dialog.css"> +<link rel="stylesheet" href="/vendor/codemirror/addon/scroll/simplescrollbars.css"> +<link rel="stylesheet" href="/vendor/codemirror/addon/search/matchesonscrollbar.css"> <link rel="stylesheet" href="/vendor/codemirror/theme/monokai.css"> <link rel="stylesheet" href="/css/github-extract.css"> <link rel="stylesheet" href="/css/gist.css"> -<!--<link rel="stylesheet" href="/css/github-code-cdn.css">--> <link rel="stylesheet" href="/vendor/highlight-js/github.min.css"> <link rel="stylesheet" href="/vendor/emojify/css/emojify.min.css" /> <link rel="stylesheet" href="/css/markdown.css"> diff --git a/public/views/header.ejs b/public/views/header.ejs index e8b60110..99e71adf 100644 --- a/public/views/header.ejs +++ b/public/views/header.ejs @@ -19,7 +19,7 @@ <ul class="dropdown-menu" role="menu" aria-labelledby="menu"> <li role="presentation"><a role="menuitem" class="ui-new" tabindex="-1" href="./new" target="_blank"><i class="fa fa-plus fa-fw"></i> New</a> </li> - <li role="presentation"><a role="menuitem" class="ui-pretty" tabindex="-1" href="#" target="_blank"><i class="fa fa-print fa-fw"></i> Pretty</a> + <li role="presentation"><a role="menuitem" class="ui-pretty" tabindex="-1" href="#" target="_blank"><i class="fa fa-share-alt fa-fw"></i> Share</a> </li> <li class="divider"></li> <li class="dropdown-header">Save</li> @@ -75,7 +75,7 @@ <i class="fa fa-plus"></i> New </a> <a href="#" target="_blank" class="btn btn-link ui-pretty"> - <i class="fa fa-print"></i> Pretty + <i class="fa fa-share-alt"></i> Share </a> <span> <a class="btn btn-link" data-target="#" data-toggle="dropdown"> diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index 01b65afa..9e039b29 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -27,32 +27,23 @@ </body> </html> -<!--<script src="<%- url %>/js/ga.js"></script>--> -<script src="<%- url %>/vendor/jquery-1.11.2.min.js"></script> -<script src="<%- url %>/vendor/lz-string.min.js"></script> -<script src="<%- url %>/vendor/remarkable.min.js"></script> -<script src="<%- url %>/vendor/remarkable-regex.js"></script> -<script src="<%- url %>/vendor/gist-embed.js"></script> -<script src="<%- url %>/vendor/string.min.js"></script> -<script src="<%- url %>/vendor/highlight-js/highlight.min.js"></script> -<script src="<%- url %>/vendor/emojify/js/emojify.min.js"></script> -<script src="<%- url %>/vendor/raphael-min.js"></script> -<script src="<%- url %>/vendor/underscore-min.js"></script> -<script src="<%- url %>/vendor/sequence-diagrams/sequence-diagram-min.js"></script> -<script src="<%- url %>/vendor/flowchart/flowchart-1.4.0.min.js"></script> +<!--<script src="<%- url %>/js/ga.js" async defer></script>--> +<!--<script src="<%- url %>/js/newrelic.js" async defer></script>--> +<script src="<%- url %>/vendor/jquery-1.11.2.min.js" defer></script> +<script src="<%- url %>/vendor/lz-string.min.js" defer></script> +<script src="<%- url %>/vendor/remarkable.min.js" defer></script> +<script src="<%- url %>/vendor/remarkable-regex.js" defer></script> +<script src="<%- url %>/vendor/gist-embed.js" defer></script> +<script src="<%- url %>/vendor/string.min.js" defer></script> +<script src="<%- url %>/vendor/highlight-js/highlight.min.js" defer></script> +<script src="<%- url %>/vendor/emojify/js/emojify.min.js" defer></script> +<script src="<%- url %>/vendor/raphael-min.js" defer></script> +<script src="<%- url %>/vendor/underscore-min.js" defer></script> +<script src="<%- url %>/vendor/sequence-diagrams/sequence-diagram-min.js" defer></script> +<script src="<%- url %>/vendor/flowchart/flowchart-1.4.0.min.js" defer></script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); </script> -<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> -<script src="<%- url %>/js/extra.js"></script> -<script> - var raw = $(".markdown-body").text(); - var markdown = LZString.decompressFromBase64(raw); - var result = postProcess(md.render(markdown)); - var markdown = $(".markdown-body"); - markdown.html(result); - markdown.show(); - finishView(markdown); - autoLinkify(markdown); - scrollToHash(); -</script>
\ No newline at end of file +<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script> +<script src="<%- url %>/js/extra.js" defer></script> +<script src="<%- url %>/js/pretty.js" defer></script>
\ No newline at end of file |