removing unecessary console.log
This commit is contained in:
parent
7cb95c47de
commit
a0ccc1f2b6
|
|
@ -1,5 +1,4 @@
|
||||||
window.addEventListener('DOMContentLoaded', (event) => {
|
window.addEventListener('DOMContentLoaded', (event) => {
|
||||||
console.log(ajaxSiteConfig);
|
|
||||||
const button = document.getElementById('load-more-brochures');
|
const button = document.getElementById('load-more-brochures');
|
||||||
button.addEventListener('click', ajaxSubmit);
|
button.addEventListener('click', ajaxSubmit);
|
||||||
let offset = 1;
|
let offset = 1;
|
||||||
|
|
@ -23,7 +22,6 @@ window.addEventListener('DOMContentLoaded', (event) => {
|
||||||
},
|
},
|
||||||
complete: function (response) {
|
complete: function (response) {
|
||||||
if (response.responseJSON.data) {
|
if (response.responseJSON.data) {
|
||||||
console.log(response.responseJSON);
|
|
||||||
offset += 1;
|
offset += 1;
|
||||||
const container = document.querySelector('.brochures-grid'); // Replace this with the actual container element
|
const container = document.querySelector('.brochures-grid'); // Replace this with the actual container element
|
||||||
container.innerHTML += response.responseJSON.data; // Append the new content
|
container.innerHTML += response.responseJSON.data; // Append the new content
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ export default function menuInit() {
|
||||||
const footerSubmenuCloseBtns = footer.querySelectorAll('.menu-item__submenu-close');
|
const footerSubmenuCloseBtns = footer.querySelectorAll('.menu-item__submenu-close');
|
||||||
|
|
||||||
function isSubmenuOpen() {
|
function isSubmenuOpen() {
|
||||||
// console.log(header.querySelector('.sub-menu--open') !== null);
|
|
||||||
return (
|
return (
|
||||||
header.querySelector('.sub-menu--open') !== null ||
|
header.querySelector('.sub-menu--open') !== null ||
|
||||||
footer.querySelector('.sub-menu--open') !== null
|
footer.querySelector('.sub-menu--open') !== null
|
||||||
|
|
@ -36,8 +35,6 @@ export default function menuInit() {
|
||||||
// Vérifiez si l'élément actuel est un menu-renovateur--footer
|
// Vérifiez si l'élément actuel est un menu-renovateur--footer
|
||||||
|
|
||||||
if (currentElement.classList.contains('menu-renovateur--footer')) {
|
if (currentElement.classList.contains('menu-renovateur--footer')) {
|
||||||
console.log(`FOUND IT !`);
|
|
||||||
|
|
||||||
return true; // Si trouvé, retournez true
|
return true; // Si trouvé, retournez true
|
||||||
}
|
}
|
||||||
// Arrêtez la boucle si l'élément actuel est null (pas plus de parents)
|
// Arrêtez la boucle si l'élément actuel est null (pas plus de parents)
|
||||||
|
|
@ -293,7 +290,6 @@ export default function menuInit() {
|
||||||
// Button Text Content
|
// Button Text Content
|
||||||
let textContent = mobileMenuToggle.querySelector('span.text-content');
|
let textContent = mobileMenuToggle.querySelector('span.text-content');
|
||||||
textContent.textContent = mobileMenuToggle.getAttribute('data-text-open');
|
textContent.textContent = mobileMenuToggle.getAttribute('data-text-open');
|
||||||
// console.log(test.textContent);
|
|
||||||
|
|
||||||
// CLOSING #RENOVATEUR
|
// CLOSING #RENOVATEUR
|
||||||
renovateurNavListContainer.removeAttribute('opened');
|
renovateurNavListContainer.removeAttribute('opened');
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ export default function NotificationsInit() {
|
||||||
notifications.forEach((notification) => {
|
notifications.forEach((notification) => {
|
||||||
const notificationClose = notification.querySelector('.notification__close');
|
const notificationClose = notification.querySelector('.notification__close');
|
||||||
const notificationId = notification.getAttribute('data-notification-id');
|
const notificationId = notification.getAttribute('data-notification-id');
|
||||||
console.log(notificationId);
|
|
||||||
|
|
||||||
notificationClose.addEventListener('click', () => {
|
notificationClose.addEventListener('click', () => {
|
||||||
notification.classList.add('notification--dismissed');
|
notification.classList.add('notification--dismissed');
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ function initBullet(focusPoint) {
|
||||||
focusPointPopupContainer.style.top = `${focusPointPosition.y}%`;
|
focusPointPopupContainer.style.top = `${focusPointPosition.y}%`;
|
||||||
focusPointPopupContainer.appendChild(focusPointPopupTitle);
|
focusPointPopupContainer.appendChild(focusPointPopupTitle);
|
||||||
|
|
||||||
// console.log(focusPointPosition);
|
|
||||||
|
|
||||||
// focusPointPopupContainer.style.left = `${focusPoint.getAttribute}px`;
|
// focusPointPopupContainer.style.left = `${focusPoint.getAttribute}px`;
|
||||||
// focusPoint.appendChild(focusPointPopupContainer);
|
// focusPoint.appendChild(focusPointPopupContainer);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user