New landing page

This commit is contained in:
Xavier J 2016-02-08 19:07:33 +01:00
parent e2a896d0b0
commit 2b2a4c3f0a
4 changed files with 51 additions and 13 deletions

View file

@ -27,3 +27,12 @@
//= require smart_listing
//= require turf
//= require franceconnect
$(document).ready(function() {
$('.js-scrollTo').on('click', function() { // Au clic sur un élément
var page = $(this).attr('cible'); // Page cible
var speed = 600; // Durée de l'animation (en ms)
$('html, body').animate( { scrollTop: $(page).offset().top-100 }, speed ); // Go
return false;
});
});