Commit d45dd4c4 authored by 吴春's avatar 吴春

Merge branch 'master' of http://gitlab.oytour.com/chun/theater

parents cc8d1da9 ece6388f
......@@ -64,9 +64,32 @@
align-items: center;
}
.swiper-slide img {
width: 100%
}
.swiper-slide img {
width: 100%
}
.BMapLib_SearchInfoWindow {
height: 240px;
bottom: -250px;
width: 300px!important;
}
#BMapLib_stationText0 {
width:40px;
}
.BMapLib_trans_text {
width:175px!important;
}
#BMapLib_tab_tohere0 {
width:95px!important;
}
.BMapLib_first {
width: 100px !important;
}
.BMapLib_current {
width:100px!important;
}
#BMapLib_tab_fromhere0 {
width:100px!important;
}
</style>
</head>
<body>
......@@ -644,25 +667,26 @@
$(".nav-abox a").click(function () {
$(this).addClass('Nav_selected').siblings().removeClass('Nav_selected');
});
var newsTop = $("#news").offset().top;
var programTop = $("#program").offset().top;
var gookTop = $("#gook").offset().top;
var videoTop = $("#video").offset().top;
var contactTop = $("#contact").offset().top;
$(window).scroll(function () {
var scrollTop = $(window).scrollTop();
if (scrollTop > 0 && scrollTop < newsTop) {
$('.Nav_about').addClass('Nav_selected').siblings().removeClass('Nav_selected');
} else if (scrollTop > newsTop && scrollTop < programTop) {
$('.Nav_news').addClass('Nav_selected').siblings().removeClass('Nav_selected');
} else if (scrollTop > programTop && scrollTop < gookTop) {
$('.Nav_program').addClass('Nav_selected').siblings().removeClass('Nav_selected');
} else if (scrollTop > gookTop && scrollTop < videoTop) {
$('.Nav_gook').addClass('Nav_selected').siblings().removeClass('Nav_selected');
} else if (scrollTop > videoTop && scrollTop < contactTop) {
$('.Nav_video').addClass('Nav_selected').siblings().removeClass('Nav_selected');
}
});
//var newsTop = $("#news").offset().top;
//var programTop = $("#program").offset().top;
//var gookTop = $("#gook").offset().top;
//var videoTop = $("#video").offset().top;
//var contactTop = $("#contact").offset().top;
//$(window).scroll(function () {
// var scrollTop = $(window).scrollTop();
// if (scrollTop > 0 && scrollTop < newsTop) {
// $('.Nav_about').addClass('Nav_selected').siblings().removeClass('Nav_selected');
// } else if (scrollTop > newsTop+50 && scrollTop < programTop) {
// $('.Nav_news').addClass('Nav_selected').siblings().removeClass('Nav_selected');
// } else if (scrollTop > programTop+50 && scrollTop < gookTop) {
// $('.Nav_program').addClass('Nav_selected').siblings().removeClass('Nav_selected');
// } else if (scrollTop > Nav_program && scrollTop < contactTop) {
// $('.Nav_gook').addClass('Nav_selected').siblings().removeClass('Nav_selected');
// } else if (scrollTop > videoTop && scrollTop < contactTop) {
// $('.Nav_video').addClass('Nav_selected').siblings().removeClass('Nav_selected');
// }
//});
});
$('#but').click(function () {
$(".videoImgFlow").css({ display: 'block' });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment