‘Go get a flu shot’: Gov. Greg Abbott urges Texans to get vaccinated this season

Advertisement

BEGIN ARTICLE PREVIEW:


`;

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


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

waitForElement(“JotFormIFrame-202185815209151”, function(){
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) …

END ARTICLE PREVIEW

READ MORE FROM SOURCE ARTICLE