main
liudan 2 years ago
parent 146a5d3cf4
commit 0cf6d18ae8
  1. 1
      css/service12.css
  2. 8
      js/service12.js
  3. 6
      service/service12.html

@ -152,6 +152,7 @@ a:active{
font-weight: 400;
color: #FFFFFF;
margin-top:15px;
margin-bottom:0;
}
.list{
margin-bottom:20px;

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

@ -331,9 +331,9 @@
<script>
$(function(){
$("#header").load("../public/header1.html","",function(){
$('.header').addClass('on');
});
// $("#header").load("../public/header1.html","",function(){
// $('.header').addClass('on');
// });
$("#footer").load("../public/footer.html");
});

Loading…
Cancel
Save