morinside.co.il Open in urlscan Pro
192.116.40.222  Public Scan

URL: https://morinside.co.il/wp-content/themes/mormar/js/modal.js
Submission Tags: falconsandbox
Submission: On October 07 via api from US — Scanned from IL

Form analysis 0 forms found in the DOM

Text Content

var modal = document.getElementById("myModal");
var span = document.getElementsByClassName("close")[0];

jQuery(document).ready(function () {
    var isCookieSet = Cookies.get('mormar_init_popup');
    //comment popyp show
    // if(isCookieSet != 1) {
    //     $('#myModal').css({'display': 'block'});
    //     $('body').addClass('modal-open');
    // }

    // When the user clicks on <span> (x), close the modal
    $(document).on('click', '.modal-close', function () {
        Cookies.set('mormar_init_popup', 1, { expires: 365 });
        $('#myModal').css({'display': 'none'});
        $('body').removeClass('modal-open');
    });

});