苏州创新投资
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suzhou/js/service12.js

68 lines
2.1 KiB

2 years ago
//banner
$(function(){
2 years ago
let url = window.location.href;
if(url.split('?').length!=0&&url.split('?')[1]){
2 years ago
$(`.section${url.split('?')[1].slice(3)}`).addClass('active');
console.log(url.split('?')[1].slice(3))
2 years ago
// $('header').css('display','none !important')
2 years ago
$("#header").css('display','none')
2 years ago
}
$('#header').load('../public/header1.html',function(){
2 years ago
2 years ago
$('.header').addClass('on');
if(url.split('?').length!=0&&url.split('?')[1]){
2 years ago
$('.header').css('display','none')
2 years ago
}
})
2 years ago
//移动端展开nav
$('#navToggle').on('click',function(){
$('.m_nav').addClass('open');
})
//关闭nav
$('.m_nav .top .closed').on('click',function(){
$('.m_nav').removeClass('open');
})
//二级导航 移动端
$(".m_nav .ul li").click(function() {
$(this).children("div.dropdown_menu").slideToggle('slow')
$(this).siblings('li').children('.dropdown_menu').slideUp('slow');
});
//全屏滚动
$('#about_main').fullpage({
'navigation': true,
2 years ago
scrollBar: false,
2 years ago
slidesNavigation: true,
css3: true,
controlArrows: false,
continuousHorizontal:true,
scrollingSpeed:500,
showActiveTooltip :true,
2 years ago
// anchors: ['hero', 'one', 'two', 'three','four','five'],
2 years ago
loopHorizontal: true,
afterLoad: function(anchorLink, index){
2 years ago
2 years ago
if(index==1){
2 years ago
$("#header").css('display','block');
2 years ago
$('header').css('display','flex');
2 years ago
$('header').addClass('on').addClass("animation");
2 years ago
}else{
2 years ago
// $("#header").css('display','none');
2 years ago
$('header').css('display','none')
}
2 years ago
},
afterSlideLoad:function(){
},
afterRender: function(){
},
onLeave: function(index, direction){
$(".header").removeClass("animation");
}
})
2 years ago
$('.zhuanbeiItem').on('mouseenter',function(){
$(this).children('.imgcontent').children('img').addClass('activeimg')
$(this).siblings().children('.imgcontent').children('img').removeClass('activeimg')
})
2 years ago
})