Browse Source

get rid of unnecessary JS (except for navbar which will be replaced in the next step)

max.mehl 5 months ago
parent
commit
c4e9633f49
No account linked to committer's email address

+ 2
- 11
themes/hugo-sustain/layouts/partials/js.html View File

@@ -1,16 +1,7 @@
1 1
 <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
2 2
 <script src="{{ .Site.BaseURL }}js/jquery-1.11.3.min.js"></script>
3 3
 <!-- Bootstrap core JavaScript -->
4
-<script src="{{ .Site.BaseURL }}js/bootstrap-3.3.7.min.js" ></script>
5
-{{- range .Site.Params.custom_js -}}
4
+<!--<script src="{{ .Site.BaseURL }}js/bootstrap-3.3.7.min.js" ></script>-->
5
+{{ range .Site.Params.custom_js -}}
6 6
 <script src="{{ $.Site.BaseURL }}{{ . }}"></script>
7 7
 {{ end }}
8
-<script src="{{ .Site.BaseURL }}js/docs.min.js"></script>
9
-<script src="{{ .Site.BaseURL }}js/main.js"></script>
10
-<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
11
-<script src="{{ .Site.BaseURL }}js/ie10-viewport-bug-workaround.js"></script>
12
-{{- if .Params.highlight -}}
13
-{{ "<!-- Syntax highlighting -->" | safeHTML }}
14
-<script src="{{ .Site.BaseURL }}js/highlight-9.7.0.min.js"></script>
15
-<script>hljs.initHighlightingOnLoad();</script>
16
-{{ end }}

+ 0
- 7
themes/hugo-sustain/static/js/bootstrap-3.3.7.min.js
File diff suppressed because it is too large
View File


+ 0
- 16
themes/hugo-sustain/static/js/docs.min.js
File diff suppressed because it is too large
View File


+ 0
- 3
themes/hugo-sustain/static/js/highlight-9.7.0.min.js
File diff suppressed because it is too large
View File


+ 0
- 23
themes/hugo-sustain/static/js/ie10-viewport-bug-workaround.js View File

@@ -1,23 +0,0 @@
1
-/*!
2
- * IE10 viewport hack for Surface/desktop Windows 8 bug
3
- * Copyright 2014-2015 Twitter, Inc.
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
- */
6
-
7
-// See the Getting Started docs for more information:
8
-// http://getbootstrap.com/getting-started/#support-ie10-width
9
-
10
-(function () {
11
-    'use strict';
12
-
13
-    if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
14
-        var msViewportStyle = document.createElement('style')
15
-        msViewportStyle.appendChild(
16
-            document.createTextNode(
17
-                '@-ms-viewport{width:auto!important}'
18
-            )
19
-        )
20
-        document.querySelector('head').appendChild(msViewportStyle)
21
-    }
22
-
23
-})();

+ 0
- 14
themes/hugo-sustain/static/js/main.js View File

@@ -1,14 +0,0 @@
1
-/**
2
- * Created by fabiomadeira on 25/02/15.
3
- */
4
-// jQuery for page scrolling feature
5
-jQuery(document).ready(function(e) {
6
-    e(".scroll").click(function(t) {
7
-        t.preventDefault();
8
-        e("html,body").animate({
9
-            scrollTop: e(this.hash).offset().top
10
-        }, 1e3)
11
-    })
12
-});
13
-
14
-

Loading…
Cancel
Save