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

9 lines
242 B
JavaScript
Raw Normal View History

2017-03-30 17:00:35 +02:00
$(document).on('turbolinks:load', buttons_anchor);
2016-12-05 11:45:30 +01:00
function buttons_anchor(){
2017-04-04 16:15:33 +02:00
$("#cgu_menu_block").on('click', 'a', function(){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top-80}, 500);
});
2017-03-30 17:00:35 +02:00
}