demarches-normaliennes/app/assets/javascripts/cgu.js

9 lines
282 B
JavaScript
Raw Normal View History

2016-12-05 11:45:30 +01:00
$(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);
});
}