From 58b2cff4ecf1f522c60582a5a92eaea8978642d3 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sun, 23 Oct 2016 13:27:02 +0800 Subject: [PATCH] Use CDNJS by default with https and SRI support --- public/views/foot.ejs | 30 +++++++++++++++--------------- public/views/head.ejs | 16 ++++++++-------- public/views/html.hbs | 26 +++++++++++++------------- public/views/index.ejs | 30 +++++++++++++++--------------- public/views/pretty.ejs | 36 ++++++++++++++++++------------------ public/views/slide.ejs | 29 +++++++++++++++-------------- 6 files changed, 84 insertions(+), 83 deletions(-) diff --git a/public/views/foot.ejs b/public/views/foot.ejs index a322b0af..863cae3f 100644 --- a/public/views/foot.ejs +++ b/public/views/foot.ejs @@ -2,13 +2,13 @@ MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); <% if(useCDN) { %> - - - - + + + + - - + + <% } else { %> @@ -18,15 +18,15 @@ <% } %> - - - - - - - - - + + + + + + + + + <%- include build/index-scripts %> diff --git a/public/views/head.ejs b/public/views/head.ejs index 7e135141..00571186 100644 --- a/public/views/head.ejs +++ b/public/views/head.ejs @@ -8,16 +8,16 @@ <% if(useCDN) { %> - - - + + + <% } else { %> <% } %> - - + + @@ -43,7 +43,7 @@ diff --git a/public/views/html.hbs b/public/views/html.hbs index 1dbcba10..11bc162d 100644 --- a/public/views/html.hbs +++ b/public/views/html.hbs @@ -15,21 +15,21 @@ - - - - - - + + + + + + @@ -48,9 +48,9 @@ - - - + + + - \ No newline at end of file + diff --git a/public/views/index.ejs b/public/views/index.ejs index 4d12a630..979fd00f 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -16,9 +16,9 @@ <% if(useCDN) { %> - - - + + + <% } else { %> @@ -197,22 +197,22 @@ ================================================== --> <% if(useCDN) { %> - - - - - + + + + + < <% } else { %> <% } %> - - - - - - - + + + + + + + <%- include build/cover-scripts %> diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index 75650536..a2123fb4 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -18,14 +18,14 @@ <% if(useCDN) { %> - - + + <% } else { %> <% } %> - - + + @@ -38,9 +38,9 @@ @@ -89,10 +89,10 @@ MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); <% if(useCDN) { %> - + - - + + <% } else { %> @@ -100,14 +100,14 @@ <% } %> - - - - - - - - + + + + + + + + <%- include build/pretty-scripts %> <%- include ga %> diff --git a/public/views/slide.ejs b/public/views/slide.ejs index 9dbefa6f..0ed76069 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -15,9 +15,9 @@ <% if(useCDN) { %> - - - + + + <% } else { %> @@ -87,11 +87,12 @@ MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); <% if(useCDN) { %> - - + + - - + + + <% } else { %> @@ -102,14 +103,14 @@ <% } %> - - + + - - - - - + + + + + <%- include build/slide-scripts %>