newIndex.js
3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
!
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", "#"))
})
}
});