top of page
CODE
import {session} from 'wix-storage';
import wixWindow from 'wix-window';
$w.onReady(function () {
// $w('#button1').onClick(()=>{
console.log(session.getItem("PopupState"))
if(session.getItem("PopupState")===null) {
$w('#BOX1').show()
session.setItem("PopupState", "yes");
}
else {
$w('#BOX1').hide()
$w('#TXTouput').text="The pop-up have been already shown !!!"
}
// })
});
bottom of page