JSFiddle - React, Tailwind, and code Playground

by hslincoln

HTML

<!-- Function written to be included in the wizr.wz_orbt-screen.html template for use with Pier's work -->

JavaScript

jQuery(document).ready(function () {

    function closeRegister1() { // function to be attached to close icon of first pop
        jQuery(".ow-overlay, .modal").hide("slow"); // Hide first pop
        jQuery.cookie('register1closed', 'yes', { // set cookie to say it's closed
            path: '/',
            domain: 'jmldirect.com'
        });
    }


    if (window.location.href.indexOf("tvchoice") > -1) {
        if (jQuery("#tvchoicediv1").css("display") == "none") { // check that it's not already displayed
            if (jQuery.cookie('register1closed') === null) { // check it hasn't been closed already cookie doesn't exist
                if (jQuery.cookie('register1') === null) { // check register1 isn't in memory already

                    jQuery('.ow-overlay, .modal').show(); // Show the first pop 
                    jQuery.cookie('register1', 'popped', { // set cookie to say it's popped
                        path: '/',
                        domain: 'jmldirect.com'
                    }); // End set cookie



                }
            }
        }
    }
}); // End ready