|
|
@ -2,15 +2,17 @@ |
|
|
|
//banner
|
|
|
|
//banner
|
|
|
|
$(function(){ |
|
|
|
$(function(){ |
|
|
|
let url = window.location.href; |
|
|
|
let url = window.location.href; |
|
|
|
|
|
|
|
|
|
|
|
if(url.split('?').length!=0&&url.split('?')[1]){ |
|
|
|
if(url.split('?').length!=0&&url.split('?')[1]){ |
|
|
|
$(`.section${url.split('?')[1].slice(3)}`).addClass('active') |
|
|
|
$(`.section${url.split('?')[1].slice(3)}`).addClass('active') |
|
|
|
$('header').css('display','none !important') |
|
|
|
// $('header').css('display','none !important')
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$('#header').load('../public/header1.html',function(){ |
|
|
|
$('#header').load('../public/header1.html',function(){ |
|
|
|
|
|
|
|
|
|
|
|
$('.header').addClass('on'); |
|
|
|
$('.header').addClass('on'); |
|
|
|
if(url.split('?').length!=0&&url.split('?')[1]){ |
|
|
|
if(url.split('?').length!=0&&url.split('?')[1]){ |
|
|
|
$('header').css('display','none') |
|
|
|
$('.header').css('display','none') |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
//移动端展开nav
|
|
|
|
//移动端展开nav
|
|
|
@ -37,7 +39,7 @@ |
|
|
|
continuousHorizontal:true, |
|
|
|
continuousHorizontal:true, |
|
|
|
scrollingSpeed:500, |
|
|
|
scrollingSpeed:500, |
|
|
|
showActiveTooltip :true,
|
|
|
|
showActiveTooltip :true,
|
|
|
|
anchors: ['hero', 'one', 'two', 'three','four','five'], |
|
|
|
// anchors: ['hero', 'one', 'two', 'three','four','five'],
|
|
|
|
loopHorizontal: true, |
|
|
|
loopHorizontal: true, |
|
|
|
afterLoad: function(anchorLink, index){ |
|
|
|
afterLoad: function(anchorLink, index){ |
|
|
|
console.log(index) |
|
|
|
console.log(index) |
|
|
|