Ide kell írni, hogy rendelhetnek, amit valószínűleg senki nem fog elolvasni, de legalább kontent, meg mankó annak, akinek kell
Explore the BESTRONG site that suits your preferences!
// Function to set a cookie with the specified name, value, and expiration time function setCookie(name, value, days) { var expires = new Date(); expires.setTime(expires.getTime() + (days * 24 * 60 * 60 * 1000)); document.cookie = name + "=" + value + ";expires=" + expires.toUTCString() + ";path=/"; }
// Function to check if the closing cookie exists function checkClosingCookie() { var cookies = document.cookie.split(";");
for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i].trim(); if (cookie.indexOf("spu_closing_18961") === 0) { return true; // Closing cookie exists } }return false; // Closing cookie does not exist }// Function to handle the popup display function displayPopup() { // Check if the closing cookie exists if (!checkClosingCookie()) { // Show your popup code here // Replace the following line with your actual popup display code console.log("Popup should be displayed now!");// Set the closing cookie for 365 days setCookie("spu_closing_18961", "true", 365); } }// Call the displayPopup function on page load window.onload = function() { displayPopup(); };