Hello! Dear community, I ask again for your help, in the continuation of this topic I made such a crutch , it is strange that the modal window with the content does not appear, it may have got out of the scope of the frame, everything works locally. The question is how to make my window no longer appear if the user has a cookie. I can not figure out how to add if () {}
Here so, does not work:
<script type="text/javascript"> $(document).ready(function() { var getCookieValue = $.cookie("visit"); if (getCookieValue == true) { $("a.gallery2").fancybox( { "padding" : 20, "imageScale" : false, "zoomOpacity" : false, "zoomSpeedIn" : 1000, "zoomSpeedOut" : 1000, "zoomSpeedChange" : 1000, "frameWidth" : 700, "frameHeight" : 600, "overlayShow" : true, "overlayOpacity" : 0.8, "hideOnContentClick" :false, "centerOnScroll" : false }).click(); } }); </script>