taille point interrogation faq
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user