/* Add custom Js code below */ // Create a new meta element var metaElement = document.createElement('meta'); // Set the attributes for the meta element metaElement.setAttribute('name', 'google-site-verification'); metaElement.setAttribute('content', '0Gtvx1TVKtBgvkTsgsp7noxa5Bo__XgwNdqwe7025qE'); // Append the meta element to the section of the document document.head.appendChild(metaElement); /* Popup */ window.onload = function() { // Create overlay element var overlay = document.createElement('div'); overlay.id = 'overlay'; // Create popup div var popup = document.createElement('div'); popup.className = 'popup'; // Create close button var closeButton = document.createElement('span'); closeButton.className = 'close'; closeButton.textContent = 'x'; closeButton.onclick = function() { document.body.removeChild(overlay); }; // Create heading var heading = document.createElement('h2'); heading.textContent = 'ابدأ الحديث معنا'; // Create description var description = document.createElement('p'); description.textContent = 'يسعدنا التواصل معك من خلال واتساب !'; // Create button var whatsappButton = document.createElement('button'); whatsappButton.textContent = 'تواصل معنا'; whatsappButton.onclick = function() { var phoneNumber = '966594057090'; // Replace with your WhatsApp number var message = 'Hello! I want to chat with you.'; // Customize your message var url = 'https://wa.me/' + phoneNumber + '?text=' + encodeURIComponent(message); window.open(url, '_blank'); document.body.removeChild(overlay); }; // Append elements to popup popup.appendChild(closeButton); popup.appendChild(heading); popup.appendChild(description); popup.appendChild(whatsappButton); // Append popup to overlay overlay.appendChild(popup); // Append overlay to document body document.body.appendChild(overlay); };