var articleID = window.location.pathname.substring( window.location.pathname.lastIndexOf(“-“)+1);
var articlesWithoutLinkPremium = [“661248”, “661185”, “661893”, “665206”, “602479”];
if( articlesWithoutLinkPremium.includes(articleID) == true)
{
document.getElementById(“premium-link”).style.display = “none”;
}
var cont = `Sign up for The Jerusalem Post Premium Plus for just $5
Upgrade your reading experience with an ad-free environment and exclusive content
`;
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 = “40px”;
divWithLink.style.marginTop = “40px”;
divWithLink.style.width = “728px”;
}
(function (v, i){
});
<!–
var cont = ` COVID-19 & The Jews: Challenges and Opportunities
Join The Jerusalem Post for its inaugural virtual event
Watch 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 = “40px”;
divWithLink.style.marginTop = “40px”;
divWithLink.style.width = “728px”;
}
(function (v, i){
});
–>
Comments