(function() { function bxBootstrap() { var re = /bot|crawl|slurp|spider|mediapartners|headlesschrome|snap-prefetch|remotasks|woorank|uptime\.com|facebookexternalhit|facebookcatalog/i; if (re.test(navigator.userAgent) || navigator.userAgent == '') { return; } if (!(window.bouncex&&bouncex.website)) { var pushedData = []; if(window.bouncex && bouncex.push && bouncex.length){ pushedData = bouncex; } window.bouncex = {}; bouncex.pushedData = pushedData; bouncex.website = {"id":4246,"name":"Johnny Was ","cookie_name":"bounceClientVisit4246","domain":"johnnywas.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"bouncex.infoStore = {\n sessionStorageIdentifier: 'bxInfoStore',\n set: function(data) {\n var hashedData = bouncex.lz.compressToURI(JSON.stringify(data));\n try {\n sessionStorage.setItem(this.sessionStorageIdentifier, hashedData);\n } catch(e) {\n bouncex.err('session storage failure');\n }\n },\n \n get: function() {\n var info = sessionStorage.getItem(this.sessionStorageIdentifier);\n return info ? JSON.parse(bouncex.lz.decompressFromURI(info)) : '';\n },\n \n infoIsStored: function() {\n return !!sessionStorage.getItem(this.sessionStorageIdentifier);\n },\n \n populateFields: function(fields) {\n if (!this.infoIsStored()) return;\n \n var data = this.get();\n for (var field in fields) {\n if (fields.hasOwnProperty(field)) {\n fields[field].val(data[field]);\n }\n }\n }\n};","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-19511213-1","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":0,"gmp":0,"whitelist_check":0},"burls":[],"ple":false,"fbe":true,"mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\n\nvar CLEAN_URL = bouncex.utils.url.allowParams(['q']),\n\tCOUNTRY_CODE = jQuery('.country-name').first().text() || bouncex.state.geo.country_code;\n\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction getItemImageUrl() {\n\tvar imgUrl = jQuery('.active .pdp-main-image,[class*=\"inner-zoom\"] img').attr('src');\n\treturn imgUrl && bouncex.utils.url.allowParams([], imgUrl);\n}\n\nfunction trackStylitics(itemUrl) {\n\tjQuery('.stylitics-main-image').each(function () {\n\t\tvar imageUrl = jQuery(this).find('img').attr('src');\n\t\tif (imageUrl) {\n\t\t\tbouncex.push([\n\t\t\t\t'view_collection',\n\t\t\t\t{\n\t\t\t\t\timage_url: bouncex.utils.url.allowParams([], imageUrl),\n\t\t\t\t\titem_url: itemUrl\n\t\t\t\t}\n\t\t\t]);\n\t\t}\n\t});\n}\n\nfunction isCAOrAU() {\n\treturn ['CA', 'AU'].indexOf(COUNTRY_CODE) > -1;\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getItem() {\n\tvar groupId = bouncex.utils.gtmLookup('ecommerce.items.0.item_id'),\n\t\tcolorQuery = groupId ? 'dwvar_' + groupId + '_color' : '';\n\treturn {\n\t\tid: isCAOrAU() ? bouncex.vars.current_color + '-' + COUNTRY_CODE : bouncex.vars.current_color,\n\t\tcopy: jQuery('.product-name[itemprop=\"name\"]').first().text().trim(),\n\t\tcategory:jQuery('.product-breadcrumb .breadcrumb-item').eq(-2).text().trim() || 'global',\n\t\turl: bouncex.utils.url.allowParams([colorQuery]),\n\t\timageurl: getItemImageUrl(),\n\t\tinstock: jQuery('.attributes .size-btn:not(.not-available)').length > 0\n\t};\n}\n\nfunction initializeItemEvents() {\n\tbouncex.et.onVarChange('current_color', function () {\n\t\tvar item;\n\n\t\tbouncex.et.onTrue(\n\t\t\tfunction () {\n\t\t\t\titem = getItem();\n\t\t\t\treturn (\n\t\t\t\t\t!!item.id &&\n\t\t\t\t\t!!item.copy &&\n\t\t\t\t\t!!item.category &&\n\t\t\t\t\t!!item.url &&\n\t\t\t\t\t!!item.imageurl\n\t\t\t\t);\n\t\t\t},\n\t\t\tfunction () {\n\t\t\t\tif (item.url.indexOf('gift-card') > -1) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tbouncex.push(['item', item]);\n\n\t\t\t\tbouncex.push(['view item', { 'item:id': item.id }]);\n\t\t\t\ttrackStylitics(item.url);\n\t\t\t\tinitializeATCClickTracking(item.id);\n\t\t\t},\n\t\t\t10\n\t\t);\n\t});\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\n\nfunction getItemIdsCat() {\n\tvar ids = [];\n\n\tjQuery('.tile-img-link[data-product-id]').each(function (i, e) {\n\t\tvar id = jQuery(e).attr('data-product-id');\n\n\t\tif (id && ids.indexOf(id) < 0) {\n\t\t\tid = isCAOrAU() ? id + '-' + COUNTRY_CODE : id;\n\t\t\tids.push(id);\n\t\t}\n\t});\n\n\treturn ids.join(',');\n}\n\nfunction getCategoryObject() {\n\treturn {\n\t\t'page:url': CLEAN_URL,\n\t\t'items:ids': getItemIdsCat()\n\t};\n}\n\nfunction initializeCategoryEvents() {\n\tvar categoryObj;\n\n\tbouncex.et.onTrue(\n\t\tfunction () {\n\t\t\tcategoryObj = getCategoryObject();\n\t\t\treturn (\n\t\t\t\t!!categoryObj['items:ids'].length && !!categoryObj['page:url']\n\t\t\t);\n\t\t},\n\t\tfunction () {\n\t\t\tbouncex.push(['view category', categoryObj]);\n\t\t},\n\t\t10\n\t);\n\tinitQuickViewTracking();\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\n\nfunction fireAddToCart(itemId) {\n\tbouncex.push(['add to cart', { 'item:id': itemId }]);\n\n\tif (bouncex.vars.cart) {\n\t\treturn;\n\t}\n\tbouncex.setVar('cart', true);\n}\n\nfunction initializeATCClickTracking(itemId) {\n\tbouncex.off(bouncex.document, 'click.bxatc');\n\tbouncex.et.on(bouncex.document, 'click.bxatc',\n\t\tfunction () {\n\t\t\tif (jQuery('.select-size-message').outerHeight() > 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfireAddToCart(itemId);\n\t\t},\n\t\t'.add-to-cart'\n\t);\n}\n\nfunction emptyCart() {\n\tbouncex.et.onVarChange('cart_qty', function (oldVal, newVal) {\n\t\tif (bouncex.vars.cart && newVal === 0 && oldVal > 0) {\n\t\t\tbouncex.push(['empty_cart']);\n\t\t\tbouncex.setVar('cart', false);\n\t\t}\n\t});\n}\n\nfunction initializeCartEvents() {\n\tbouncex.et.cart.init({\n\t\treplenish: function () {},\n\t\treplenishmentType: 'single'\n\t});\n\n\temptyCart();\n}\n\nfunction initQuickViewTracking() {\n\tbouncex.et.on(bouncex.document, 'click.bxQV',\n\t\tfunction () {\n\t\t\tvar itemId = jQuery(this).parents('.product[data-pid]').attr('data-pid');\n\t\t\tif (itemId) {\n\t\t\t\tfireAddToCart(itemId);\n\t\t\t}\n\t\t},\n\t\t'.product-detail.quick-buy .size-btn,.product-tile .size-btn'\n\t);\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\n\nfunction initializeUserTracking() {\n\tif (!bouncex.vars.logged_in || !!bouncex.vars.logged_in_identified) {\n\t\treturn;\n\t}\n\n\tvar userEmail;\n\n\tbouncex.et.onTrue(\n\t\tfunction () {\n\t\t\tuserEmail = bouncex.utils.gtmLookup('email');\n\t\t\treturn bouncex.utils.validate.email(userEmail);\n\t\t},\n\t\tfunction () {\n\t\t\tbouncex.push([\n\t\t\t\t'user',\n\t\t\t\t{\n\t\t\t\t\temail: userEmail,\n\t\t\t\t\tsource: 'LoggedIn'\n\t\t\t\t}\n\t\t\t]);\n\t\t\tbouncex.setVar('logged_in_identified', true);\n\t\t},\n\t\t5\n\t);\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n\treturn CLEAN_URL.indexOf('www.johnnywas.com') > -1;\n}\n\nfunction isEn() {\n\treturn bouncex.html.attr('lang') === 'en';\n}\n\nfunction isValidForTracking() {\n\treturn isValidDomain() && isEn();\n}\n\nfunction init() {\n\tif (!isValidForTracking()) {\n\t\treturn;\n\t}\n\n\tinitializeUserTracking();\n\tinitializeCartEvents();\n\n\tswitch (bouncex.website.pts) {\n\t\tcase 'category':\n\t\tcase 'search':\n\t\t\tinitializeCategoryEvents();\n\t\t\tbreak;\n\t\tcase 'product':\n\t\t\tinitializeItemEvents();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n}\n\ninit();\n","dge":true,"bxidLoadFirst":false,"pie":true,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/cart"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.search-results').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/search"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkout"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/cart"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === '/';"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.pdp-details').length > 0;"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search"}]]}},"els":{"blank_site_element":""},"vars":[{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"!!bouncex.utils.gtmLookup('email');","trigger":""},{"name":"ever_logged_in","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in || null;","trigger":""},{"name":"cart_qty","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"bouncex.website.pts !== 'checkout' ? Number(jQuery('.minicart-quantity').first().text()) : null;","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function () {\n\tif (bouncex.website.pts !== 'checkout' &&Number(jQuery('.minicart-quantity').first().text()) === 0) {\n\t\treturn 0;\n\t}\n\tvar $subTotal = jQuery('.sub-total-with-value,.price-value.sub-total');\n\treturn $subTotal.length > 0 ? Number($subTotal.first().text().replace(/[^0-9.]/g, '')) : null;\n})();","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('.klaviyo-form').text().toLowerCase().indexOf('thanks for subscribing') > -1 || null;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"cart_token","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_items","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cookie_modal_present","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"coupon_code","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.bx-type-nanobar .coupon:first').text().trim();","trigger":"pageload"},{"name":"wknd_identified","polling":"vars","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.ever_logged_in || bouncex.vars.submitted_onsite || !!bouncex.cookie.es || !!bouncex.cookie.uid || null;","trigger":"pageload"},{"name":"page_hash","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"window.location.hash;","trigger":"pageload"},{"name":"current_color","polling":"vars","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.color-attribute[data-product-id] .selected').parents('[data-product-id]').attr('data-product-id');","trigger":"pageload"},{"name":"shipping_location","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var country = jQuery('#gle_selectedCountry').val() || jQuery('.country-name').first().text() || '';\n\n return country.indexOf('US') > -1 ? 'US' : country || null;\n})();","trigger":"pageload"},{"name":"shipping_modal_present","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#globalePopupWrapper').is(':visible');","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"assets.bounceexchange.com","bau":"api.bounceexchange.com","beu":"events.bouncex.net","ibx":{"tjs":"","cjs":"","miw":1,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":{"bxid":"espemailid"},"cus":"","miw_exclude":"#giftcard_recipient_email","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":1,"spatm":0,"preinit_cjs":"SinglePageApp.setCustomParams({\n currentPageIdentifier: function() {\n return window.location.hash;\n },\n shouldCheckSpa: function() {\n return bouncex.calling_url.indexOf('checkout') > -1;\n }\n});\n\n/** \n * Segments - Cartridge Boilerplate\n * This code belongs in pre-init.js. If you want to write code\n * that runs when the page loads but does not leverage the intercept\n * or mirror methods use the Event Tracking code block. Don't forget\n * to change testMode to false to set your code live.\n */\n\nvar segments = {\n /* PROPERTIES */\n testMode: false,\n interceptEnabled: true,\n mirrorEnabled: true,\n dlWatcherEnabled: false,\n /* METHODS */\n /* Intercept Events */\n useIntercept: function() {\n if (this.interceptEnabled) {\n bouncex.utils.shqInterceptEvent = {\n // true blocks event, defined functions run in place of default\n 'productView': false,\n 'cartAdd': true, // intercepted for mirror event\n 'cartEmpty': false,\n 'categoryView': false,\n 'purchase': function(wkData) {\n // var orderId = wkData.params ? wkData.params : '',\n var oid = bouncex.utils.getNestedProp('obj.order_id', null, wkData) || 'no-orderid-' + Math.floor(Math.random() * 100000000),\n getOrderObj = bouncex.utils.getNestedProp('window.dataLayer', []).filter(function(e) {\n return e.transactionId;\n })[0],\n purchList = sessionStorage.getItem('purchaseList'),\n getProductListObj = bouncex.parseJSON(purchList, {}),\n orderId = bouncex.utils.getNestedProp('transactionId', '', getOrderObj),\n orderTotal = bouncex.utils.getNestedProp('transactionTotal', '', getOrderObj);\n\n if (getOrderObj && getProductListObj && orderId && orderTotal) {\n _shq.push(['pageView', {\n pageType: 'purchase',\n orderItems: [getProductListObj],\n orderId: orderId,\n total: orderTotal\n }]);\n\n } else {\n _shq.push(['pageView', {\n 'pageType': 'purchase',\n 'orderId': oid,\n 'usebasket': true\n }]);\n\n }\n\n },\n 'coupon': false,\n 'search': false,\n 'checkout': function() {\n // fire checkout event\n _shq.push(['onCheckout']);\n\n // Push Order Items w/ ID to sessionStorage for purchase pageview\n var getPurchObj = bouncex.utils.getNestedProp('window.dataLayer', []).filter(function(e) {\n return e.transactionProducts;\n })[0],\n getProdInCartArry = bouncex.utils.getNestedProp('transactionProducts', '', getPurchObj),\n items = [];\n\n if (bouncex.website.pts === 'checkout' && getPurchObj && getProdInCartArry.length > 0) {\n for (var i = 0; i < getProdInCartArry.length; i++) {\n var prodId = getProdInCartArry[i].id,\n prodPrice = getProdInCartArry[i].price,\n prodQty = getProdInCartArry[i].quantity;\n\n if (prodId && prodPrice && prodQty) {\n items.push({\n productId: prodId,\n price: prodPrice,\n qty: prodQty\n });\n }\n }\n\n sessionStorage.setItem('purchaseList', JSON.stringify(items));\n }\n\n },\n 'email': false,\n 'phone': false\n };\n }\n },\n /* Mirror Events */\n useMirror: function() {\n if (this.mirrorEnabled) {\n bouncex.utils.shqMirrorEvent = {\n // defined functions run after designated shq_wknd_event to process event or source names\n 'reloadcampaigns': false,\n 'pageview': function() {\n // Search\n var sp = bouncex.utils.getParam('q');\n\n if (bouncex.website.pts === 'search' && sp) {\n _shq.push(['pageView', {\n pageType: 'search',\n searchPhrase: sp.replace(/\\+/gi, ' ')\n }]);\n }\n\n },\n 'add to cart': function(wkData) {\n // Add To Cart - PDP\n if (bouncex.website.pts === 'product') {\n var prodId = jQuery('.fp-root.fp-site-language-en').attr('data-product-id'),\n prodPrice = jQuery('afterpay-placement').attr('data-amount'),\n prodQty = jQuery('input#qty:visible').val() || 1;\n\n if (prodId && prodPrice && prodQty) {\n _shq.push(['onCartAdd', {\n CartId: null,\n Items: [{\n ProductId: prodId,\n UnitPrice: prodPrice,\n Quantity: prodQty\n }],\n Total: +prodPrice * +prodQty\n }]);\n }\n } else if (bouncex.website.pts === 'category') {\n // Add To Cart - Quick View\n var prodId,\n prodPrice,\n prodQty;\n\n bouncex.et.onTrue(\n // Condition\n function() {\n prodId = wkData.params ? wkData.params['item:id'] : '',\n prodPrice = jQuery('span#product-price-' + prodId).attr('data-price-amount'),\n prodQty = jQuery('input#qty:visible').val() || 1;\n\n return prodId && prodPrice && prodQty;\n },\n // Callback\n function() {\n if (prodId && prodPrice && prodQty) {\n _shq.push(['onCartAdd', {\n CartId: null,\n Items: [{\n ProductId: prodId,\n UnitPrice: prodPrice,\n Quantity: prodQty\n }],\n Total: +prodPrice * +prodQty\n }]);\n\n }\n },\n // Max Tries\n 10\n );\n\n }\n },\n 'view item': false,\n 'select_sku': false,\n 'item': false,\n 'eligible': false,\n 'pop': false,\n 'visit': false\n };\n }\n },\n dlFuncs: function(e) {\n // Write handle methods here:\n //PDP\n if (e.PageType && e.PageType === 'ProductPage') {\n //do PDP event\n }\n },\n useDLWatcher: function() {\n if (!!this.dlWatcherEnabled) {\n window.bouncex.et.onTrue(function() {\n return window.bouncex.utils.getNestedProp('window._shq.loaded') && !!window.dataLayer && !!bouncex.et.setInterval;\n }, function() {\n // instantiate DataLayerHandler Object\n var dlWatcher = new _shq.DataLayerHandler(window.dataLayer);\n // invoke watch method\n dlWatcher.watch(function(e) {\n segments.dlFuncs(e);\n }, {});\n });\n }\n },\n /* Initialize Segments Tracking */\n init: function() {\n // test mode\n if (this.testMode && !bouncex.testmode.bxdev) return;\n // attach object to window & bouncex.utils\n if (window.bouncex.utils) bouncex.utils.segments = this;\n\n // initialize intercept and mirror, comment out if not needed\n this.useIntercept();\n this.useMirror();\n }\n}\n\nsegments.init();\n\n//To use dlFuncs call this in Event Tracking\n//bouncex.utils.segments.useDLWatcher();","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"Hit 'Send' to sign-up for automated, recurring Johnny Was mktg txts (like cart reminders) to this #, per terms.","eventSharing":true,"shqId":"3b8ua030pi-1","enabled":1},"pde":true,"fmc":["US","CA"],"fme":true,"fmx":"#giftcard_recipient_email","sdk":{"android":{"enabled":false,"enabledVersions":[],"eventModifications":null},"ios":{"enabled":false,"enabledVersions":[],"eventModifications":null}},"onsite":{"enabled":1},"ads":{"enabled":0},"pubs":{"enabled":0},"websdk":{"enabled":0},"ga4_property_id":"326793693","ga4_measurement_id":"G-F492L8N81C"} ; bouncex.tag = 'tag3'; bouncex.$ = window.jQuery; bouncex.env = 'production'; bouncex.restrictedTlds = {"casl":{"ca":1},"gdpr":{"ad":1,"al":1,"at":1,"ax":1,"ba":1,"be":1,"bg":1,"by":1,"xn--90ais":1,"ch":1,"cy":1,"cz":1,"de":1,"dk":1,"ee":1,"es":1,"eu":1,"fi":1,"fo":1,"fr":1,"uk":1,"gb":1,"gg":1,"gi":1,"gr":1,"hr":1,"hu":1,"ie":1,"im":1,"is":1,"it":1,"je":1,"li":1,"lt":1,"lu":1,"lv":1,"mc":1,"md":1,"me":1,"mk":1,"xn--d1al":1,"mt":1,"nl":1,"no":1,"pl":1,"pt":1,"ro":1,"rs":1,"xn--90a3ac":1,"ru":1,"su":1,"xn--p1ai":1,"se":1,"si":1,"sj":1,"sk":1,"sm":1,"ua":1,"xn--j1amh":1,"va":1,"tr":1}}; bouncex.client = { supportsBrotli: 0 }; bouncex.assets = {"ads":"44fda29a3ca8b3798fe72ceb2caeade8","creativesBaseStyles":"a53944a2","gpsAuction":"1375a7b38c31e98d14fe7f396b72da14","inbox":"02aca5df0e176b8810a86da97ac05424","onsite":"0e56ab6ba004ee080ce3deb3edae35e9","sms":"e39203556bab2366e56296ce42e974a7","websdk":"0704dae1eb637cbeb4a847506058402d"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/runtime_6459738026535cda4232dc813c61447d.js'); runtime.setAttribute('async', 'async'); runtime.setAttribute('onload', 'bouncex.initializeTag()'); bouncex.initializeTag = function() { var script = document.createElement('script'); script.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/main-v2_b0f9dea1e3910d3b6e492e0d6dab8565.js'); script.setAttribute('async', 'async'); document.body.appendChild(script); var deviceGraphScript = document.createElement('script'); deviceGraphScript.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/cjs_min_3a843477d8e318f67237a66d0a58c542.js'); deviceGraphScript.setAttribute('async', 'async'); var dgAttrs = [{"Key":"id","Value":"c.js"},{"Key":"async","Value":"true"},{"Key":"data-apikey","Value":"2^HIykD"},{"Key":"data-cb","Value":"bouncex.dg.initPostDeviceGraph"},{"Key":"data-bx","Value":"1"},{"Key":"data-gm","Value":"1"},{"Key":"data-fire","Value":"1"}]; if (dgAttrs) { for (var i = 0; i < dgAttrs.length; i++) { deviceGraphScript.setAttribute(dgAttrs[i].Key, dgAttrs[i].Value); } } document.body.appendChild(deviceGraphScript); bouncex.initializeTag = function() {}; }; document.body.appendChild(runtime); } window._shq = window._shq || []; var eventSharingCartridge = document.createElement('script'); eventSharingCartridge.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/wknd_audiences_2648fa8509e4b3a98a2790bb8171ddc1.js'); eventSharingCartridge.setAttribute('async', 'async'); document.body.appendChild(eventSharingCartridge); } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();