borgataonline


borgataonline res.json()) .then(config => window[‘clientConfig’] = config) .catch(err => console.error(err)); } window[‘_boot’] = boot(); window.script_load = (function () { var that = this; that.mapping = {}; that.startTime = Date.now(); return { timings: {}, start: function (id) { that.mapping[id] = Date.now(); }, onEnd: function (script) { var startTime = that.mapping[script.id]; if (startTime) { this.timings[script.src] = Date.now() – startTime; delete that.mapping[script.id]; } } } })(); ]]> -1) { return product; } return null; } function determineProduct(url, rules) { url = new URL(url); var product = null; rules.some(function(item) { if (item.path) { product = handleStringOrRegex(url.pathname, item.path, item.product); } else if (item.domain) { product = handleStringOrRegex(url.host, item.domain, item.product); } return product !== null; }) return product; } /** Register for known entry pages **/ if (!document.referrer) { /** Only save preference on an entry page to the site **/ var matchedProduct = determineProduct(window.location.href, entryPagesToProduct); if (matchedProduct) { console.warn(‘Matched to product #1’, matchedProduct); setCookie(matchedProduct); return; } } /** If there’s no cookie stored, see if they’ve just entered reg. In that case, try and work out where they’ve come from… **/ if (window.location.pathname.indexOf(‘mobileportal/register’) > -1 && !getCookie()) { console.debug(‘Detected user is on reg page’); var rurlMatch = window.location.search.match(/rurl=([^&]+)(&|$)/); if (!rurlMatch) { return; } var rurl = decodeURIComponent(rurlMatch[1]); console.debug(‘Infered referer as ‘ + rurl); /** Only save preference on an entry page to the site **/ var matchedProduct = determineProduct(rurl, registrationReferrerToProduct.slice(0).concat(entryPagesToProduct)); if (matchedProduct) { console.warn(‘Matched to product #2’, matchedProduct); setCookie(matchedProduct); } } })(); ]]>

This application requires Javascript for the best functionality and user experience. Your browser or device may not support Javascript or it may be disabled.



Source

ovaleditorialteam

Learn More →