in harness/app-assets/templates/assets/js/app.js [23:53]
function onDomReady() {
var contentType = GU.opts.contentType;
// monitoring
monitor.init();
// ads positioning
Ads.init({
adsEnabled: (GU.opts.adsEnabled && GU.opts.adsEnabled === 'true') || (GU.opts.adsEnabled && GU.opts.adsEnabled.indexOf('mpu') !== -1),
adsConfig: GU.opts.adsConfig,
adsType: GU.opts.contentType === 'liveblog' && !document.body.classList.contains('the-minute') ? 'liveblog' : 'default',
mpuAfterParagraphs: GU.opts.mpuAfterParagraphs
});
// other article-specific functions
if (contentType === 'article') {
require(['article'], initLayout.bind(null, 'article'));
} else if (contentType === 'liveblog') {
require(['liveblog'], initLayout.bind(null, 'liveblog'));
} else if (contentType === 'audio') {
require(['audio'], initLayout.bind(null, 'audio'));
} else if (contentType === 'gallery') {
require(['gallery'], initLayout.bind(null, 'gallery'));
} else if (contentType === 'football') {
require(['football'], initLayout.bind(null, 'football'));
} else if (contentType === 'cricket') {
require(['cricket'], initLayout.bind(null, 'cricket'));
} else {
require(['bootstraps/common'], initLayout.bind(null, 'common'));
}
}