");
$(".arc-con img").parentsUntil('.arc-con').css("text-indent", '0');
function fontResize(el){
var $el = $(el);
var large = $el.find('.large');
var small = $el.find('.small');
var middle = $el.find('.middle');
var fontSizes = 18;
large.click(function(){
if (fontSizes < 24) {
fontSizes += 1;
$(".arc-con *").css({'font-size':fontSizes +'px'})
}
})
small.click(function(){
if (fontSizes > 16) {
fontSizes -= 1;
$(".arc-con *").css({'font-size':fontSizes +'px'})
}
})
middle.click(function(){
fontSizes = 18;
$(".arc-con *").css({'font-size':fontSizes +'px'})
})
}
// 閫氱敤
function swiTab(el,type,autoHeight){
var $el = $(el);
var slide = 'swiTab'+el;
var navs = $el.find('.swiNav ul li');
var mores = $el.find('.mores .more');
var swi = $el.find('.swiTabs');
var slide = new Swiper(swi, {
speed: 800,
spaceBetween:15,
autoHeight:autoHeight,
noSwiping: true,
noSwipingClass: 'noSwi',
//loop: true,
lazy: {loadPrevNext: true},
effect : 'fade',fadeEffect: {crossFade: true},
on: {
init:function(){
navs.eq(0).addClass('on').siblings().removeClass('on');
},
transitionStart: function () {
navs.eq(this.realIndex).addClass('on').siblings().removeClass('on');
mores.eq(this.realIndex).show().siblings().hide();
}
}
});
navs.on(type, function (e) {
e.preventDefault();
var index = $(this).index();
slide.slideTo(index)
});
}
function swiSlide(el){
var $el = $(el);
var $swiDots = $el.find('.swiDots');
var $prev = $el.find('.prev');
var $next = $el.find('.next');
new Swiper($el, {
speed: 800,
//loop: true,
slidesPerView: 'auto',
watchOverflow:true,
//autoplay: { delay:5000, stopOnLastSlide: false, disableOnInteraction: false, },
pagination: { el:$swiDots, clickable: !0, bulletActiveClass: 'active' },
navigation: { nextEl:$next, prevEl:$prev },
});
}
function swiSlideAuto(el,speed,loop){
var $el = $(el);
var $swiDots = $el.find('.swiDots');
var $prev = $el.find('.prev');
var $next = $el.find('.next');
new Swiper($el, {
speed: 800,
loop:loop?loop:false,
slidesPerView: 'auto',
watchOverflow:true,
autoplay: { delay:speed, stopOnLastSlide: false, disableOnInteraction: false, },
pagination: { el:$swiDots, clickable: !0, bulletActiveClass: 'active' },
navigation: { nextEl:$next, prevEl:$prev },
});
}
function swiSlidef(el){
var $el = $(el);
var $swiDots = $el.parent().find('.swiDots');
var $prev = $el.parent().find('.prev');
var $next = $el.parent().find('.next');
new Swiper($el, {
speed: 800,
loop:true,
spaceBetween: 5,
autoplay: { delay:8000, stopOnLastSlide: false, disableOnInteraction: false, },
breakpoints: {
1025: { noSwiping: true,noSwipingClass: 'noSwi',}
},
pagination: { el:$swiDots, clickable: !0, bulletActiveClass: 'active' },
navigation: { nextEl:$next, prevEl:$prev },
});
}
$(".swiList").each(function(){
$(this).wrapAll('
');
$(this).addClass('swiper-wrapper');
$(this).after('
');
$(this).after('
');
$(this).find('li').addClass('swiper-slide');
var slide = $(this).parent();
swiSlideAuto(slide,6000,true);
})
function suTabs(el,type){
var $el = $(el);
var Navs = $el.find('.moress .more');
var Lis = $el.find('.hds ul li');
$el.slide({ trigger: type ,titCell:'.hds li',mainCell:'.bds'});
Lis.on(type, function (e) {
var index = $(this).index();
Navs.eq(index).show().siblings().hide();
});
}
function suTab(el,type){
var $el = $(el);
var Navs = $el.find('.mores .more');
var Lis = $el.find('.hd ul li');
$el.slide({ trigger: type });
Lis.on(type, function (e) {
var index = $(this).index();
Navs.eq(index).show().siblings().hide();
});
}
function GetQueryValue(queryName) {
var query = decodeURI(window.location.search.substring(1));
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == queryName) { return pair[1]; }
}
return null;
}
function eclipText(el) {
$(el).each(function(){
var str = $(this).text();
if (str) {
var strs = String(str).split('');
$(this).html('');
for (var i = 0; i < strs.length; i++) {
$(this).append('
' + strs[i] + '')
}
}
})
}
function addEl(el,num){
$el = $(el);
var spans = '';
for (i = 1; i <= num; i++) {
spans += '
';
}
$el.html(spans);
}
var configPc = window.matchMedia('(min-width:993px)');
var configWap = window.matchMedia('(max-width:992px)');
if (configPc.matches) {
window.onscroll = function(e){
scrollFunc();
if(scrollDirection == 'down'){
$('body').addClass('scrollDown');
}
else if(scrollDirection == 'up'){
$('body').removeClass('scrollDown');
}
}
}
if (configWap.matches) {
}