window.onload = function() {
function c() {
a.bullets.eq(0).addclass("firsrcurrent")
}
var b, a = new swiper(".apple-banner .swiper-container", {
autoplay: 3e3,
speed: 1e3,
loop: !0,
runcallbacksoninit: !1,
watchslidesprogress: !0,
pagination: ".apple-banner .swiper-pagination",
paginationclickable: !0,
paginationbulletrender: function(a, b, c) {
return '
'
},
nextbutton: ".swiper-button-next",
prevbutton: ".swiper-button-prev",
onprogress: function(a) {
var b, c, d, e, f, g;
for (b = 0; b < a.slides.length; b++) {
for (c = a.slides.eq(b), d = c[0].progress, d > 0 ? (e = .9 * d * a.width, scale = 1 - .1 * d, d > 1 && (scale = .9), txtpositionx = 0, txtpositiony = 30 * d + "px") : (e = 0, scale = 1, txtpositionx = 1e3 * -d + "px", txtpositiony = 0), f = c.find(".txt"), g = 0; g < f.length; g++) f.eq(g).transform("translate3d(" + txtpositionx + "," + txtpositiony + ",0)");
c.transform("translate3d(" + e + "px,0,0) scale(" + scale + ")")
}
},
onsettransition: function(a, b) {
var c, d, e;
for (c = 0; c < a.slides.length; c++) for (slide = a.slides.eq(c), slide.transition(b), d = slide.find(".txt"), e = 0; e < d.length; e++) d.eq(e).transition(b)
},
onslidechangestart: function(a) {
a.autoplaying && (a.bullets.eq(a.realindex - 1).addclass("replace"), a.bullets.eq(a.realindex - 1).removeclass("current firsrcurrent"), a.bullets.eq(a.realindex).addclass("current"), 0 == a.realindex && a.bullets.removeclass("replace"))
},
onautoplaystop: function(a) {
a.$(".autoplay").removeclass("autoplay")
}
});
for (b = 0; b < a.slides.length; b++) a.slides[b].style.zindex = b;
settimeout(c, 1)
};