newIndex.js 3.68 KB
!
    function(t) {
        function o(e) {
            if (n[e]) return n[e].exports;
            var i = n[e] = {
                exports: {},
                id: e,
                loaded: !1
            };
            return t[e].call(i.exports, i, i.exports, o),
                i.loaded = !0,
                i.exports
        }
        var n = {};
        o.m = t,
            o.c = n,
            o.p = "/static/",
            o(0)
    } ({
        0 : function(t, o, n) {
            t.exports = n(938)
        },
        938 : function(t, o) {
            "use strict";
            $(function() {
                function t(t) {
                    t.preventDefault()
                }
                try {
                    var o = new Swiper(".swiper-container", {
                        loop: !0,
                        setWrapperSize: !0,
                        autoplayDisableOnInteraction: !1,
                        paginationClickable: !0,
                        pagination: ".swiper-pagination",
                        prevButton: ".swiper-button-prev",
                        nextButton: ".swiper-button-next",
                        autoplay: 3e3
                    });
                    $(".swiper-container").hover(function() {
                            o.stopAutoplay(),
                                $(".swiper-button-container").removeClass("no-visual")
                        },
                        function() {
                            o.startAutoplay(),
                                $(".swiper-button-container").addClass("no-visual")
                        }),
                        $("#watch-button").click(function() {
                            $("#video-mask").removeClass("video-none"),
                                $("#video1")[0].play(),
                                $(document).on("mousewheel", t)
                        }),
                        $("#close").click(function() {
                            $("#video-mask").addClass("video-none"),
                                $("#video1")[0].pause(),
                                $(document).off("mousewheel")
                        })
                } catch(t) {}
                $(".img-container").one("mouseover",
                    function() {
                        $("#kaishu").removeClass("kaishu")
                    });
                var n = $(".num-container").offset().top - window.innerHeight,
                    e = !0;
                $(window).scroll(function() {
                    e && $(window).scrollTop() > n && ($(".data").each(function(t, o) {
                        var n = $(o),
                            e = n.attr("data-to");
                        $({
                            countNum: n.text()
                        }).animate({
                                countNum: e
                            },
                            {
                                duration: 1500,
                                easing: "swing",
                                step: function() {
                                    n.text(Math.floor(this.countNum))
                                },
                                complete: function() {
                                    n.text(this.countNum)
                                }
                            })
                    }), e = !1)
                }); (function(t) {
                    var o = void 0,
                        n = new RegExp("(^| )" + t + "=([^;]*)(;|$)");
                    return (o = document.cookie.match(n)) ? unescape(o[2]) : null
                })("mobile") && ($(".change_button").text("½øÈëºǫ́"), $(".slide3-button").text("Á¢¼´¶©¹º").prop("href", "#"))
            })
        }
    });