console.log('uid='); //*** time check 1 (0.00713s elapsed) //*** time check 2 (0.0076s elapsed) //*** JJ itemId=index //*** JJ pageType=home //*** time check 3 (0.01003s elapsed) //*** forceOutOfStock=true //*** time check 4 (0.01005s elapsed) //*** public_mod_structuredData_renderJsonByItemId found //*** public_mod_structuredData enabled //*** mod_structuredData: Not included because dedicated Structure Data File is enabled. //*** time check 5 (0.01015s elapsed) //*** mod_storeClosed called //*** time check 6 (0.01063s elapsed) //*** time check 7 (0.01065s elapsed) var pdServerTime = new Date("2024-05-11T14:16:08-05:00"); var pdProductId = "index"; var productIdListRewardsCsv = "bob-revolution-flex-3-duallie-lunar-black-new-logo,britax-grow-with-you-clicktight-plus-booster-car-seat-jet-safewash,bob-alterrain-jogging-stroller-melange-black,maxi-cosi-pria-max-3-in-1-convertible-car-seat-nomad-black,maxi-cosi-gia-xp-3-wheel-travel-system-midnight-black,maxi-cosi-mico-30-infant-car-seat-polished-pebble-purecosi,maxi-cosi-zelia-2-travel-system-northern-grey,chicco-nextfit-zip-convertible-car-seat-vivaci,chicco-nextfit-ix-convertible-car-seat-charm,britax-grow-with-you-clicktight-booster-car-seat-mulberry,maxi-cosi-mico-30-infant-car-seat-radish-ruby-purecosi,maxi-cosi-mico-30-infant-car-seat-slated-sky-purecosi,britax-grow-with-you-clicktight-booster-car-seat-cowmooflage,chicco-keyfit-35-infant-car-seat-iris,chicco-bravo-le-trio-travel-system-latte,chicco-fit2-air-rear-facing-infant-and-toddler-car-seat-vero,chicco-bravo-trio-travel-system-brooklyn,chicco-tre-performance-jogging-stroller-titan,chicco-corso-le-modular-travel-system-veranda,chicco-fit4-4-in-1-convertible-car-seat-stratosphere,chicco-kidfit-zip-2-in-1-belt-positioning-booster-car-seat-steel-grey,chicco-myfit-harness-booster-car-seat-fathom,chicco-nextfit-ix-zip-convertible-car-seat-crux,chicco-onefit-cleartex-all-in-one-convertible-car-seat-drift,chicco-viaro-travel-system-birch,chicco-activ3-jogging-travel-system-solar,chicco-close-to-you-bedside-bassinet-heather-grey,chicco-myfit-zip-harness-booster-car-seat-nightfall,chicco-kidfit-zip-air-plus-2-in-1-belt-positioning-booster-seat-atmos,chicco-nextfit-max-zip-air-convertible-car-seat-atmosphere,chicco-nextfit-zip-max-extended-use-convertible-car-seat-q-collection,chicco-bravofor2-standing-sitting-double-stroller-iron,chicco-caddy-hook-on-chair-vapor,bugaboo-donkey3-duo-complete-stroller-bundle-black-black,bugaboo-fox2-turtle-one-travel-system-bundle-black-black-black-black,bugaboo-fox3-complete-stroller-black-midnight-black-misty-white,bugaboo-donkey3-mono-complete-stroller-black-black-black"; var productIdListCsv = "bob-revolution-flex-3-duallie-lunar-black-new-logo,bob-revolution-flex-3-duallie-lunar-black-new-logo,bob-revolution-flex-3-duallie-lunar-black-new-logo,britax-grow-with-you-clicktight-plus-booster-car-seat-jet-safewash,britax-grow-with-you-clicktight-plus-booster-car-seat-jet-safewash,britax-grow-with-you-clicktight-plus-booster-car-seat-jet-safewash,bob-alterrain-jogging-stroller-melange-black,bob-alterrain-jogging-stroller-melange-black,bob-alterrain-jogging-stroller-melange-black,maxi-cosi-pria-max-3-in-1-convertible-car-seat-nomad-black,maxi-cosi-pria-max-3-in-1-convertible-car-seat-nomad-black,maxi-cosi-pria-max-3-in-1-convertible-car-seat-nomad-black,maxi-cosi-gia-xp-3-wheel-travel-system-midnight-black,maxi-cosi-gia-xp-3-wheel-travel-system-midnight-black,maxi-cosi-gia-xp-3-wheel-travel-system-midnight-black,maxi-cosi-mico-30-infant-car-seat-polished-pebble-purecosi,maxi-cosi-mico-30-infant-car-seat-polished-pebble-purecosi,maxi-cosi-mico-30-infant-car-seat-polished-pebble-purecosi,maxi-cosi-zelia-2-travel-system-northern-grey,maxi-cosi-zelia-2-travel-system-northern-grey,maxi-cosi-zelia-2-travel-system-northern-grey,chicco-nextfit-zip-convertible-car-seat-vivaci,chicco-nextfit-zip-convertible-car-seat-vivaci,chicco-nextfit-zip-convertible-car-seat-vivaci,chicco-nextfit-ix-convertible-car-seat-charm,chicco-nextfit-ix-convertible-car-seat-charm,chicco-nextfit-ix-convertible-car-seat-charm,britax-grow-with-you-clicktight-booster-car-seat-mulberry,britax-grow-with-you-clicktight-booster-car-seat-mulberry,britax-grow-with-you-clicktight-booster-car-seat-mulberry,maxi-cosi-mico-30-infant-car-seat-radish-ruby-purecosi,maxi-cosi-mico-30-infant-car-seat-radish-ruby-purecosi,maxi-cosi-mico-30-infant-car-seat-radish-ruby-purecosi,maxi-cosi-mico-30-infant-car-seat-slated-sky-purecosi,maxi-cosi-mico-30-infant-car-seat-slated-sky-purecosi,maxi-cosi-mico-30-infant-car-seat-slated-sky-purecosi,britax-grow-with-you-clicktight-booster-car-seat-cowmooflage,britax-grow-with-you-clicktight-booster-car-seat-cowmooflage,britax-grow-with-you-clicktight-booster-car-seat-cowmooflage,chicco-keyfit-35-infant-car-seat-iris,chicco-keyfit-35-infant-car-seat-iris,chicco-keyfit-35-infant-car-seat-iris,chicco-bravo-le-trio-travel-system-latte,chicco-bravo-le-trio-travel-system-latte,chicco-bravo-le-trio-travel-system-latte,chicco-fit2-air-rear-facing-infant-and-toddler-car-seat-vero,chicco-fit2-air-rear-facing-infant-and-toddler-car-seat-vero,chicco-fit2-air-rear-facing-infant-and-toddler-car-seat-vero,chicco-bravo-trio-travel-system-brooklyn,chicco-bravo-trio-travel-system-brooklyn,chicco-bravo-trio-travel-system-brooklyn,chicco-nextfit-ix-convertible-car-seat-charm,chicco-nextfit-ix-convertible-car-seat-charm,chicco-nextfit-ix-convertible-car-seat-charm,chicco-tre-performance-jogging-stroller-titan,chicco-tre-performance-jogging-stroller-titan,chicco-tre-performance-jogging-stroller-titan,chicco-corso-le-modular-travel-system-veranda,chicco-corso-le-modular-travel-system-veranda,chicco-corso-le-modular-travel-system-veranda,chicco-fit4-4-in-1-convertible-car-seat-stratosphere,chicco-fit4-4-in-1-convertible-car-seat-stratosphere,chicco-fit4-4-in-1-convertible-car-seat-stratosphere,chicco-kidfit-zip-2-in-1-belt-positioning-booster-car-seat-steel-grey,chicco-kidfit-zip-2-in-1-belt-positioning-booster-car-seat-steel-grey,chicco-myfit-harness-booster-car-seat-fathom,chicco-myfit-harness-booster-car-seat-fathom,chicco-myfit-harness-booster-car-seat-fathom,chicco-nextfit-ix-zip-convertible-car-seat-crux,chicco-nextfit-ix-zip-convertible-car-seat-crux,chicco-nextfit-ix-zip-convertible-car-seat-crux,chicco-onefit-cleartex-all-in-one-convertible-car-seat-drift,chicco-onefit-cleartex-all-in-one-convertible-car-seat-drift,chicco-onefit-cleartex-all-in-one-convertible-car-seat-drift,chicco-viaro-travel-system-birch,chicco-viaro-travel-system-birch,chicco-viaro-travel-system-birch,chicco-activ3-jogging-travel-system-solar,chicco-activ3-jogging-travel-system-solar,chicco-activ3-jogging-travel-system-solar,chicco-close-to-you-bedside-bassinet-heather-grey,chicco-close-to-you-bedside-bassinet-heather-grey,chicco-close-to-you-bedside-bassinet-heather-grey,chicco-myfit-zip-harness-booster-car-seat-nightfall,chicco-myfit-zip-harness-booster-car-seat-nightfall,chicco-myfit-zip-harness-booster-car-seat-nightfall,chicco-kidfit-zip-air-plus-2-in-1-belt-positioning-booster-seat-atmos,chicco-kidfit-zip-air-plus-2-in-1-belt-positioning-booster-seat-atmos,chicco-kidfit-zip-air-plus-2-in-1-belt-positioning-booster-seat-atmos,chicco-nextfit-max-zip-air-convertible-car-seat-atmosphere,chicco-nextfit-max-zip-air-convertible-car-seat-atmosphere,chicco-nextfit-max-zip-air-convertible-car-seat-atmosphere,chicco-nextfit-zip-max-extended-use-convertible-car-seat-q-collection,chicco-nextfit-zip-max-extended-use-convertible-car-seat-q-collection,chicco-nextfit-zip-max-extended-use-convertible-car-seat-q-collection,chicco-bravofor2-standing-sitting-double-stroller-iron,chicco-bravofor2-standing-sitting-double-stroller-iron,chicco-bravofor2-standing-sitting-double-stroller-iron,chicco-caddy-hook-on-chair-vapor,chicco-caddy-hook-on-chair-vapor,chicco-caddy-hook-on-chair-vapor,bugaboo-donkey3-duo-complete-stroller-bundle-black-black,bugaboo-donkey3-duo-complete-stroller-bundle-black-black,bugaboo-fox2-turtle-one-travel-system-bundle-black-black-black-black,bugaboo-fox2-turtle-one-travel-system-bundle-black-black-black-black,bugaboo-fox3-complete-stroller-black-midnight-black-misty-white,bugaboo-fox3-complete-stroller-black-midnight-black-misty-white,bugaboo-fox3-complete-stroller-black-midnight-black-misty-white,bugaboo-donkey3-mono-complete-stroller-black-black-black"; //************************************************ //************ JS/CSS FILE ROUTINES ************* //************************************************ function pdLoadJsCssFile(filename, filetype){ if (filetype=="js") { var fileref=document.createElement('script'); fileref.setAttribute("type","text/javascript"); fileref.setAttribute("async",true); fileref.setAttribute("src", filename); } else if (filetype=="css") { var fileref=document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", filename); } if (typeof fileref!="undefined") document.getElementsByTagName("head")[0].appendChild(fileref); } function pdAddStyle(css) { var style = document.createElement("style"); style.innerHTML = css; document.getElementsByTagName("body")[0].appendChild(style); } //*** time check 8 (0.01084s elapsed) /* pdGetElementsByClassName -- Revised to avoid JS conflicts with libraries that override native "getElementsByClassName" browser function in IE Developed by Robert Nyman, http://www.robertnyman.com Code/licensing: http://code.google.com/p/getelementsbyclassname/ */ var pdGetElementsByClassName = function (className, tag, elm){ var ieVersion = getInternetExplorerVersion(); if (ieVersion == -1 && document.getElementsByClassName) { pdGetElementsByClassName = function (className, tag, elm) { elm = elm || document; var elements = elm.getElementsByClassName(className), nodeName = (tag)? new RegExp("\b" + tag + "\b", "i") : null, returnElements = [], current; for(var i=0, il=elements.length; i -1) { if(signatureList[i] == 'android') { //*** ONLY CONSIDER android a mobile device if "mobile" is also present in user agent string if(agent.indexOf("mobile") > -1) isMobile = true; } else { isMobile = true; } } } return isMobile; } function pdIsIpad() { var isIpad = false; var signatureList = new Array('ipad'); var agent = navigator.userAgent.toLowerCase(); for(var i=0;i -1) isIpad = true; } return isIpad; } function pdIsTablet() { var isTablet = false; var signatureList = new Array('ipad', 'android'); var agent = navigator.userAgent.toLowerCase(); for(var i=0;i -1) { isTablet = true; //*** ASSUME TABLET if(signatureList[i] == 'android') { //*** ONLY CONSIDER android a mobile device if "mobile" is also present in user agent string if(agent.indexOf("mobile") > -1) isTablet = false; } else { isTablet = true; } } } return isTablet; } function pdFormatCurrency(num, includeDollarSign) { num = num.toString().replace(/$|\,/g,''); if(isNaN(num)) num = "0"; sign = (num == (num = Math.abs(num))); num = Math.floor(num*100+0.50000000001); cents = num%100; num = Math.floor(num/100).toString(); if(cents<10) cents = "0" + cents; for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++) num = num.substring(0,num.length-(4*i+3))+','+ num.substring(num.length-(4*i+3)); var returnValue = (((sign)?'':'-') + num + '.' + cents); if(includeDollarSign == true) returnValue = "$" + returnValue; return returnValue; } function pdFindParentForm(element) { var elm,parentForm; for (elm = element.parentNode; elm; elm = elm.parentNode) { if(elm.tagName.toLowerCase() == "form") { parentForm = elm; break; } } return parentForm; } function pdHideForLoggedInUser() { var hideList = pdGetElementsByClassName("pdHideForLoggedInUser", null); for(var i=0;i'; // Check if the container exists if (container) { // Find the div with the class "pditem-availability" within the container var availabilityDiv = container.querySelector('.pditem-availability'); // Check if the target div is found if (availabilityDiv) { // Replace the content of the div availabilityDiv.outerHTML = stockMessage; } } } function pdShowItemAsOutOfStock(container) { var stockMessage = 'Out of Stock'; // Check if the container exists if (container) { // Find the div with the class "pditem-availability" within the container var availabilityDiv = container.querySelector('.pditem-availability'); // Check if the target div is found if (availabilityDiv) { // Replace the content of the div availabilityDiv.outerHTML = stockMessage; } } } pdUpdateQtyInStockDisplay(); //*** time check 10a (0.01139s elapsed) //*** mod_questionsAndAnswers //*** searchhere: test //*** js for interactive questions and answers //*** js for most helpful answers jQuery(document).ready(function(){ var answerIdList = new Array(); for (var i = 0; i < answerIdList.length; i++) { var answerId = answerIdList[i]; console.log(jQuery("div[answerId='"+answerIdList[i]+"']")); jQuery("div[answerId='"+answerIdList[i]+"']").attr("style", "display: block"); } });//*** js for pausing questions //*** Q&A: pauseQuestions != true //*** time check 11 (0.01262s elapsed) //*** time check 12 (0.01263s elapsed) $(".abr-flex-favorite-link").on("click", function(){ var pdAddToFavoritesAction = "https://myaccount.albeebaby.com/mod_favorites/ajax/favoritesAddItemNew.php"; var itemId = jQuery(this).parent().parent().data("data-itemid"); var productId = jQuery(this).parent().parent().data("productId"); var item; if(!isBlank(itemId)){ item = itemId; }else{ item = productId; } var pdAddToFavoritesButton = jQuery(this); if (!item) { console.log("Unable to identify item id for adding to favorites"); return false; } var data = { vwitem: item } //**** IF ITEM IS ALREADY FAVORITED, DISABLE ACTIONS AND DIRECT TO CUSTOMER FAVORITES *** var pdItemAlreadyInFavorites = jQuery(this).children("div").hasClass("is-favorite"); var pdItemAddedToFavorites = jQuery(this).children("div").hasClass("is-added"); if(pdItemAlreadyInFavorites == true || pdItemAddedToFavorites == true){ console.log("Item is already in customer favorites"); return false; } jQuery.ajax({ 'async': false, 'global': false, 'xhrFields': {withCredentials: true}, 'type': "POST", 'url': pdAddToFavoritesAction, 'data': data, 'crossDomain': true, 'success': function (response) { if (response.indexOf("<") == 0){ response = response.slice(response.indexOf(">")+1); } var data = jQuery.parseJSON(response); console.log(data); if (data['loggedIn'] == true){ jQuery(pdAddToFavoritesButton).addClass("is-favorite"); console.log("Success adding to favorites"); } else{ console.log("User not logged in adding to favorites"); } }, 'error': function(xhr, status, error){ var errorMessage = xhr.status + ': ' + xhr.statusText console.log('Error - ' + errorMessage); } }); }); function pdAddToFavorites(orderForm,index,productUrl) { var pdAddToFavoritesAction = "https://myaccount.albeebaby.com/mod_favorites/favoritesAddItem.php"; if(pdIsBlank(index)) index = 0; var item = "vwitem" + index; var itemAttr = "vwattr" + index + "_"; //*** CAN'T FIND MULTIFORM ELEMENT? FALL BACK TO SINGLE ITEM CASE if(typeof orderForm[item] == "undefined") { item = "item"; itemAttr = "vwattr_"; } //******** ATTACH PRODUCT ID INPUT ************** if(item != "item") { var inputProductId = document.createElement("INPUT"); inputProductId.type = "hidden"; inputProductId.name = "add-single-favorites"; inputProductId.value = index; orderForm.appendChild(inputProductId); } if(productUrl == "autoDetect") productUrl = String(document.location); if(!pdIsBlank(productUrl)) { var inputOptions = document.createElement("INPUT"); inputOptions.type = "hidden"; inputOptions.name = "productUrl"; inputOptions.value = productUrl; orderForm.appendChild(inputOptions); } var tempAction = orderForm.action; var copiedQueryString = ""; var queryStringPosition = tempAction.indexOf("?"); if(queryStringPosition > -1) { copiedQueryString = tempAction.substring(queryStringPosition, tempAction.length); copiedQueryString = copiedQueryString.replace("+", "%20"); } orderForm.action=pdAddToFavoritesAction + copiedQueryString; if(orderForm.target != "_top") orderForm.target = ""; //*** COMPAT W/ SCFC orderForm.submit(); orderForm.action = tempAction; orderForm.removeChild(inputProductId); orderForm.removeChild(inputOptions); return false; } //*** mod_favorites enabled //*** public_mod_favorites_renderAddToFavoritesButton found jQuery(document).ready(function(){ jQuery(".abr-prod-add-fav-btn-wrapper").each(function(){ var itemId = jQuery(this).attr("data-itemid"); var productId = jQuery(this).attr("productId"); var item; if(!isBlank(itemId)){ item = itemId; }else{ item = productId; } var orderForm = jQuery(this).parents('form:first'); jQuery(this).removeAttr('onClick'); var pdAddToFavoritesButton = jQuery(this); optionString = jQuery(orderForm).serialize(); var data = { vwitem: item, productOptionList: optionString } jQuery.ajax({ // 'async': false, 'global': false, 'xhrFields': {withCredentials: true}, 'type': "POST", 'url': "https://myaccount.albeebaby.com//mod_favorites/ajax/favoritesCheckItemFavorited.php?isCategory=false", 'data': data, 'crossDomain': true, 'success': function (response) { var data = jQuery.parseJSON(response); if (data['loggedIn'] == true){ if (data['message'] == 'success'){ jQuery(pdAddToFavoritesButton).html('
'); } else if (data['error'] == ""){ jQuery(pdAddToFavoritesButton).html(data['message']); // jQuery(pdAddToFavoritesButton).prop("onclick",null).off("click"); } else { jQuery(pdAddToFavoritesButton).html('
'); } } else{ window.location.href = data['message']; } }, 'error': function(xhr, status, error){ var errorMessage = xhr.status + ': ' + xhr.statusText alert('Error - ' + errorMessage); } }); }); }); jQuery(document).on("click", ".abr-prod-add-fav-btn-wrapper", function (event) { var itemId = jQuery(this).attr("data-itemid"); var productId = jQuery(this).attr("productId"); var item; if(!isBlank(itemId)){ item = itemId; }else{ item = productId; } var orderForm = jQuery(this).parents('form:first'); var pdAddToFavoritesButton = jQuery(this); optionString = jQuery(orderForm).serialize(); var data = { vwitem: item, productOptionList: optionString } //**** IF ITEM IS ALREADY FAVORITED, DISABLE ACTIONS AND DIRECT TO CUSTOMER FAVORITES *** var pdItemAlreadyInFavorites = jQuery(this).children("div").hasClass("is-favorite"); var pdErrorAddingToFavorites = jQuery(this).children("div").hasClass("is-error"); var pdItemAddedToFavorites = jQuery(this).children("div").hasClass(" is-added"); var pdItemAlreadyInFavoritesSection = jQuery(this).children("div").hasClass("is-favorite"); var pdErrorAddingToFavoritesSection = jQuery(this).children("div").hasClass("is-error"); var pdItemAddedToFavoritesSection = jQuery(this).children("div").hasClass("is-added"); if(pdItemAlreadyInFavorites == true || pdErrorAddingToFavorites == true || pdItemAddedToFavorites == true || pdItemAlreadyInFavoritesSection == true || pdErrorAddingToFavoritesSection == true || pdItemAddedToFavoritesSection == true){ console.log("Item is already in customer favorites"); pdItemAddedToFavorites window.location.href = "https://myaccount.albeebaby.com//mod_favorites/favorites.php"; return false; } jQuery.ajax({ // 'async': false, 'global': false, 'xhrFields': {withCredentials: true}, 'type': "POST", 'url': "https://myaccount.albeebaby.com//mod_favorites/ajax/favoritesAddItemNew.php?isCategory=false", 'data': data, 'crossDomain': true, 'success': function (response) { if (response.indexOf("<") == 0){ response = response.slice(response.indexOf(">")+1); } var data = jQuery.parseJSON(response); // console.log(data); if (data['loggedIn'] == true){ jQuery(pdAddToFavoritesButton).html(data['message']); } else{ window.location.href = data['message'] + "?productList=" + encodeURIComponent(data['productList']); } }, 'error': function(xhr, status, error){ var errorMessage = xhr.status + ': ' + xhr.statusText alert('Error - ' + errorMessage); } }); event.stopPropagation(); event.preventDefault(); }); //*** time check 13 (0.01284s elapsed) //*** time check 14 (0.01316s elapsed) jQuery("#pdLoggedInDisplay").html(""); //*** time check 15 (0.01485s elapsed) if (typeof pdPerformLoginActions === "function") { pdPerformLoginActions(false); } //*** time check 16 (0.01485s elapsed) //*** time check 17 (0.01487s elapsed) //*** time check 18 (0.01489s elapsed) //*** time check 19 (0.01489s elapsed) //*** time check 20 (0.01581s elapsed) //*** mod_listrak enabled //*** public_mod_listrak_getPageScript found jQuery(".pdOneEmailForm").children("form").addClass("pdOneCustomForm"); jQuery(".pdOneCustomForm").submit(function(e){ //capture form submited ("this" may be replaced) var form = this; if (jQuery(this).attr('submissionType') != 'static'){ //prevent form from submitting e.preventDefault(e); var formCode = jQuery(form).parent().attr('formId'); var inputList = []; jQuery(form).find('input').each(function(){ if (jQuery(this).attr('type') != 'submit'){ //Build input list to push to ajax var inputName = jQuery(this).attr('name'); var inputValue = jQuery(this).val(); inputList.push([inputName,inputValue]); } }); jQuery.ajax({ 'async': false, 'global': false, 'xhrFields': {withCredentials: true}, 'type': "POST", 'crossDomain': true, 'url': "https://myaccount.albeebaby.com//mod_listrak/ajax/recordEmailForm.php", data: {formCode:formCode, inputList:inputList}, 'success': function(result) { console.log(result); } }); } else { var formCode = jQuery(form).parent().attr('formId'); jQuery(this).append('') } }); if (typeof pdLoadJsCssFile == 'function') { pdLoadJsCssFile("https://myaccount.albeebaby.com//mod_coreAdmin/jquery/jquery-ui-1.11.4/jquery-ui.min.js", "js"); pdLoadJsCssFile("https://myaccount.albeebaby.com//mod_coreAdmin/jquery/jquery-ui-1.11.4/jquery-ui.min.css", "css"); pdLoadJsCssFile("https://myaccount.albeebaby.com//mod_coreAdmin/jquery/jquery-ui-1.11.4/jquery-ui.structure.min.css", "css"); pdLoadJsCssFile("https://myaccount.albeebaby.com//mod_coreAdmin/jquery/jquery-ui-1.11.4/jquery-ui.theme.min.css", "css"); } try {jQuery(".datepicker").datepicker();} catch(e) {}//*** time check 21 (0.01706s elapsed) //*** mod_productDisplay enabled //*** public_mod_productDisplay_pageScript found //*** mod_productDisplay_pageScript cachingEnabled: |true| //*** time check mod_productDisplay_pageScript 1 (0.00095s elapsed) //*** time check mod_productDisplay_pageScript 2 (0.13249s elapsed) //*** time check mod_productDisplay_pageScript 3 (0.13291s elapsed) //*** time check mod_productDisplay_pageScript 4 (0.13626s elapsed) //*** time check mod_productDisplay_pageScript 5 (0.13671s elapsed) //*** time check mod_productDisplay_pageScript 5 (0.13728s elapsed) //*** time check mod_productDisplay_pageScript 6 (0.13768s elapsed) /* libraries for 184 */ /* libraries for 222 */ jQuery(".pdOneProductDisplay[displayId=homepage_group]").html(` `); jQuery('head').append(`/* style for 184 */ /* style for 222 */ `); //*** Start: 1715454969 //*** End: 1715454969 //*** Total Time: 0 //*** time check 22 (0.16438s elapsed) //********************************* //*** BEGIN mod_promotionCenter *** //********************************* //*** mod_promotionCenter_getRenderedPageScript3: 1 pdLoadJsCssFile("https://albeebaby.practicaldatacore.com//cdn/mod_promotionCenter/pdPromotionCenter.css?cb=1906061", "css"); //*** retrieving data jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='bob-alterrain-jogging-stroller-melange-black']").html("
$429.99
$649.99
33.8%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='britax-grow-with-you-clicktight-booster-car-seat-clean-comfort']").html("
$246.99
$379.99
35%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='britax-marathon-clicktight-convertible-car-seat-cool-flow-teal']").html("
$189.99
$339.99
44.1%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-fit2-air-rear-facing-infant-and-toddler-car-seat-vero']").html("
$199.99
$359.99
44.4%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-fit4-4-in-1-convertible-car-seat-stratosphere']").html("
$239.99
$379.99
36.8%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-kidfit-2-in-1-belt-positioning-booster-car-seat-jasper']").html("
$78.00
$109.99
29.1%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-kidfit-zip-2-in-1-belt-positioning-booster-car-seat-steel-grey']").html("
$86.99
$129.99
33.1%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-kidfit-zip-air-plus-2-in-1-belt-positioning-booster-seat-atmos']").html("
$112.49
$149.99
25%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-nextfit-ix-convertible-car-seat-charm']").html("
$189.99
$299.99
36.7%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-nextfit-ix-zip-convertible-car-seat-crux']").html("
$235.99
$349.99
32.6%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-nextfit-max-zip-air-convertible-car-seat-atmosphere']").html("
$246.99
$349.99
29.4%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-nextfit-zip-max-extended-use-convertible-car-seat-q-collection']").html("
$295.99
$369.99
20%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='chicco-viaro-travel-system-birch']").html("
$279.99
$399.99
30%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-aton-2-infant-car-seat-deep-black']").html("
$199.99
$279.95
28.6%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-aton-2-sensorsafe-infant-car-seat-pepper-black']").html("
$215.99
$299.95
28%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-aton-m-sensorsafe-infant-car-seat-pepper-black']").html("
$279.96
$399.95
30%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-balios-s-lux-stroller-deep-black']").html("
$369.99
$549.95
32.7%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-beezy-compact-stroller-classic-beige']").html("
$239.99
$399.95
40%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-eezy-s-twist-2-stroller-river-blue']").html("
$199.99
$399.95
50%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-eternis-s-all-in-one-car-seat-manhattan-grey']").html("
$188.00
$329.95
43%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-melio-carbon-2-stroller-deep-black']").html("
$269.99
$549.95
50.9%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-priam-complete-stroller-chrome-black-true-red']").html("
$499.99
$999.95
50%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-sirona-s-sensorsafe-2-1-convertible-car-seat-urban-black']").html("
$399.95
$549.95
27.3%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='cybex-talos-s-lux-all-terrain-stroller-river-blue']").html("
$289.99
$599.95
51.7%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='gb-pockit-plus-all-city-stroller-night-blue']").html("
$239.99
$329.95
27.3%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='larktale-caravan-stroller-wagon-complete-mornington-gray-byron-black']").html("
$389.99
$599.99
35%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='maxi-cosi-pria-max-all-in-one-convertible-car-seat-tetra-blue']").html("
$174.99
$349.99
50%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='maxi-cosi-pria-max-all-in-one-convertible-car-seat-tetra-graphite']").html("
$249.99
$349.99
28.6%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='maxi-cosi-zelia-2-travel-system-northern-grey']").html("
$314.99
$449.99
30%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='silver-cross-jet-3-stroller-black']").html("
$337.49
$449.99
25%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='tiny-love-take-along-bassinet-magical-tales']").html("
$86.99
$129.99
33.1%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='tripp-trapp-high-chair-and-cushion-with-stokke-tray-white-stars-silver']").html("
$335.20
$419.00
20%
"); jQuery("div.pdOnePromotionDisplay[bannerType='salePricePromotionProductListDisplay'][itemId='valco-snap-duo-trend-stroller-grey-marle']").html("
$637.45
$749.95
15%
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='britax-grow-with-you-clicktight-booster-car-seat-clean-comfort']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='chicco-activ3-jogging-travel-system-solar']").html("
20% OFF with code: ALBEE20
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='chicco-bravo-trio-travel-system-brooklyn']").html("
20% OFF with code: ALBEE20
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='chicco-bravofor2-standing-sitting-double-stroller-iron']").html("
20% OFF with code: ALBEE20
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='chicco-close-to-you-bedside-bassinet-heather-grey']").html("
20% OFF with code: ALBEE20
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='chicco-myfit-harness-booster-car-seat-fathom']").html("
20% OFF with code: ALBEE20
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='chicco-myfit-zip-harness-booster-car-seat-nightfall']").html("
20% OFF with code: ALBEE20
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='chicco-nextfit-max-zip-air-convertible-car-seat-atmosphere']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='chicco-onefit-cleartex-all-in-one-convertible-car-seat-drift']").html("
20% OFF with code: ALBEE20
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='chicco-tre-performance-jogging-stroller-titan']").html("
20% OFF with code: ALBEE20
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='cybex-aton-2-infant-car-seat-deep-black']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='cybex-aton-2-sensorsafe-infant-car-seat-pepper-black']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='cybex-balios-s-lux-stroller-deep-black']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='cybex-gazelle-s-2-stroller-black-frame-moon-black']").html("
FREE $329.99 Libelle in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='cybex-talos-s-lux-all-terrain-stroller-river-blue']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='doona-infant-car-seat-nitro-black']").html("
Earn 20% Back in Rewards
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='gb-pockit-plus-all-city-stroller-night-blue']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='larktale-caravan-stroller-wagon-complete-mornington-gray-byron-black']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='maxi-cosi-emme-360-convertible-car-seat-midnight-black']").html("
Earn 20% Back in Rewards
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='maxi-cosi-swift-play-yard-essential-graphite']").html("
Earn 20% Back in Rewards
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='maxi-cosi-zelia-2-travel-system-northern-grey']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='nuna-rava-convertible-car-seat-caviar-black']").html("
Earn 20% Back in Rewards
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='nuna-trvl-pipa-urbn-travel-system-caviar']").html("
Earn 20% Back in Rewards
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='tiny-love-take-along-bassinet-magical-tales']").html("
Extra 5% OFF in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='uppababy-mesa-v2-infant-car-seat-stella-grey-melange']").html("
FREE $29.99 Cabana in Cart!
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='valco-snap-duo-trend-stroller-grey-marle']").html("
Limited Time Sale
"); jQuery("div.pdOnePromotionDisplay[bannerType='productListCallout'][itemId='wonderfold-w4s-2-0-multifunctional-quad-stroller-wagon-charcoal-gray-white-frame']").html("
20% OFF with code: ALBEE20
"); jQuery("div.pdOnePromotionDisplay[bannerType='productPageBanner'][itemId='index']").html(""); var css = ".promo-offer-product-page-banner h2 { background: #f5efe6; border: solid 4px green; padding: 1rem; margin: 0 0 1rem 0; }" var se = document.createElement("style"); se.type = "text/css"; if(se.styleSheet) se.styleSheet.cssText = css; else se.appendChild(document.createTextNode(css)); document.getElementsByTagName("head")[0].appendChild(se); console.log("rotatingBannerTest"); //*** countdownTimerDebug //*** countdownTimerDebugBefore var pdDisplayTimers = function() { var timerObjects = new Array(); var timerList = new Array(); var serverTimeOffset = null; function pdGetCurrentTime() { var currentDate = new Date(); if (serverTimeOffset === null) { serverTimeOffset = 0; if (typeof pdServerTime != 'undefined') { serverTimeOffset = (currentDate - pdServerTime) / 1000; console.log("Setting server time offset to " + serverTimeOffset); } } var dateAdjustedForServerTime = currentDate; dateAdjustedForServerTime.setSeconds(dateAdjustedForServerTime.getSeconds() + serverTimeOffset); return dateAdjustedForServerTime; } //*** "SNEAK PEEK" COUNT UP TIMER *** function pdDisplayCountdownToStart(target, millisecondsRemaining) { var timeRemaining = Math.floor(millisecondsRemaining / 1000); var daysRemaining = 0; var hoursRemaining = 0; var minutesRemaining = 0; var secondsRemaining = 0; var countdownHtml = '
'; var countdownSmHtml = '
'; if (timeRemaining > 0) { daysRemaining = Math.floor(timeRemaining / 86400); hoursRemaining = Math.floor((timeRemaining - (daysRemaining * 86400)) / 3600); minutesRemaining = Math.floor((timeRemaining - (hoursRemaining * 3600) - (daysRemaining * 86400)) / 60); secondsRemaining = timeRemaining - (hoursRemaining * 3600 + minutesRemaining * 60 + daysRemaining * 86400); var daysRemainingPrefix = ""; var daysRemainingPrefixSm = ""; if(daysRemaining == 1) { daysRemainingPrefix = '
' + daysRemaining + 'Day
:
'; daysRemainingPrefixSm = '
' + daysRemaining + 'Day
:
'; } else if(daysRemaining > 1) { daysRemainingPrefix = '
' + daysRemaining + 'Days
:
'; daysRemainingPrefixSm = '
' + daysRemaining + 'Days
:
'; } countdownHtml += daysRemainingPrefix + '
' + pdZeroPad(hoursRemaining) + 'Hrs
:
' + pdZeroPad(minutesRemaining) + 'Min
:
' + pdZeroPad(secondsRemaining) + 'Sec
'; countdownSmHtml += daysRemainingPrefixSm + '
' + pdZeroPad(hoursRemaining) + 'Hrs
:
' + pdZeroPad(minutesRemaining) + 'Min
:
' + pdZeroPad(secondsRemaining) + 'Sec
'; jQuery(".pdCountdown[productId='" + target + "'] span").html(countdownHtml); jQuery(".pdCountdownSm[productId='" + target + "'] span").html(countdownHtml); }else{ //** RELOAD PAGE TO SHOW PROMOTIONAL OFFER MESSAGING *** jQuery(".pdCountdown[productId='" + target + "'] span").html(""); jQuery(".pdCountdownSm[productId='" + target + "'] span").html(""); //location.reload(); setTimeout(location.reload.bind(location), 2000); //*** 5 second delay *** } } function pdDisplayCountdown(target, millisecondsRemaining, millisecondsTotal, countUpTimer=false) { var totalTime = Math.floor(millisecondsTotal / 1000); var timeRemaining = Math.floor(millisecondsRemaining / 1000); var daysRemaining = 0; var hoursRemaining = 0; var minutesRemaining = 0; var secondsRemaining = 0; if (timeRemaining > 0) { daysRemaining = Math.floor(timeRemaining / 86400); hoursRemaining = Math.floor((timeRemaining - (daysRemaining * 86400)) / 3600); minutesRemaining = Math.floor((timeRemaining - (hoursRemaining * 3600) - (daysRemaining * 86400)) / 60); secondsRemaining = timeRemaining - (hoursRemaining * 3600 + minutesRemaining * 60 + daysRemaining * 86400); var countdownHtml = ''; var countdownSmHtml = ''; if (!countUpTimer){ countdownHtml = '
'; countdownSmHtml = '
'; } else { countdownHtml = '
'; countdownSmHtml = '
'; } var daysRemainingPrefix = ""; var daysRemainingPrefixSm = ""; if(daysRemaining == 1) { daysRemainingPrefix = '
1Day
:
'; daysRemainingPrefixSm = '
1Day
:
'; } else if(daysRemaining > 1) { daysRemainingPrefix = '
' + daysRemaining + 'Days
:
'; daysRemainingPrefixSm = '
' + daysRemaining + 'Days
:
'; } countdownHtml += daysRemainingPrefix + '
' + pdZeroPad(hoursRemaining) + 'Hrs
:
' + pdZeroPad(minutesRemaining) + 'Min
:
' + pdZeroPad(secondsRemaining) + 'Sec
'; countdownSmHtml += daysRemainingPrefixSm + '
' + pdZeroPad(hoursRemaining) + 'Hrs
:
' + pdZeroPad(minutesRemaining) + 'Min
:
' + pdZeroPad(secondsRemaining) + 'Sec
'; jQuery(".pdCountdown[productId='" + target + "'] span").html(countdownHtml); jQuery(".pdCountdownSm[productId='" + target + "'] span").html(countdownSmHtml); } else { if (!countUpTimer) { var countdownHtml = '
'; jQuery(".pdCountdown[productId='" + target + "']").html(countdownHtml); jQuery(".pdCountdownSm[productId='" + target + "']").html(countdownSmHtml); } else { jQuery(".pdCountdown[productId='" + target + "']").parent().hide(); jQuery(".pdCountdownSm[productId='" + target + "']").parent().hide(); } } var pctRemaining = Math.round((timeRemaining / totalTime) * 100); if (timeRemaining > 0) { jQuery(".pdCountdownProgbar[productId='" + target + "']").css('width', pctRemaining + '%'); jQuery(".pdCountdownSmProgbar[productId='" + target + "']").css('width', pctRemaining + '%'); } if (timeRemaining <= 0) return false; else return true; } function pdZeroPad(input) { if (String(input).length == 1) input = "0" + String(input); return input; } return function() { if (timerList.length == 0) { timerList = jQuery(".pdCountdown[productId],.pdCountdownSm[productId]").toArray(); for (var i = 0; i < timerList.length; i++) { timerObjects[i] = new Object(); timerObjects[i]["productId"] = timerList[i].getAttribute("productId"); var s = timerList[i].getAttribute("startTime"); timerObjects[i]["startTime"] = new Date(s); var s = timerList[i].getAttribute("finishTime"); timerObjects[i]["finishTime"] = new Date(s); var s = timerList[i].getAttribute("preStartTime"); timerObjects[i]["preStartTime"] = new Date(s); var s = timerList[i].getAttribute("timerType"); if (s == "countUpTimer") {timerObjects[i]["countUpTimer"] = true;}else{timerObjects[i]["countUpTimer"] = false;} timerObjects[i]["completed"] = false; } } var currentTime = pdGetCurrentTime(); var keepRunning = false; for (var i = 0; i < timerObjects.length; i++) { if (timerObjects[i]["completed"] == false) { keepRunning = true; //*** LOGIC TO DECIDE ON DISPLAYING COUNT UP / SNEAK PEEK "COUNTUP" TIMER *** if (currentTime < Math.floor(timerObjects[i]["startTime"]) && currentTime > Math.floor(timerObjects[i]["preStartTime"])) { if (timerObjects[i]["countUpTimer"]) { //*** DISPLAY THE SNEAK PEEK "COUNT UP" TIMER *** timerObjects[i]["timeRemaining"] = Math.floor(timerObjects[i]["startTime"] - currentTime); pdDisplayCountdownToStart( timerObjects[i]["productId"], timerObjects[i]["timeRemaining"] ); } } else { timerObjects[i]["totalTime"] = Math.floor(timerObjects[i]["finishTime"]) - Math.floor(timerObjects[i]["startTime"]); timerObjects[i]["timeRemaining"] = Math.floor(timerObjects[i]["finishTime"] - currentTime); success = pdDisplayCountdown( timerObjects[i]["productId"], timerObjects[i]["timeRemaining"], timerObjects[i]["totalTime"], timerObjects[i]["countUpTimer"] ); if (success == false) timerObjects[i]["completed"] = true; } } } if (keepRunning == false) { console.log("All timers finished."); clearInterval(pdTimer); } }; }(); var pdTimer = setInterval(pdDisplayTimers, 1000); pdDisplayTimers(); //*** countdownTimerDebugAfter //******************************* //*** END mod_promotionCenter *** //******************************* //*** time check 23 (1.37845s elapsed) //*** SEND PROMO INFO TO ALREADY ON-PAGE HANDLER FUNCTION var pdPromo = {}; try{pdHandlePromoInfo(pdPromo)} catch(e) {} //*** SEND PROMO INFO TO ALREADY ON-PAGE HANDLER FUNCTION var pdProductListCalloutHtml = ""; try{pdHandleProductListCallout(pdProductListCalloutHtml)} catch(e) {} //*** time check 24 (1.38244s elapsed) //****************************** //*** BEGIN mod_fbConversion *** //****************************** //*** public_mod_fbConversion_queuePageViewEvent has been called and event created. //**************************** //*** END mod_fbConversion *** //**************************** //*** time check 25 (1.58062s elapsed) //*** time check 26 (1.58355s elapsed) //**** Privacy ****** //*** time check 27 (1.58429s elapsed) //*** time check 28 (1.58624s elapsed) //**** CART ITEM COUNT MESSAGE ***** function pdDisplayCartItemCount() { var pdCartItemCount = pdGetCookie('pdCartItemCount'); if(!pdIsBlank(pdCartItemCount)) { var pdCartItemCountMessage = pdCartItemCount; jQuery('.pdCartItemCountMessage').html(pdCartItemCountMessage); } } pdDisplayCartItemCount(); //*** pageScript end (1.58631s elapsed) //*** time check 29 (1.58632s elapsed)