Loading…
`;
var showcase = “;
var ad = `
`
var mobileAd = “
try
function setLastModuleType()
const moduleType = window.lastModuleType;
switch(moduleType)
case ‘ad’:
window.lastModuleType = ‘series’;
break;
case ‘series’:
window.lastModuleType = ‘showcase’;
break;
case ‘section’:
window.lastModuleType = ‘series’;
break;
default:
window.lastModuleType = ‘ad’;
break;
setLastModuleType();
if (window.lastModuleType === ‘series’)
$(`#cm-module-placeholder`).replaceWith(series);
if (window.lastModuleType === ‘showcase’)
if(isMobile)
$(`#cm-module-placeholder`).replaceWith(mobileShowcase);
$(`#cm-module-placeholder`).replaceWith(showcase);
if (window.lastModuleType === ‘ad’)
if(isMobile)
$(`#cm-module-placeholder`).replaceWith(mobileAd);
else
$(`#cm-module-placeholder`).replaceWith(ad);
catch(e)