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.whatsapp_message = "Bonjour, je suis à votre disposition"; bubbleSettings.show_whatsapp = true; 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*/ `