scripts.html 2.1 KB
Newer Older
F
freesky-edward 已提交
1
{{ template "_internal/google_analytics.html" . }}
E
edisonxiang 已提交
2 3 4 5 6
<script src="//code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
    crossorigin="anonymous"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
    integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
    crossorigin="anonymous"></script>
E
edisonxiang 已提交
7
<script src="//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.4/jstree.min.js"></script>
F
freesky-edward 已提交
8 9 10 11 12 13 14 15 16

<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0/jquery.counterup.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-parallax/1.1.3/jquery-parallax.js"></script>
<script src="{{ .Site.BaseURL }}js/front.js"></script>

<!-- owl carousel -->
<script src="{{ .Site.BaseURL }}js/owl.carousel.min.js"></script>
E
edisonxiang 已提交
17

E
edisonxiang 已提交
18
<!-- used to for mobile -->
E
edisonxiang 已提交
19
<script src="{{ .Site.BaseURL }}js/flexible.js"></script>
E
edisonxiang 已提交
20
<script src="{{ .Site.BaseURL }}js/common.js"></script>
E
edisonxiang 已提交
21
<div id="mask" onclick="hideNav()"></div>
E
edisonxiang 已提交
22

E
edisonxiang 已提交
23
<script type="text/javascript">
E
edisonxiang 已提交
24
    $(document).ready(function () {
E
edisonxiang 已提交
25
        if ($('#docstreeview').length) {
E
edisonxiang 已提交
26 27 28 29 30 31 32
            $('#docstreeview').jstree();
            $('#docstreeview').jstree().hide_dots();
            $('#docstreeview').jstree().hide_icons();
            $('#docstreeview').on("changed.jstree", function (e, data) {
                location.href = data.node.a_attr.href;
            });
        }
E
edisonxiang 已提交
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
        function showNav() {
            $('#menu').css({
                "transform": "translateX(0)"
            }).attr("onoff", "on");
        }
        function hideNav() {
            $('#menu').css({
                "transform": "translateX(-100%)"
            }).attr("onoff", "off");
        }

        $("#slideNav").bind('click' ,function(){
            if ($('#menu').attr("onoff") == "on") {
                hideNav();
            } else {
                showNav();
            }
        })
E
edisonxiang 已提交
51 52
    });
</script>