A song for Iyar: An Israeli Song
By JPOST IVRIT STAFF
Published:
MAY 16, 2023 12:15
שִׁיר יִשְׂרְאֵלִי
if(catID != 151){
var cont = `Take Israel home with the new
Jerusalem Post Store
Shop now >>
`;
document.getElementById("linkPremium").innerHTML = cont;
var divWithLink = document.getElementById("premium-link");
if (divWithLink !== null && divWithLink !== 'undefined') {
divWithLink.style.border = "solid 1px #cb0f3e";
divWithLink.style.textAlign = "center";
divWithLink.style.marginBottom = "15px";
divWithLink.style.marginTop = "15px";
divWithLink.style.width = "100%";
divWithLink.style.backgroundColor = "#122952";
divWithLink.style.color = "#ffffff";
divWithLink.style.lineHeight = "1.5";
}
}
(function (v, i) {
});
fetch('https://pro.ip-api.com/json?key=ay3FPSS6OcBXPHg&fields=countryCode,region')
.then(response => response.json())
.then(data => {
if (data != "" && data != null) {
var country = data.countryCode;
console.log("COUNTRY: " + country);
if (country == "IL") {
// 1. add adapex
console.log("COUNTRY IL");
var footerSticky = document.createElement('div');
footerSticky.setAttribute('jpost-id', 'adapex_sticky');
footerSticky.setAttribute('data-aaad', 'true');
footerSticky.setAttribute('data-aa-adunit', '/6943/JPost_2017/Mobileweb/All_Regular_Ad_Units/Article_320x100_Footer_Sticky');
document.getElementById('adapexSticky').appendChild(footerSticky);
document.getElementById('adapexStickyContainer').style.display = "block";
// 2. remove outbrain
const style = document.createElement('style');
style.textContent = `
div[data-widget-id=MB_60] {
display: none !important;
}
`;
document.head.appendChild(style);
}
}
})
.catch(err => {
console.error('An error ocurred -api geolocation', err);
});
function();