Thursday, April 16, 2026
64.9 F
Illinois
More

    Latest Posts

    Gov. Abbott’s ban on mask mandates in local public schools blocked by Travis County district judge

    `;

    // articleContent = document.querySelector(“.article-content”);
    // articleContent.innerHTML = articleContent.innerHTML + formbox;

    let firstParagraph = document.querySelector(“div.article-content > p:nth-child(1)”);

    if (firstParagraph !== null) {
    firstParagraph.insertAdjacentHTML(“afterend”, formbox);
    }

    function waitForElement(id, callback){
    var goStahp = setInterval(function(){
    if(document.getElementById(id)){
    clearInterval(goStahp);
    callback();
    }
    }, 100);
    }

    waitForElement(“JotFormIFrame-202185815209151”, function(){

    const expandButton = document.querySelector(‘h3.expand_box_click_to_open_covid_form’);

    expandButton.addEventListener(‘click’, function() {
    let box = document.querySelector(‘.corona_form_expand_box_covid_form’);
    let first = ‘opening’;
    let second = ‘open’;
    let buttonAction = ‘Hide story tip submission form’;

    let deviceAction = “Tap”;
    if (window.innerWidth > 666) {
    deviceAction = “Click”;
    }

    // console.log(window.innerWidth);

    if(box.classList.contains(first)) {
    [first, second] = [second, first];
    buttonAction = `${deviceAction} to submit a coronavirus story tip`;
    }

    expandButton.innerHTML = buttonAction;

    box.classList.toggle(first);
    setTimeout(() => {
    box.classList.toggle(second);
    }, 0);

    });

    var ifr = document.getElementById(“JotFormIFrame-202185815209151”);

    if(window.location.href && window.location.href.indexOf(“?”) > -1) {
    var get = window.location.href.substr(window.location.href.indexOf(“?”) + 1);
    if(ifr && get.length > 0) {
    var src = ifr.src;
    src = src.indexOf(“?”) > -1 ? src + “&” + get : src + “?” + get;
    ifr.src = src;
    }
    }

    window.handleIFrameMessage = function(e) {
    if (typeof e.data === ‘object’) { return; }

    var args = e.data.split(“:”);

    if (args.length > 2) {
    iframe = document.getElementById(“JotFormIFrame-” + args[(args.length – 1)]);
    } else {
    iframe = document.getElementById(“JotFormIFrame”);
    }

    if (!iframe) { return; }

    switch (args[0]) {
    case “scrollIntoView”:
    iframe.scrollIntoView();
    break;
    case “setHeight”:
    console.log(`case: setHeight`);
    iframe.style.height = parseInt(args[1]) + 15 + “px”;
    break;
    case “collapseErrorPage”:
    console.log(`case: collapseErrorPage`);
    if (iframe.clientHeight > window.innerHeight) {
    iframe.style.height = window.innerHeight + “px”;
    }
    break;
    case “reloadPage”:
    window.location.reload();
    break;
    case “loadScript”:
    var src = args[1];
    if (args.length > 3) {
    src = args[1] + ‘:’ + args[2];
    }
    var script = document.createElement(‘script’);
    script.src = src;
    script.type = ‘text/javascript’;
    document.body.appendChild(script);
    break;
    case “exitFullscreen”:
    if (window.document.exitFullscreen) window.document.exitFullscreen();
    else if (window.document.mozCancelFullScreen) window.document.mozCancelFullScreen();
    else if (window.document.mozCancelFullscreen) window.document.mozCancelFullScreen();
    else if (window.document.webkitExitFullscreen) window.document.webkitExitFullscreen();
    else if (window.document.msExitFullscreen) window.document.msExitFullscreen();
    break;
    }

    var isJotForm = (e.origin.indexOf(“jotform”) > -1) ? true : false;

    if(isJotForm && “contentWindow” in iframe && “postMessage” in iframe.contentWindow) {
    var urls = {“docurl”:encodeURIComponent(document.URL),”referrer”:encodeURIComponent(document.referrer)};
    iframe.contentWindow.postMessage(JSON.stringify({“type”:”urls”,”value”:urls}), “*”);
    }
    };

    if (window.addEventListener) {
    window.addEventListener(“message”, handleIFrameMessage, false);
    } else if (window.attachEvent) {
    window.attachEvent(“onmessage”, handleIFrameMessage);
    }
    });

    //

    Latest Posts

    Don't Miss

    [tdn_block_newsletter_subscribe title_text="Stay in touch" description="VG8gYmUgdXBkYXRlZCB3aXRoIGFsbCB0aGUgbGF0ZXN0IG5ld3MsIG9mZmVycyBhbmQgc3BlY2lhbCBhbm5vdW5jZW1lbnRzLg==" input_placeholder="Email address" tds_newsletter2-image="5" tds_newsletter2-image_bg_color="#c3ecff" tds_newsletter3-input_bar_display="row" tds_newsletter4-image="6" tds_newsletter4-image_bg_color="#fffbcf" tds_newsletter4-btn_bg_color="#f3b700" tds_newsletter4-check_accent="#f3b700" tds_newsletter5-tdicon="tdc-font-fa tdc-font-fa-envelope-o" tds_newsletter5-btn_bg_color="#000000" tds_newsletter5-btn_bg_color_hover="#4db2ec" tds_newsletter5-check_accent="#000000" tds_newsletter6-input_bar_display="row" tds_newsletter6-btn_bg_color="#da1414" tds_newsletter6-check_accent="#da1414" tds_newsletter7-image="7" tds_newsletter7-btn_bg_color="#1c69ad" tds_newsletter7-check_accent="#1c69ad" tds_newsletter7-f_title_font_size="20" tds_newsletter7-f_title_font_line_height="28px" tds_newsletter8-input_bar_display="row" tds_newsletter8-btn_bg_color="#00649e" tds_newsletter8-btn_bg_color_hover="#21709e" tds_newsletter8-check_accent="#00649e" embedded_form_code="JTNDIS0tJTIwQmVnaW4lMjBNYWlsQ2hpbXAlMjBTaWdudXAlMjBGb3JtJTIwLS0lM0UlMEElMEElM0Nmb3JtJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZ0YWdkaXYudXMxNi5saXN0LW1hbmFnZS5jb20lMkZzdWJzY3JpYmUlMkZwb3N0JTNGdSUzRDZlYmQzMWU5NGNjYzVhZGRkYmZhZGFhNTUlMjZhbXAlM0JpZCUzRGVkODQwMzZmNGMlMjIlMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwaWQlM0QlMjJtYy1lbWJlZGRlZC1zdWJzY3JpYmUtZm9ybSUyMiUyMG5hbWUlM0QlMjJtYy1lbWJlZGRlZC1zdWJzY3JpYmUtZm9ybSUyMiUyMGNsYXNzJTNEJTIydmFsaWRhdGUlMjIlMjB0YXJnZXQlM0QlMjJfYmxhbmslMjIlMjBub3ZhbGlkYXRlJTNFJTNDJTJGZm9ybSUzRSUwQSUwQSUzQyEtLUVuZCUyMG1jX2VtYmVkX3NpZ251cC0tJTNF" descr_space="eyJhbGwiOiIxNSIsImxhbmRzY2FwZSI6IjE1In0=" tds_newsletter="tds_newsletter3" tds_newsletter3-all_border_width="0" btn_text="Sign up" tds_newsletter3-btn_bg_color="#e73d8f" tds_newsletter3-btn_bg_color_hover="#000000" tds_newsletter3-btn_border_size="0" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLWNvbG9yIjoiI2E3ZTBlNSIsImRpc3BsYXkiOiIifSwicG9ydHJhaXQiOnsiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdF9tYXhfd2lkdGgiOjEwMTgsInBvcnRyYWl0X21pbl93aWR0aCI6NzY4fQ==" tds_newsletter3-input_border_size="0" tds_newsletter3-f_title_font_family="445" tds_newsletter3-f_title_font_transform="uppercase" tds_newsletter3-f_descr_font_family="394" tds_newsletter3-f_descr_font_size="eyJhbGwiOiIxMiIsInBvcnRyYWl0IjoiMTEifQ==" tds_newsletter3-f_descr_font_line_height="eyJhbGwiOiIxLjYiLCJwb3J0cmFpdCI6IjEuNCJ9" tds_newsletter3-title_color="#000000" tds_newsletter3-description_color="#000000" tds_newsletter3-f_title_font_weight="600" tds_newsletter3-f_title_font_size="eyJhbGwiOiIyMCIsImxhbmRzY2FwZSI6IjE4IiwicG9ydHJhaXQiOiIxNiJ9" tds_newsletter3-f_input_font_family="394" tds_newsletter3-f_btn_font_family="" tds_newsletter3-f_btn_font_transform="uppercase" tds_newsletter3-f_title_font_line_height="1" title_space="eyJsYW5kc2NhcGUiOiIxMCJ9" content_align_horizontal="content-horiz-center"]