これを変える:
// Add scrollTo on click on the navigation anchors
$("nav").find("a").each(function() {
var target = $(this).attr("href").replace("#", "");
$(this).click(function(e) {
e.preventDefault();
// Include the jQuery easing plugin (http://gsgd.co.uk/sandbox/jquery/easing/)
// for extra easing functions like the one below
$.fn.scrollPath("scrollTo", target, 1000, "easeInOutSine");
});
});
に:
// Add scrollTo on click on the navigation anchors
$("nav#panelnav").find("a").each(function() {
var target = $(this).attr("href").replace("#", "");
$(this).click(function(e) {
e.preventDefault();
// Include the jQuery easing plugin (http://gsgd.co.uk/sandbox/jquery/easing/)
// for extra easing functions like the one below
$.fn.scrollPath("scrollTo", target, 1000, "easeInOutSine");
});
});
メインナビゲーションに影響を与えないように
demo.js で