diff --git a/app/assets/js/custom.js b/app/assets/js/custom.js index 64dae57..3f7063e 100644 --- a/app/assets/js/custom.js +++ b/app/assets/js/custom.js @@ -337,6 +337,7 @@ function checkIfAllInfoAvailable(response) { // === SMOOTH SCROLL ~(^^)~ +// Fait scroll jusqu'au formulaire de comparaison $(document).ready(function () { // Sélectionnez le lien par son ID $('#letzgooo').click(function (e) { @@ -348,6 +349,18 @@ $(document).ready(function () { }); }); +// Fait scroll une fois le formulaire envoyé +$(document).ready(function () { + // Sélectionnez le lien par son ID + $('#lance-comparaison').click(function (e) { + + $('html, body').animate({ + scrollTop: $('#resultat').offset().top + }, 1000); // 1000 millisecondes (1 seconde) pour l'animation + }); +}); + + // === BANNIERE LES COOKIES === var config = { diff --git a/app/views/contains/index.hbs b/app/views/contains/index.hbs index ad83d87..48a6601 100644 --- a/app/views/contains/index.hbs +++ b/app/views/contains/index.hbs @@ -86,7 +86,7 @@
- © 2023 | Dario W. - / Raphael + © 2023 | Dario W. + / Raphael P.