top of page
import wixStorage from 'wix-storage-frontend'; $w.onReady(function () { const hasVisited = wixStorage.getItem('hasVisited'); if (!hasVisited) { // Show the Lightbox $w('#lightbox').show(); // Replace '#lightbox' with your actual lightbox ID // Set the flag for future visits wixStorage.setItem('hasVisited', true); } // Close the lightbox when the button is clicked $w('#close-lightbox').onClick(() => $w('#lightbox').hide()); // Replace '#close-lightbox' with your actual close button ID });