Commit 60976770 by Manzar Hussain

add js

parent b11e2ba6
...@@ -186,4 +186,15 @@ ...@@ -186,4 +186,15 @@
$grid.masonry('layout'); $grid.masonry('layout');
}); });
$('.h_nav_main li:last-child .header-nav-item-child-list a').on('click', function(event) {
//event.preventDefault();
var target = $(this).attr('href');
var idData = target.substr(target.indexOf("#"));
if(idData.length) {
$('html, body').animate({
scrollTop: $(idData).offset().top
}, 500);
}
});
})(jQuery); })(jQuery);
\ No newline at end of file
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