|
|
@@ -87,28 +87,29 @@ $(document).ready(function(){
|
|
|
/* Menu item highlighting
|
|
|
/* ========================================================================= */
|
|
|
|
|
|
- // jQuery('#nav').singlePageNav({
|
|
|
- // offset: jQuery('#nav').outerHeight(),
|
|
|
+ // $('#nav').singlePageNav({
|
|
|
+ // offset: $('#nav').outerHeight(),
|
|
|
// filter: ':not(.external)',
|
|
|
- // speed: 2000,
|
|
|
+ // speed: 2000,//动画时间
|
|
|
// currentClass: 'current',
|
|
|
// easing: 'easeInOutExpo',
|
|
|
// updateHash: true,
|
|
|
// beforeStart: function() {
|
|
|
- // console.log('begin scrolling');
|
|
|
+ // console.log('开始滚动');
|
|
|
// },
|
|
|
// onComplete: function() {
|
|
|
- // console.log('done scrolling');
|
|
|
+ // console.log('滚动结束');
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
$(window).scroll(function () {
|
|
|
if ($(window).scrollTop() > 10) {
|
|
|
$(".navbar-brand a").css("color","#fff");
|
|
|
- $("#navigation").removeClass("animated-header");
|
|
|
+ $("#navigation").addClass("animated-header");
|
|
|
+
|
|
|
} else {
|
|
|
$(".navbar-brand a").css("color","inherit");
|
|
|
- $("#navigation").addClass("animated-header");
|
|
|
+ $("#navigation").removeClass("animated-header");
|
|
|
}
|
|
|
});
|
|
|
|