document.addEventListener("DOMContentLoaded", () => { let bubbleSettings = document.bubbleSettings; /* bubbleSettings.bubble_color; OK bubbleSettings.cross_color; OK bubbleSettings.phone_number; bubbleSettings.shop_name; OK bubbleSettings.shop_pic; OK bubbleSettings.show_mobile_only; bubbleSettings.show_whatsapp; bubbleSettings.text_color; OK bubbleSettings.text_color_background; OK bubbleSettings.tooltip_position; bubbleSettings.whatsapp_delay; bubbleSettings.whatsapp_message; bubbleSettings.whatsapp_message_inside; bubbleSettings.pre_message_input; bubbleSettings.status; bubbleSettings.total_delay; bubbleSettings.buttons_color; bubbleSettings.header_color; */ bubbleSettings.button_three = "J'ai une question"; bubbleSettings.shop_name = "Mademoiselle Cavaliere"; bubbleSettings.shop_pic = "https://mademoisellecavaliere.com/cdn/shop/files/Mademoiselle_Cavaliere_21-retoucher-parfum_11.jpg"; bubbleSettings.whatsapp_delay = "8000"; bubbleSettings.whatsapp_message_inside = "Bonjour, comment puis-je vous aider ?"; bubbleSettings.whatsapp_message = "Vous cherchez un produit ?"; bubbleSettings.button_one = "Je veux un code promo -10%"; bubbleSettings.button_two = "Je veux voir les pantalons"; let style = ` `; if (bubbleSettings.show_mobile_only) { style += ` @media (min-width: 768px) { #prrrr { display: none; } `; } else { } let positionStyle = ""; if (bubbleSettings.tooltip_position === "full-coco-left") { positionStyle = "left: 15px; right: auto;"; // Place la bulle à gauche } else { positionStyle = "right: 15px; left: auto;"; // Garde la bulle à droite (position par défaut) } document.getElementById("coco-body").innerHTML = /*html*/ `