{ element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='wno2130-novacas-blake-sneaker-black'], .pdRatingStarsWrapper[data-itemid='wno2130-novacas-blake-sneaker-black']"); newHtml = "";
elements.forEach(element => { element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='sod120-odeme-large-gusset-pouch-mamoncillo'], .pdRatingStarsWrapper[data-itemid='sod120-odeme-large-gusset-pouch-mamoncillo']"); newHtml = "";
elements.forEach(element => { element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='woh455-olsen-haus-no9ankleboot-camel'], .pdRatingStarsWrapper[data-itemid='woh455-olsen-haus-no9ankleboot-camel']"); newHtml = "";
elements.forEach(element => { element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='wfi130-fidelity-jeans-axl-adanac-relaxed-skinny-jean-towncountry-denim'], .pdRatingStarsWrapper[data-itemid='wfi130-fidelity-jeans-axl-adanac-relaxed-skinny-jean-towncountry-denim']"); newHtml = "";
elements.forEach(element => { element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='wla250-lanston-oversized-vest-black'], .pdRatingStarsWrapper[data-itemid='wla250-lanston-oversized-vest-black']"); newHtml = "";
elements.forEach(element => { element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='wpr4135-prana-kara-jean-cargo-green'], .pdRatingStarsWrapper[data-itemid='wpr4135-prana-kara-jean-cargo-green']"); newHtml = "
(2 reviews)";
elements.forEach(element => { element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='wen230-splendid-studio-treatment-pant-river-rock-acid-wash'], .pdRatingStarsWrapper[data-itemid='wen230-splendid-studio-treatment-pant-river-rock-acid-wash']"); newHtml = "";
elements.forEach(element => { element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='wti100-tilo-poppy-scarf-blue-flower'], .pdRatingStarsWrapper[data-itemid='wti100-tilo-poppy-scarf-blue-flower']"); newHtml = "";
elements.forEach(element => { element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='wto130-tonic-uptown-legging-black'], .pdRatingStarsWrapper[data-itemid='wto130-tonic-uptown-legging-black']"); newHtml = "";
elements.forEach(element => { element.innerHTML = newHtml; });
elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='wsr100-sub-urban-riot-womens-kale-sweatshirt-white-green'], .pdRatingStarsWrapper[data-itemid='wsr100-sub-urban-riot-womens-kale-sweatshirt-white-green']"); newHtml = "";
elements.forEach(element => { element.innerHTML = newHtml; });
pdStarsRefreshFlag = false;
}
}
pdDisplayCategoryStars();
//*** time check 12 (0.32021s elapsed)
function pdAddToFavorites(orderForm,index,productUrl) {
var pdAddToFavoritesAction = "https://myaccount.vickerey.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;
}
//*** time check 13 (0.32716s elapsed)
//*** time check 14 (0.32717s elapsed)
if(jQuery('#pd_pdOneBanner').length) {
//*** BANNER ALREADY EXISTS, DO NOT RE-INSERT
} else {
jQuery("body").prepend('');
}
jQuery("#pd_pdOneBanner").html("Sign In");
//*** time check 15 (0.36475s elapsed)
if (typeof pdPerformLoginActions === "function") {
pdPerformLoginActions(false);
}
//*** time check 16 (0.36587s elapsed)
//*** time check 17 (0.36894s elapsed)
//*** time check 18 (0.37029s elapsed)
//*** time check 19 (0.37029s elapsed)
//*** time check 20 (0.37369s elapsed)
//*** time check 21 (0.3866s elapsed)
//*** time check 22 (0.38896s elapsed)
//*********************************
//*** BEGIN mod_promotionCenter ***
//*********************************
//*** PROMO OFFER NOT FOUND FOR THIS PAGE ID
//*** mod_promotionCenter_getRenderedPageScript3: 0
pdLoadJsCssFile("https://vickerey.practicaldatacore.com//cdn/mod_promotionCenter/pdPromotionCenter.css?cb=1937169", "css");
//*** retrieving data
//*** 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 (0.42177s 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 (0.43959s elapsed)
//*** mod_fbConversion is NOT enabled!
//*** time check 25 (0.44061s elapsed)
//*** time check 26 (0.44154s elapsed)
//*** time check 27 (0.44322s elapsed)
//*** time check 28 (0.44412s elapsed)
//**** CART ITEM COUNT MESSAGE *****
function pdDisplayCartItemCount() {
var pdCartItemCount = pdGetCookie('pdCartItemCount');
if(!pdIsBlank(pdCartItemCount)) {
var pdCartItemCountMessage = pdCartItemCount;
jQuery('.pdCartItemCountMessage').html(pdCartItemCountMessage);
}
}
pdDisplayCartItemCount();
//*** pageScript end (0.4454s elapsed)
//*** time check 29 (0.4454s elapsed)