$(document).ready(function () { $.goup({ trigger: 100, bottomOffset: 150, locationOffset: 100, title: ' ', titleAsText: true }); }); // JavaScript Document $(document).ready(function () { // 鍩哄湴鐓х墖杞挱鍥� var certifySwiper = new Swiper('#photos .swiper-container', { // watchSlidesProgress: true, slidesPerView: 'auto', loop: true, loopedSlides: 0, // autoplay: true, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }) //甯歌闂 $("#tabsNav li").hover(function () { var index = $(this).index(); $(this).addClass('on').siblings().removeClass('on'); $(".tabs-content .Q-list").eq(index).show().siblings().hide(); }) // 璇剧▼妯″潡 $("#advanced dd").hover(function () { var index = $(this).index(); $(this).addClass('on').siblings('dd').removeClass('on'); $("#adTabcont .modul-detail").eq(index).show().siblings().hide(); }) // 杩斿洖椤堕儴 $(window).scroll(function () { var i = $(this).scrollTop(); if (i > 90) { $('#toTop').fadeIn(300); } else { $('#toTop').fadeOut(200); } }); $('#toTop').click(function () { $('body,html').animate({ scrollTop: 0 }, 800); }) // 椤堕儴瀵艰埅涓庡唴瀹瑰畾浣� $('#par01').click(function () { $("html,body").animate({ scrollTop: $("#cont01").offset().top - 60 }, 800); }); $('#par02').click(function () { $("html,body").animate({ scrollTop: $("#cont02").offset().top - 60 }, 800); }); $('#par03').click(function () { $("html,body").animate({ scrollTop: $("#cont03").offset().top - 60 }, 800); }); $('#par04').click(function () { $("html,body").animate({ scrollTop: $("#cont04").offset().top - 60 }, 800); }); $('#par05').click(function () { $("html,body").animate({ scrollTop: $("#cont05").offset().top - 60 }, 800); }); $('#par06').click(function () { $("html,body").animate({ scrollTop: $("#cont06").offset().top - 60 }, 800); }); $('#par07').click(function () { $("html,body").animate({ scrollTop: $("#cont07").offset().top - 60 }, 800); }); $('#par08').click(function () { $("html,body").animate({ scrollTop: $("#cont08").offset().top - 60 }, 800); }); $('#par09').click(function () { $("html,body").animate({ scrollTop: $("#cont09").offset().top - 60 }, 800); }); });