diff options
Diffstat (limited to '')
-rw-r--r-- | public/index.ejs (renamed from public/index.html) | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/public/index.html b/public/index.ejs index 829c0446..dbc5e268 100644 --- a/public/index.html +++ b/public/index.ejs @@ -15,13 +15,19 @@ <link rel="apple-touch-icon" href="/apple-touch-icon.png"> <!-- Bootstrap core CSS --> - <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> + <% if(useCDN) { %> + <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/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="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.9.0/bootstrap-social.min.css"> + <% } else { %> + <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="/css/bootstrap-social.css"> + <% } %> <link rel="stylesheet" href="/vendor/select2/select2.css"> <link rel="stylesheet" href="/vendor/select2/select2-bootstrap.css"> <!-- Custom styles for this template --> <link rel="stylesheet" href="/css/cover.css"> - <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.9.0/bootstrap-social.min.css"> <link rel="stylesheet" href="/css/site.css"> </head> @@ -203,21 +209,32 @@ <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> - <script src="//code.jquery.com/jquery-1.11.3.min.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/TweenMax.min.js" defer></script> + <% if(useCDN) { %> + <script src="//code.jquery.com/jquery-1.11.2.min.js" defer></script> + <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js" defer></script> + <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/TweenMax.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/jquery.gsap.min.js" defer></script> - <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/select2/3.5.2/select2.min.js" defer></script> + <script src="//cdnjs.cloudflare.com/ajax/libs/select2/3.5.2/select2.min.js" defer></script> + <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js" defer></script> + <script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/3.0.0/handlebars.min.js" defer></script> + <script src="//cdnjs.cloudflare.com/ajax/libs/js-url/1.8.6/url.min.js" defer></script> + <% } else { %> + <script src="/vendor/jquery-1.11.2.min.js" defer></script> + <script src="/vendor/bootstrap/js/bootstrap.min.js" defer></script> + <script src="/vendor/greensock-js/TweenMax.min.js" defer></script> + <script src="/vendor/greensock-js/jquery.gsap.min.js" defer></script> + <script src="/vendor/select2/select2.min.js" defer></script> + <script src="/vendor/moment-with-locales.js" defer></script> + <script src="/vendor/handlebars-v3.0.0.js" defer></script> + <script src="/vendor/url.min.js" defer></script> + <% } %> <script src="/vendor/js.cookie.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/3.0.0/handlebars.min.js" defer></script> <script src="/vendor/list.min.js" defer></script> <script src="/vendor/FileSaver.min.js" defer></script> <script src="/vendor/store.min.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/js-url/1.8.6/url.min.js" defer></script> <script src="/js/common.js" defer></script> <script src="/js/history.js" defer></script> <script src="/js/cover.js" defer></script> </body> -</html> +</html>
\ No newline at end of file |