Commit 0624849e by Manzar Hussain

Merge branch 'feature-theme' into 'develop'

add js

See merge request manzarH/dic-global-dev!205
parents e3b18c2e 60976770
......@@ -186,4 +186,15 @@
$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);
\ 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