// javascript document
$('.index_banner .photo').slick({
dots: true,
arrows: false,
infinite: true,
fade: true,
speed: 300,
slidestoshow: 1,
slidestoscroll: 1,
//adaptiveheight: true,
autoplay: true,
autoplayspeed: 3000,
responsive: [
{
breakpoint: 960,
settings: {
dots: true,
arrows: false,
}
}
]
});
$(".index_banner .slick-dots li").each(function(){
var i=($(this).index()+1)
if(i<10){
$(this).find("button").text("0"+i+"")
}else{
$(this).find("button").text(""+i+"")
}
});
$(".fancybox").fancybox({});
//打开视频播放器
$(".a_play").click(function() {
//清除其他视频
$(".about_main .video_files").remove();
//
var video_rel = $(this).attr("rel");
$(this).parent().prepend('
');
var audio = document.getelementbyid('video');
audio.play();
//关闭视频播放器
$(".about_main .close").click(function() {
$(this).parent(".video_files").remove();
});
});
$(".tag a").bind("click", function () {
var index = $(this).index();
$(".tag a").removeclass("show");
$(this).addclass("show");
$(".pro_list .list_item").addclass("hide");
$(".pro_list .list_item").eq(index).removeclass("hide");
});
$(".tag a").eq(0).click();
$('.pro_list .list_item').slick({
dots: false,
arrows: true,
infinite: false,
speed: 300,
slidestoshow: 5,
slidestoscroll: 1,
responsive: [
{
breakpoint: 1024,
settings: {
slidestoshow: 3,
}
},
{
breakpoint: 640,
settings: {
slidestoshow: 2,
}
}
]
});
//
var myfullpage = new fullpage('#fullpage', {
navigation: true,
navigationposition: 'right',
responsivewidth: 1024,
offsetsections: true,
anchors: ['section1', 'section2', 'section3', 'section4', 'section5', 'section6'],
afterload: function(anchorlink, index){
$('.network_main .count').countup();
},
onleave: function(index, direction){
}
});