demarches-normaliennes/app/assets/javascripts/cgu.js
2016-12-05 11:45:30 +01:00

9 lines
No EOL
282 B
JavaScript

$(document).on('page:load', buttons_anchor);
$(document).ready(buttons_anchor);
function buttons_anchor(){
$("#cgu_menu_block").on('click', 'a', function(){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top-80}, 500);
});
}