taille point interrogation faq

This commit is contained in:
2021-12-13 15:29:07 +01:00
parent 53497652db
commit f184a80732
13 changed files with 322 additions and 226 deletions
+29 -12
View File
@@ -40,22 +40,39 @@ function toggleFaq(event) {
}
// function toggleFaq(event) {
// console.log(event);
// for (let i = 0; i < answers.length; i++) {
// const answer = answers[i]
// answer.classList.toggle('opened');}
// }
// /////////////////
//// ancre dans texte
document.querySelector('.paragraph--view-mode--textes-toc').click( function() {
var page = this.attr('href');
var speed = 750; // gérer la vitesse de défliement
// Ici on retranche la hauteur du bandeau (201px dans ta feuille de styles)
document.querySelector('html, body').animate( { scrollTop: page.offset().top - 201 }, speed );
return false;
});
// document.addEventListener('click', function(e) {
// if (e.target.classList.contains('rect_white_left') {
// e.target.parentNode.nextElementSibling...
/// sticky header on scroll
// // When the user scrolls the page, execute myFunction
// window.onscroll = function() {stickyHeader()};
// console.log(Event);
// // Get the header
// var header = document.getElementById("header-top");
// // Get the offset position of the navbar
// var sticky = header.offsetTop;
// // Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
// function stickyHeader() {
// if (window.pageYOffset > sticky) {
// header.classList.add("sticky");
// } else {
// header.classList.remove("sticky");
// }
// });
// }
///////////////////
// document.addEventListener('click', function(e) {