ument.getElementById("PlazmaDiv").style.display == 'table') { //setTimeout('parent.CloseBigDivIN()', 12000); } } function CloseOpenVideoBanner() { if (document.getElementById('VideoBannerSrc').style.display == 'none') { document.getElementById('VideoBannerSrc').style.display = 'inline-block'; document.getElementById('VideoBannerCloseSrc').style.display = 'inline-block'; document.getElementById('ctl00_VideoBannerDisplay').src = ''; } else { document.getElementById('VideoBannerSrc').style.display = 'none'; document.getElementById('VideoBannerCloseSrc').style.display = 'none'; document.getElementById('ctl00_VideoBannerDisplay').src = ''; } } function CloseBigDivIN() { TopBanner.style.display = 'block'; PlazmaDiv.style.display = 'none'; $('#plazmaBanner').remove(); //added on 09/09/2019 } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; } function startSlideInhomepageAd(BansList) { if (BansList != '') { CreateDownBans(BansList); } } function checkNum(toCheck) { var isNum = true; if ((toCheck == null) || (toCheck == "")) { isNum = false; return isNum; } for (j = 0; j < toCheck.length; j++) { if ((toCheck.substring(j, j + 1) != "0") && (toCheck.substring(j, j + 1) != "1") && (toCheck.substring(j, j + 1) != "2") && (toCheck.substring(j, j + 1) != "3") && (toCheck.substring(j, j + 1) != "4") && (toCheck.substring(j, j + 1) != "5") && (toCheck.substring(j, j + 1) != "6") && (toCheck.substring(j, j + 1) != "7") && (toCheck.substring(j, j + 1) != "8") && (toCheck.substring(j, j + 1) != "9")) { isNum = false; } } return isNum; } function CreateDownBans(BansList) { var resArr = BansList.split(","); for (i = 0; i < resArr.length; i++) { if (checkNum(resArr[i]) == true) { if (readCookie("isUserShowPopUp_" + resArr[i]) == null) { startSlideInhomepageAdBan(resArr[i]); break; } } } } var timerIDBan; var pointAtXBan; function startSlideInhomepageAdBan(banID) { var w1 = screen.width; var strLeft1; strLeft1 = (w1 / 2) - 200; document.getElementById('homepageAdBan_' + banID).style.left = strLeft1 + 'px'; pointAtXBan = -250; document.getElementById("homepageAdBan_" + banID).style.visibility = "visible"; createCookie("isUserShowPopUp_" + banID, "Yes", 1) document.getElementById('CountDownBan').src = 'https://www.news1.co.il/CountDownBanner.aspx?BanID=' + banID; timerIDBan = setInterval("slideInhomepageAdBan('" + banID + "')", 80); } function slideInhomepageAdBan(banID) { pointAtXBan += 40; document.getElementById("homepageAdBan_" + banID).style.bottom = pointAtXBan + 'px'; if (pointAtXBan >= 40) { clearTimeout(timerIDBan); } lesheet" />
X
|