mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-05-30 20:35:42 +02:00
add scroll function
This commit is contained in:
parent
294e996cd1
commit
e713aede46
@ -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 = {
|
||||
|
@ -86,7 +86,7 @@
|
||||
</div>
|
||||
|
||||
<div class="w-full px-4 flex items-center justify-center">
|
||||
<button type="submit"
|
||||
<button id="lance-comparaison" type="submit" onclick="scroll(0, 100);"
|
||||
class="text-base mb-16 font-medium text-white bg-primary py-4 px-9 hover:bg-opacity-80 hover:shadow-signUp rounded-md transition duration-300 ease-in-out">
|
||||
Comparer
|
||||
</button>
|
||||
|
@ -152,8 +152,8 @@
|
||||
<div class="py-8 bg-primary bg-opacity-10 relative bottom-0">
|
||||
<div class="container">
|
||||
<p class="text-body-color dark:text-slate-50 text-base text-center">
|
||||
© 2023 | <a href="mailto:contact@dariow.fr" target="_blank" class="dark:hover:text-white hover:text-primary">Dario W.</a>
|
||||
/ <a href="mailto:raphael.alexis.payet@gmail.com" target="_blank" class="dark:hover:text-white hover:text-primary">Raphael
|
||||
© 2023 | <a href="mailto:contact@dariow.fr" class="dark:hover:text-white hover:text-primary">Dario W.</a>
|
||||
/ <a href="mailto:raphael.alexis.payet@gmail.com" class="dark:hover:text-white hover:text-primary">Raphael
|
||||
P.</a>
|
||||
</p>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user