removing unecessary console.log

This commit is contained in:
Antoine M 2024-09-25 12:23:29 +02:00
parent 7cb95c47de
commit a0ccc1f2b6
4 changed files with 0 additions and 8 deletions

View File

@ -1,5 +1,4 @@
window.addEventListener('DOMContentLoaded', (event) => {
console.log(ajaxSiteConfig);
const button = document.getElementById('load-more-brochures');
button.addEventListener('click', ajaxSubmit);
let offset = 1;
@ -23,7 +22,6 @@ window.addEventListener('DOMContentLoaded', (event) => {
},
complete: function (response) {
if (response.responseJSON.data) {
console.log(response.responseJSON);
offset += 1;
const container = document.querySelector('.brochures-grid'); // Replace this with the actual container element
container.innerHTML += response.responseJSON.data; // Append the new content

View File

@ -21,7 +21,6 @@ export default function menuInit() {
const footerSubmenuCloseBtns = footer.querySelectorAll('.menu-item__submenu-close');
function isSubmenuOpen() {
// console.log(header.querySelector('.sub-menu--open') !== null);
return (
header.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
if (currentElement.classList.contains('menu-renovateur--footer')) {
console.log(`FOUND IT !`);
return true; // Si trouvé, retournez true
}
// 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
let textContent = mobileMenuToggle.querySelector('span.text-content');
textContent.textContent = mobileMenuToggle.getAttribute('data-text-open');
// console.log(test.textContent);
// CLOSING #RENOVATEUR
renovateurNavListContainer.removeAttribute('opened');

View File

@ -7,7 +7,6 @@ export default function NotificationsInit() {
notifications.forEach((notification) => {
const notificationClose = notification.querySelector('.notification__close');
const notificationId = notification.getAttribute('data-notification-id');
console.log(notificationId);
notificationClose.addEventListener('click', () => {
notification.classList.add('notification--dismissed');

View File

@ -16,7 +16,6 @@ function initBullet(focusPoint) {
focusPointPopupContainer.style.top = `${focusPointPosition.y}%`;
focusPointPopupContainer.appendChild(focusPointPopupTitle);
// console.log(focusPointPosition);
// focusPointPopupContainer.style.left = `${focusPoint.getAttribute}px`;
// focusPoint.appendChild(focusPointPopupContainer);