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 a322b0a..863cae3 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 7e13514..0057118 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 1dbcba1..11bc162 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 4d12a63..979fd00 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 7565053..a2123fb 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 9dbefa6..0ed7606 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 %>