$(function(){$('.banner ul').slick({dots:true,arrows:false,autoplay:true,slidesToShow:1,autoplaySpeed:3000,pauseOnHover:true,lazyLoad:'ondemand',});$('.newspic ul').slick({dots:true,arrows:false,autoplay:true,slidesToShow:1,autoplaySpeed:3000,pauseOnHover:true,lazyLoad:'ondemand',});$('.dtpic ul').slick({dots:true,arrows:false,autoplay:true,slidesToShow:1,autoplaySpeed:3000,pauseOnHover:true,lazyLoad:'ondemand',});$('.talent ul').slick({centerMode:true,centerPadding:'0',autoplay:true,slidesToShow:3,dots:true,arrows:true,responsive:[{breakpoint:768,settings:{slidesToShow:3}},{breakpoint:640,settings:{slidesToShow:1}}]});$('.talent ul').on('afterChange',function(event,slick,currentSlide){if(currentSlide>=9){$('.current').html(currentSlide+1);}else{$('.current').html("0"+(currentSlide+1));}});var num=$('.elitebox .slick-dot').length;if(num>9){$('.total').html(num);}else{$('.total').html("0"+num);} $('.teacher ul').slick({dots:false,arrows:true,autoplay:true,rows:1,slidesToShow:2,slidesToScroll:2,infinite:true,autoplaySpeed:3000,lazyLoad:'ondemand',pauseOnHover:false,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:640,settings:{slidesToShow:2,slidesToScroll:2,}},{breakpoint:576,settings:{slidesToShow:1,slidesToScroll:1,}}]});$('.away ul').slick({dots:false,arrows:true,autoplay:true,rows:1,slidesToShow:10,slidesToScroll:1,infinite:true,autoplaySpeed:3000,lazyLoad:'ondemand',pauseOnHover:false,responsive:[{breakpoint:1200,settings:{slidesToShow:8,slidesToScroll:1,}},{breakpoint:1024,settings:{slidesToShow:6,slidesToScroll:1,}},{breakpoint:576,settings:{slidesToShow:4,slidesToScroll:1,}}]});});