(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":7672,"name":"Lenovo HK","cookie_name":"bounceClientVisit7672","domain":"lenovo.comhk","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"","force_https":false,"waypoints":false,"content_width":900,"gai":"","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":1},"burls":[],"ple":false,"fbe":true,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\n\nvar LENOVO_DOMAIN = 'www.lenovo.com',\n CART_COOKIE_KEY = 'INSERT CART COOKIE HERE', // cookie replenishment\n CLEAN_URL = bouncex.utils.url.allowParams(['text', 'visibleDatas', 'ipromoID']);\n\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction getItemImage() {\n var imagePath = jQuery('.slick-list .rollovercartItemImg:first, .galleryContent img, .swiper-slide-active .image-pic img, .swiper-slide .zoom_container img').attr('src') || jQuery('.slick-list .rollovercartItemImg:first, .galleryContent img, .swiper-slide-active .image-pic img, .swiper-slide img').attr('src') || '',\n itemImageUrl = '';\n\n if (imagePath.indexOf('static.pub') > -1 && imagePath.indexOf('https:') === -1) {\n return 'https:' + imagePath;\n }\n\n if (imagePath && imagePath.indexOf('https:') === -1) {\n itemImageUrl = 'https://' + window.location.hostname + imagePath;\n }\n\n return itemImageUrl || imagePath;\n}\n\nfunction isConfigPage() {\n return CLEAN_URL.indexOf('configurator') > -1 || !!bouncex.utils.url.getParam('isConfiguration');\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getItem() {\n var productData = bouncex.utils.getNestedProp('lmd');\n var lang = bouncex.html.attr('lang');\n return {\n id: bouncex.utils.url.allowParams().split('/').pop().toUpperCase() + '-' + lang,\n copy: productData.title,\n category: jQuery('meta[name=\"productInfo.category\"]').attr('content'),\n url: bouncex.utils.url.allowParams(),\n imageurl: getItemImage(),\n instock: bouncex.vars.in_stock\n };\n}\n\nfunction fireViewItem(id) {\n var pushItem = { 'item:id': id };\n bouncex.push(['view item', pushItem]);\n}\n\nfunction initializeItemEvents() {\n if (isConfigPage()) { return; }\n\n var item;\n\n bouncex.et.onTrue(\n function () {\n item = getItem();\n return !!item.id &&\n !!item.copy &&\n !!item.category &&\n !!item.url &&\n !!item.imageurl;\n },\n function () {\n if (item.url.indexOf('gift-card') > -1 || item.url.indexOf('smbpro') > -1) {\n return;\n }\n bouncex.push(['item', item]);\n\n fireViewItem(item.id);\n },\n 10\n );\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\n\nfunction getItemIdsCat() {\n var ids = [];\n\n jQuery('.product_item, ul.Product li.fadeIn').each(function () {\n var lang = bouncex.html.attr('lang');\n var gridEl = jQuery(this),\n id = gridEl.attr('data-product-number') ||\n gridEl.attr('data-product-code') || \n gridEl.find('[data-mcode]').first().attr('data-mcode') ||\n gridEl.attr('data-productcode') ||\n bouncex.parseJSON(gridEl.attr('data-adobe-params')).productNubmer ||\n gridEl.find('[productid]:first').attr('productid');\n\n if (id && ids.indexOf(id) < 0) {\n ids.push(id.toUpperCase() + '-' + lang);\n }\n });\n\n return ids.join(',');\n}\n\nfunction getCategoryObject() {\n return {\n 'page:url': CLEAN_URL,\n 'items:ids': getItemIdsCat()\n };\n}\n\nfunction initializeCategoryEvents() {\n var categoryObj;\n\n bouncex.et.onTrue(\n function () {\n categoryObj = getCategoryObject();\n return !!categoryObj['items:ids'].length &&\n !!categoryObj['page:url'];\n },\n function () {\n bouncex.push(['view category', categoryObj]);\n },\n 10\n );\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\nfunction trackAddToCart() {\n // category page quick add desktop\n bouncex.et.on(jQuery('.ctaButton_show-content'), \"click.bxCategoryATC\", function() {\n var $productParams = bouncex.parseJSON(jQuery(this).closest('.product_item').attr('data-adobe-params') || ''),\n productCode = $productParams.productNubmer;\n\n if (jQuery('li.menuitem.active a').attr('data-tkey') === 'model') {\n return; // we dont want to fire atc here on model pages, its already being taken care of by the other click listener\n }\n\n fireAddToCart(productCode);\n });\n \n // category page quick add mobile\n bouncex.et.on(jQuery('.product_cta_button_m'), \"click.bxCategoryATC\", function() {\n var productCode = jQuery(this).closest('.product_item').attr('data-product-code');\n\n fireAddToCart(productCode);\n });\n\n // Cart Page ATC Desktop\n if (bouncex.website.pts === 'cart') {\n bouncex.et.on(jQuery(document), 'click.bxCartATC', function () {\n var productCode = jQuery(this).attr('productcode');\n fireAddToCart(productCode);\n }, 'button.add_cart'); \n }\n \n // Cart Page ATC Mobile\n if (bouncex.website.pts === 'cart') {\n bouncex.et.on(jQuery(document), 'click.bxCartATCMobile', function () {\n var productCode = jQuery(this).closest('.product_item').find('.product_title span[role=\"heading\"]').attr('id');\n \tfireAddToCart(productCode);\n }, '.button[aria-label=\"Add To Cart\"]');\n }\n \n // Product Builder Add-ons ATC Desktop\n bouncex.et.on(jQuery(document), 'click.bxAddOnsATC', function () {\n var $selectedItems = jQuery('.price-btn.selected:not(#product-null), .pbAddToCartBtn.addedToCart'),\n productCode;\n \n for (var i = 0; i < $selectedItems.length; i++) {\n if (!!$selectedItems.eq(i).attr('data-product-number')) {\n productCode = $selectedItems.eq(i).attr('data-product-number');\n } else {\n productCode = $selectedItems.eq(i).closest('.product-card-main').attr('id').replace(\"product-\", \"\");\n }\n fireAddToCart(productCode);\n }\n }, '#nextStepBtn');\n \n \n // Product Builder Add-ons ATC Mobile\n bouncex.et.on(jQuery(document), 'click.bxAddOnsATCMobile', function () {\n var cartProducts = bouncex.utils.getNestedProp('lmd').cart.allProducts,\n productCode;\n\n if (!!cartProducts && cartProducts.length > 1) {\n for (var i = 0; i < cartProducts.length; i++) {\n productCode = bouncex.utils.getNestedProp('lmd').cart.allProducts[i].productcode;\n \n fireAddToCart(productCode);\n }\n }\n }, '.pb-cart-button');\n \n\n // ATC (not customize)\n bouncex.et.onVarChange('cart_qty', function (oldVal, newVal) {\n if (newVal > oldVal) {\n var productCode;\n if (bouncex.website.pts !== 'cart') {\n productCode = jQuery('meta[name=productid]').attr('content');\n }\n if (productCode) {\n fireAddToCart(productCode);\n }\n }\n });\n\n // Fire ATC once on product builder for original item\n var prodId;\n bouncex.et.onTrue(\n function () {\n prodId = bouncex.utils.url.getParam('mainCode');\n return (CLEAN_URL.indexOf('/hk/en/pb/index.html') > -1 && prodId && ((jQuery('.pb-success-msg-bar').length > 0 && !bouncex.state.mobile) || bouncex.state.mobile));\n },\n function () {\n fireAddToCart(prodId);\n },\n 10\n );\n}\n\nfunction fireAddToCart(productCode) {\n if (!productCode) { return; }\n\n var replenItem = {\n 'qty': '1',\n 'productCode': productCode\n };\n\n var lang = bouncex.html.attr('lang');\n productCode = productCode + \"-\" + lang\n bouncex.push([\n 'add to cart',\n {\n 'item:id': productCode,\n 'cart:item': JSON.stringify(replenItem)\n }]);\n\n if (!bouncex.vars.cart) {\n bouncex.setVar('cart', true);\n }\n}\n\n// AJAX Replen\nfunction replenish(cart) {\n var replenishmentUrl = 'https://openapi.lenovo.com/hk/en/api/cart/item',\n $deferreds = [];\n\n cart.items.forEach(function(item) {\n $deferreds.push(makeReplenItem(item, replenishmentUrl));\n });\n\n $deferreds\n .reduce(function(promise, func) {\n return promise.then(function() {\n return func();\n });\n }, jQuery.Deferred().resolve([]))\n .then(replenComplete);\n}\n\nfunction makeReplenItem(data, replenishmentUrl) {\n\n return function() {\n return jQuery.ajax({\n type: 'POST',\n xhrFields: {withCredentials: true},\n url: replenishmentUrl,\n data: bouncex.utils.url.generateQuerystring(data),\n datatype: 'application/json',\n crossDomain: true\n });\n };\n}\n\n\nfunction replenComplete() {\n window.location.href = window.location.origin + window.location.pathname + '?bx_replen=true';\n}\n\nfunction emptyCart() {\n bouncex.et.onVarChange('cart_qty', function (oldVal, newVal) {\n if (bouncex.vars.cart && newVal === 0 && oldVal > 0) {\n bouncex.push(['empty_cart']);\n bouncex.setVar('cart', false);\n }\n });\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n cartCountVariable: 'cart_qty',\n storeValues: [],\n replenish: replenish,\n replenishmentType: 'ajax'\n });\n\n trackAddToCart();\n emptyCart();\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\n\nfunction initializeUserTracking() {\n if (!bouncex.vars.logged_in || !!bouncex.vars.logged_in_identified) {\n return;\n }\n\n var userEmail;\n\n bouncex.et.onTrue(\n function () {\n userEmail = bouncex.utils.getNestedProp('utag_data.loginName') || bouncex.utils.getNestedProp('lmd.loginName') || bouncex.utils.getNestedProp('displayUid');\n return bouncex.utils.validate.email(userEmail);\n },\n function () {\n bouncex.push([\n 'user',\n {\n 'email': userEmail,\n 'source': 'LoggedIn'\n }\n ]);\n bouncex.setVar('logged_in_identified', true);\n },\n 5\n );\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return CLEAN_URL.indexOf(LENOVO_DOMAIN) > -1 && CLEAN_URL.indexOf('/hk') > -1 || CLEAN_URL.indexOf('account') > -1;\n}\n\nfunction init() {\n if (!isValidDomain()) {\n return;\n }\n\n initializeUserTracking();\n bouncex.setTimeout2(initializeCartEvents, 2000);\n\n switch (bouncex.website.pts) {\n case 'category':\n case 'search':\n initializeCategoryEvents();\n break;\n case 'product':\n initializeItemEvents();\n break;\n default:\n break;\n }\n}\n\ninit();","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"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/cart/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"localhost:9002"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"pre-u-hybris."}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"tun-c-hybris."}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"account.lenovo.com/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"pre-c-hybris."}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"gl.lenovouat."}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('meta[name=\"productinfo.pageurl\"]').length === 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/search?"}],[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('section.product_list ul.skeleton_product li.product_item, .product_list ul.skeleton_product li.product_item, .Products ul.Product li a[productid], .pc_product_list').length > 0;"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('ul.searchList .featureHover a[productid]').length > 0;"}]]},"checkout":{"testmode":true,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkout/"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkout"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"pre-c-hybris."}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"tun-c-hybris."}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"gl.lenovouat."}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"account.lenovo.com"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/orderconfirmation/"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === '/hk/zh/';"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === '/hk/en/';"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('link[rel=\"canonical\"][href=\"https://www.lenovo.com/hk/en\"], link[rel=\"canonical\"][href=\"https://www.lenovo.com/hk/en/\"]').length > 0;"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('link[rel=\"canonical\"][href=\"https://www.lenovo.com/hk/zh\"], link[rel=\"canonical\"][href=\"https://www.lenovo.com/hk/zh/\"]').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/login/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/privacy/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/think/hk/en"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"datacentersupport."}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/ticketsatwork/hk/en"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('body[jsppagename=\"nemoProductLayout2Page\"], meta[name=\"productinfo.pageurl\"]').length > 0;"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('meta[name=\"productinfo.category\"]').length > 0 && document.querySelectorAll('.commuter-backpack-nav__btn#addToCartButtonTop').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/uat-www"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search?"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"tun-r-hybris."}]]}},"els":{"blank_site_element":""},"vars":[{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"!!bouncex.utils.getNestedProp('utag_data.loginName') || !!bouncex.utils.getNestedProp('lmd.loginName');","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":"no","page_types":[],"testmode":false,"default":"0","code":"(function() {\n var $empty = jQuery('.cart-empty').first(),\n miniCart = jQuery('.c_i_num, .utility-popover').first().text();\n \n\n if (!!miniCart) {\n return Number(miniCart.replace(/[^0-9.]/g, ''));\n } else if (($empty.length && $empty.css('display') !== 'none') || !miniCart.length) {\n return 0;\n }\n return null;\n})();","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"(function() {\n var $unavailable = jQuery('.merch-tagLabel-ribbon:visible:contains(\"Temporarily Unavailable\"), .productStatus-deals strong:visible:contains(\"Temporarily Unavailable\"), .marketing-status:visible:contains(\"DISCONTINUED\"), span.marketing-status:visible:contains(\"TEMPORARILY UNAVAILABLE\")').eq(0)\n , $stockButton = jQuery('.mainContent .cta-button span[data-tkey=\"addToCart\"], .mainContent .cta-button span[data-tkey=\"buildYourPC\"], .product_list .cta_container .cta-button');\n if ($unavailable.length > 0) {\n return false;\n }\n return $stockButton.length > 0;\n }\n)();","trigger":""},{"name":"submitted_onsite","polling":"none","persist":"permanent","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"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":false,"default":"false","code":"(function() {\n var $modal = jQuery('#_evidon_banner[aria-label=\"Cookie notice banner\"], #evidon-prefdiag-background');\n if ($modal.length > 0 && $modal.get()[0].offsetParent !== null) {\n return true;\n }\n return false;\n})();","trigger":"pageload"},{"name":"page_type","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"attentive_visible","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('#attentive_overlay').length > 0;","trigger":"pageload"},{"name":"landed_brand_page","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"bouncex.cookie.vpv === 1 && window.location.pathname === '/hk/en/' || window.location.pathname === '/hk/zh/' || null;","trigger":"pageload"},{"name":"on_branded_landed_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"window.location.pathname === '/hk/en/' || window.location.pathname === '/hk/zh/';","trigger":"pageload"},{"name":"on_lenovo_au_property","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.url.allowParams().indexOf('/hk/en/') > -1 || bouncex.utils.url.allowParams().indexOf('/hk/zh/') > -1;","trigger":"pageload"},{"name":"cur_item_id","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","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":0,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":null,"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":0,"spatm":1,"preinit_cjs":"","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"","eventSharing":false,"shqId":"","enabled":0},"pde":true,"fmc":["HK"],"fme":true,"fmx":"","uid2":false,"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,"devMode":0},"ga4_property_id":"","ga4_measurement_id":"","tag_state_domain":"api.bounceexchange.com"} ; 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: 1 }; bouncex.assets = {"ads":"27166d3b6527a269bad237fea7e0ef3c","creativesBaseStyles":"a53944a2","gpsAuction":"bbb80866120d17013073bb6d284cbd6b","inbox":"75060a85c1a4aebcc6f779b9e84db722","onsite":"abbdf7a49be9b52b097917b7b527b262","sms":"e39203556bab2366e56296ce42e974a7","websdk":"04cde0014774b7eb597770595769aab1"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/runtime_c81e76ee00d795b1eebf8d27949f8dc5.br.js'); runtime.setAttribute('async', 'async'); bouncex.initializeTag = function() { var script = document.createElement('script'); script.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/main-v2_4b048f3d0cfb1030f90fec02949d8c38.br.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_6ef1802500d8367a80105e664862d0d7.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() {}; }; runtime.onload = bouncex.initializeTag; document.body.appendChild(runtime); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();