console.log('JWT blank. Not taking any login action.'); //************************************************ //********** GLOBAL PD/ONE VARIABLES ************* //************************************************ var pdCategoryId = "705"; //************************************************ //************ 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); } //************************************************ //****** PD/ONE FEATURE SPECIFIC CSS/JS ********* //************************************************ //*** CATEGORY ID:705**** //*** PRODUCT ID:**** //*** PRODUCT ID LIST CSV:**** //**** INCLUDE CATEGORY PAGE JAVASCRIPT **** var pdStarsRefreshFlag = true; function pdDisplayCategoryStars() { if(pdStarsRefreshFlag == true) { document.querySelectorAll("div[productId='77015'], div[data-itemid='77015'], .pdRatingStarsWrapper[data-itemid='77015']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='79981'], div[data-itemid='79981'], .pdRatingStarsWrapper[data-itemid='79981']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80014'], div[data-itemid='80014'], .pdRatingStarsWrapper[data-itemid='80014']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80420'], div[data-itemid='80420'], .pdRatingStarsWrapper[data-itemid='80420']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80421'], div[data-itemid='80421'], .pdRatingStarsWrapper[data-itemid='80421']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80422'], div[data-itemid='80422'], .pdRatingStarsWrapper[data-itemid='80422']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80424'], div[data-itemid='80424'], .pdRatingStarsWrapper[data-itemid='80424']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80438'], div[data-itemid='80438'], .pdRatingStarsWrapper[data-itemid='80438']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80440'], div[data-itemid='80440'], .pdRatingStarsWrapper[data-itemid='80440']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80444'], div[data-itemid='80444'], .pdRatingStarsWrapper[data-itemid='80444']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80446'], div[data-itemid='80446'], .pdRatingStarsWrapper[data-itemid='80446']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80447'], div[data-itemid='80447'], .pdRatingStarsWrapper[data-itemid='80447']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80458'], div[data-itemid='80458'], .pdRatingStarsWrapper[data-itemid='80458']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80459'], div[data-itemid='80459'], .pdRatingStarsWrapper[data-itemid='80459']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80460'], div[data-itemid='80460'], .pdRatingStarsWrapper[data-itemid='80460']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80461'], div[data-itemid='80461'], .pdRatingStarsWrapper[data-itemid='80461']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80462'], div[data-itemid='80462'], .pdRatingStarsWrapper[data-itemid='80462']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80467'], div[data-itemid='80467'], .pdRatingStarsWrapper[data-itemid='80467']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80469'], div[data-itemid='80469'], .pdRatingStarsWrapper[data-itemid='80469']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80472'], div[data-itemid='80472'], .pdRatingStarsWrapper[data-itemid='80472']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80475'], div[data-itemid='80475'], .pdRatingStarsWrapper[data-itemid='80475']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80492'], div[data-itemid='80492'], .pdRatingStarsWrapper[data-itemid='80492']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80493'], div[data-itemid='80493'], .pdRatingStarsWrapper[data-itemid='80493']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80494'], div[data-itemid='80494'], .pdRatingStarsWrapper[data-itemid='80494']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80495'], div[data-itemid='80495'], .pdRatingStarsWrapper[data-itemid='80495']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80496'], div[data-itemid='80496'], .pdRatingStarsWrapper[data-itemid='80496']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80499'], div[data-itemid='80499'], .pdRatingStarsWrapper[data-itemid='80499']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80500'], div[data-itemid='80500'], .pdRatingStarsWrapper[data-itemid='80500']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80501'], div[data-itemid='80501'], .pdRatingStarsWrapper[data-itemid='80501']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80504'], div[data-itemid='80504'], .pdRatingStarsWrapper[data-itemid='80504']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80567'], div[data-itemid='80567'], .pdRatingStarsWrapper[data-itemid='80567']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80578'], div[data-itemid='80578'], .pdRatingStarsWrapper[data-itemid='80578']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80580'], div[data-itemid='80580'], .pdRatingStarsWrapper[data-itemid='80580']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80584'], div[data-itemid='80584'], .pdRatingStarsWrapper[data-itemid='80584']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81401'], div[data-itemid='81401'], .pdRatingStarsWrapper[data-itemid='81401']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81420'], div[data-itemid='81420'], .pdRatingStarsWrapper[data-itemid='81420']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81431'], div[data-itemid='81431'], .pdRatingStarsWrapper[data-itemid='81431']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81444'], div[data-itemid='81444'], .pdRatingStarsWrapper[data-itemid='81444']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81459'], div[data-itemid='81459'], .pdRatingStarsWrapper[data-itemid='81459']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81461'], div[data-itemid='81461'], .pdRatingStarsWrapper[data-itemid='81461']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81462'], div[data-itemid='81462'], .pdRatingStarsWrapper[data-itemid='81462']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81474'], div[data-itemid='81474'], .pdRatingStarsWrapper[data-itemid='81474']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81496'], div[data-itemid='81496'], .pdRatingStarsWrapper[data-itemid='81496']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81504'], div[data-itemid='81504'], .pdRatingStarsWrapper[data-itemid='81504']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81505'], div[data-itemid='81505'], .pdRatingStarsWrapper[data-itemid='81505']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81507'], div[data-itemid='81507'], .pdRatingStarsWrapper[data-itemid='81507']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81508'], div[data-itemid='81508'], .pdRatingStarsWrapper[data-itemid='81508']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='81991'], div[data-itemid='81991'], .pdRatingStarsWrapper[data-itemid='81991']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='82161'], div[data-itemid='82161'], .pdRatingStarsWrapper[data-itemid='82161']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='85797'], div[data-itemid='85797'], .pdRatingStarsWrapper[data-itemid='85797']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='86955'], div[data-itemid='86955'], .pdRatingStarsWrapper[data-itemid='86955']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='86956'], div[data-itemid='86956'], .pdRatingStarsWrapper[data-itemid='86956']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='86957'], div[data-itemid='86957'], .pdRatingStarsWrapper[data-itemid='86957']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='86959'], div[data-itemid='86959'], .pdRatingStarsWrapper[data-itemid='86959']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='86960'], div[data-itemid='86960'], .pdRatingStarsWrapper[data-itemid='86960']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='86961'], div[data-itemid='86961'], .pdRatingStarsWrapper[data-itemid='86961']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='88678'], div[data-itemid='88678'], .pdRatingStarsWrapper[data-itemid='88678']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='92212'], div[data-itemid='92212'], .pdRatingStarsWrapper[data-itemid='92212']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96068'], div[data-itemid='96068'], .pdRatingStarsWrapper[data-itemid='96068']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96070'], div[data-itemid='96070'], .pdRatingStarsWrapper[data-itemid='96070']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96082'], div[data-itemid='96082'], .pdRatingStarsWrapper[data-itemid='96082']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96085'], div[data-itemid='96085'], .pdRatingStarsWrapper[data-itemid='96085']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96087'], div[data-itemid='96087'], .pdRatingStarsWrapper[data-itemid='96087']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96088'], div[data-itemid='96088'], .pdRatingStarsWrapper[data-itemid='96088']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96089'], div[data-itemid='96089'], .pdRatingStarsWrapper[data-itemid='96089']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96091'], div[data-itemid='96091'], .pdRatingStarsWrapper[data-itemid='96091']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96098'], div[data-itemid='96098'], .pdRatingStarsWrapper[data-itemid='96098']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96105'], div[data-itemid='96105'], .pdRatingStarsWrapper[data-itemid='96105']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96122'], div[data-itemid='96122'], .pdRatingStarsWrapper[data-itemid='96122']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97141'], div[data-itemid='97141'], .pdRatingStarsWrapper[data-itemid='97141']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97142'], div[data-itemid='97142'], .pdRatingStarsWrapper[data-itemid='97142']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97143'], div[data-itemid='97143'], .pdRatingStarsWrapper[data-itemid='97143']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97144'], div[data-itemid='97144'], .pdRatingStarsWrapper[data-itemid='97144']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97145'], div[data-itemid='97145'], .pdRatingStarsWrapper[data-itemid='97145']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97146'], div[data-itemid='97146'], .pdRatingStarsWrapper[data-itemid='97146']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97147'], div[data-itemid='97147'], .pdRatingStarsWrapper[data-itemid='97147']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97148'], div[data-itemid='97148'], .pdRatingStarsWrapper[data-itemid='97148']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97149'], div[data-itemid='97149'], .pdRatingStarsWrapper[data-itemid='97149']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97151'], div[data-itemid='97151'], .pdRatingStarsWrapper[data-itemid='97151']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97152'], div[data-itemid='97152'], .pdRatingStarsWrapper[data-itemid='97152']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97153'], div[data-itemid='97153'], .pdRatingStarsWrapper[data-itemid='97153']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103439'], div[data-itemid='103439'], .pdRatingStarsWrapper[data-itemid='103439']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103669'], div[data-itemid='103669'], .pdRatingStarsWrapper[data-itemid='103669']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103670'], div[data-itemid='103670'], .pdRatingStarsWrapper[data-itemid='103670']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103671'], div[data-itemid='103671'], .pdRatingStarsWrapper[data-itemid='103671']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103673'], div[data-itemid='103673'], .pdRatingStarsWrapper[data-itemid='103673']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103674'], div[data-itemid='103674'], .pdRatingStarsWrapper[data-itemid='103674']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103676'], div[data-itemid='103676'], .pdRatingStarsWrapper[data-itemid='103676']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103677'], div[data-itemid='103677'], .pdRatingStarsWrapper[data-itemid='103677']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103679'], div[data-itemid='103679'], .pdRatingStarsWrapper[data-itemid='103679']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103680'], div[data-itemid='103680'], .pdRatingStarsWrapper[data-itemid='103680']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103681'], div[data-itemid='103681'], .pdRatingStarsWrapper[data-itemid='103681']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103682'], div[data-itemid='103682'], .pdRatingStarsWrapper[data-itemid='103682']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103685'], div[data-itemid='103685'], .pdRatingStarsWrapper[data-itemid='103685']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103687'], div[data-itemid='103687'], .pdRatingStarsWrapper[data-itemid='103687']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103689'], div[data-itemid='103689'], .pdRatingStarsWrapper[data-itemid='103689']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103690'], div[data-itemid='103690'], .pdRatingStarsWrapper[data-itemid='103690']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103692'], div[data-itemid='103692'], .pdRatingStarsWrapper[data-itemid='103692']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103695'], div[data-itemid='103695'], .pdRatingStarsWrapper[data-itemid='103695']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103696'], div[data-itemid='103696'], .pdRatingStarsWrapper[data-itemid='103696']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103697'], div[data-itemid='103697'], .pdRatingStarsWrapper[data-itemid='103697']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103699'], div[data-itemid='103699'], .pdRatingStarsWrapper[data-itemid='103699']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103700'], div[data-itemid='103700'], .pdRatingStarsWrapper[data-itemid='103700']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103701'], div[data-itemid='103701'], .pdRatingStarsWrapper[data-itemid='103701']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103702'], div[data-itemid='103702'], .pdRatingStarsWrapper[data-itemid='103702']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103704'], div[data-itemid='103704'], .pdRatingStarsWrapper[data-itemid='103704']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103706'], div[data-itemid='103706'], .pdRatingStarsWrapper[data-itemid='103706']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103707'], div[data-itemid='103707'], .pdRatingStarsWrapper[data-itemid='103707']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103708'], div[data-itemid='103708'], .pdRatingStarsWrapper[data-itemid='103708']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103709'], div[data-itemid='103709'], .pdRatingStarsWrapper[data-itemid='103709']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103710'], div[data-itemid='103710'], .pdRatingStarsWrapper[data-itemid='103710']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103711'], div[data-itemid='103711'], .pdRatingStarsWrapper[data-itemid='103711']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103713'], div[data-itemid='103713'], .pdRatingStarsWrapper[data-itemid='103713']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103714'], div[data-itemid='103714'], .pdRatingStarsWrapper[data-itemid='103714']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103718'], div[data-itemid='103718'], .pdRatingStarsWrapper[data-itemid='103718']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103720'], div[data-itemid='103720'], .pdRatingStarsWrapper[data-itemid='103720']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103722'], div[data-itemid='103722'], .pdRatingStarsWrapper[data-itemid='103722']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103723'], div[data-itemid='103723'], .pdRatingStarsWrapper[data-itemid='103723']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103724'], div[data-itemid='103724'], .pdRatingStarsWrapper[data-itemid='103724']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103725'], div[data-itemid='103725'], .pdRatingStarsWrapper[data-itemid='103725']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103726'], div[data-itemid='103726'], .pdRatingStarsWrapper[data-itemid='103726']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103731'], div[data-itemid='103731'], .pdRatingStarsWrapper[data-itemid='103731']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103732'], div[data-itemid='103732'], .pdRatingStarsWrapper[data-itemid='103732']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103734'], div[data-itemid='103734'], .pdRatingStarsWrapper[data-itemid='103734']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103735'], div[data-itemid='103735'], .pdRatingStarsWrapper[data-itemid='103735']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103736'], div[data-itemid='103736'], .pdRatingStarsWrapper[data-itemid='103736']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103739'], div[data-itemid='103739'], .pdRatingStarsWrapper[data-itemid='103739']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103741'], div[data-itemid='103741'], .pdRatingStarsWrapper[data-itemid='103741']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103742'], div[data-itemid='103742'], .pdRatingStarsWrapper[data-itemid='103742']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104432'], div[data-itemid='104432'], .pdRatingStarsWrapper[data-itemid='104432']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104433'], div[data-itemid='104433'], .pdRatingStarsWrapper[data-itemid='104433']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104707'], div[data-itemid='104707'], .pdRatingStarsWrapper[data-itemid='104707']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104708'], div[data-itemid='104708'], .pdRatingStarsWrapper[data-itemid='104708']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104710'], div[data-itemid='104710'], .pdRatingStarsWrapper[data-itemid='104710']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104712'], div[data-itemid='104712'], .pdRatingStarsWrapper[data-itemid='104712']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104715'], div[data-itemid='104715'], .pdRatingStarsWrapper[data-itemid='104715']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104716'], div[data-itemid='104716'], .pdRatingStarsWrapper[data-itemid='104716']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104717'], div[data-itemid='104717'], .pdRatingStarsWrapper[data-itemid='104717']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104718'], div[data-itemid='104718'], .pdRatingStarsWrapper[data-itemid='104718']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104719'], div[data-itemid='104719'], .pdRatingStarsWrapper[data-itemid='104719']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104720'], div[data-itemid='104720'], .pdRatingStarsWrapper[data-itemid='104720']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='105802'], div[data-itemid='105802'], .pdRatingStarsWrapper[data-itemid='105802']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='105803'], div[data-itemid='105803'], .pdRatingStarsWrapper[data-itemid='105803']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='105807'], div[data-itemid='105807'], .pdRatingStarsWrapper[data-itemid='105807']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='105808'], div[data-itemid='105808'], .pdRatingStarsWrapper[data-itemid='105808']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='105812'], div[data-itemid='105812'], .pdRatingStarsWrapper[data-itemid='105812']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='105826'], div[data-itemid='105826'], .pdRatingStarsWrapper[data-itemid='105826']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='106347'], div[data-itemid='106347'], .pdRatingStarsWrapper[data-itemid='106347']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='106348'], div[data-itemid='106348'], .pdRatingStarsWrapper[data-itemid='106348']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='106349'], div[data-itemid='106349'], .pdRatingStarsWrapper[data-itemid='106349']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='106362'], div[data-itemid='106362'], .pdRatingStarsWrapper[data-itemid='106362']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='106363'], div[data-itemid='106363'], .pdRatingStarsWrapper[data-itemid='106363']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='106364'], div[data-itemid='106364'], .pdRatingStarsWrapper[data-itemid='106364']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='106365'], div[data-itemid='106365'], .pdRatingStarsWrapper[data-itemid='106365']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='106366'], div[data-itemid='106366'], .pdRatingStarsWrapper[data-itemid='106366']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='106367'], div[data-itemid='106367'], .pdRatingStarsWrapper[data-itemid='106367']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='107206'], div[data-itemid='107206'], .pdRatingStarsWrapper[data-itemid='107206']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='107207'], div[data-itemid='107207'], .pdRatingStarsWrapper[data-itemid='107207']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='107473'], div[data-itemid='107473'], .pdRatingStarsWrapper[data-itemid='107473']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='108039'], div[data-itemid='108039'], .pdRatingStarsWrapper[data-itemid='108039']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='108040'], div[data-itemid='108040'], .pdRatingStarsWrapper[data-itemid='108040']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='108041'], div[data-itemid='108041'], .pdRatingStarsWrapper[data-itemid='108041']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='108042'], div[data-itemid='108042'], .pdRatingStarsWrapper[data-itemid='108042']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='108043'], div[data-itemid='108043'], .pdRatingStarsWrapper[data-itemid='108043']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103712'], div[data-itemid='103712'], .pdRatingStarsWrapper[data-itemid='103712']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104714'], div[data-itemid='104714'], .pdRatingStarsWrapper[data-itemid='104714']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104713'], div[data-itemid='104713'], .pdRatingStarsWrapper[data-itemid='104713']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103688'], div[data-itemid='103688'], .pdRatingStarsWrapper[data-itemid='103688']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80579'], div[data-itemid='80579'], .pdRatingStarsWrapper[data-itemid='80579']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='82160'], div[data-itemid='82160'], .pdRatingStarsWrapper[data-itemid='82160']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80585'], div[data-itemid='80585'], .pdRatingStarsWrapper[data-itemid='80585']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80425'], div[data-itemid='80425'], .pdRatingStarsWrapper[data-itemid='80425']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80497'], div[data-itemid='80497'], .pdRatingStarsWrapper[data-itemid='80497']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96086'], div[data-itemid='96086'], .pdRatingStarsWrapper[data-itemid='96086']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104709'], div[data-itemid='104709'], .pdRatingStarsWrapper[data-itemid='104709']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='105815'], div[data-itemid='105815'], .pdRatingStarsWrapper[data-itemid='105815']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='103721'], div[data-itemid='103721'], .pdRatingStarsWrapper[data-itemid='103721']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='97150'], div[data-itemid='97150'], .pdRatingStarsWrapper[data-itemid='97150']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='104711'], div[data-itemid='104711'], .pdRatingStarsWrapper[data-itemid='104711']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='80503'], div[data-itemid='80503'], .pdRatingStarsWrapper[data-itemid='80503']").forEach(function(element) { element.innerHTML = ""; }); document.querySelectorAll("div[productId='96127'], div[data-itemid='96127'], .pdRatingStarsWrapper[data-itemid='96127']").forEach(function(element) { element.innerHTML = ""; }); pdStarsRefreshFlag = false; } } pdDisplayCategoryStars(); function pdRefreshCategoryStarsDelayed() { pdStarsRefreshFlag = true; setTimeout(pdDisplayCategoryStars, 500); } try { document.getElementById('product-listing-container').addEventListener('DOMSubtreeModified', function() { pdRefreshCategoryStarsDelayed(); }); } catch(e){}; //*** BEGIN public_mod_myRewards_getRenderedPromotionMessagingJsInsertionCode *** document.querySelectorAll("div.pdRewardsPromoMessage[productId=\"\"], div.pdRewardsPromoMessage[data-itemid=\"\"]").forEach(function(div) { div.innerHTML = "
\"Rewards

Earn 0 Rewards Points for this item!

Learn More...
";}); //*** END public_mod_myRewards_getRenderedPromotionMessagingJsInsertionCode *** //*** BEGIN public_mod_myRewards_getRenderedPromotionPopupJsInsertionCode *** document.body.insertAdjacentHTML("beforeend", "
Rewards Members Enjoy Great Benefits!
1
Join
It\'s free - get started now!
2
Earn
Points for purchases, referrals & more!
3
Redeem
Redeem for store credit and special offers!
Sign Up Login
Earn Points
Make a purchase
1 point per $1
Refer friends
50 points per sign up
100 points per order
Write a review
5 points
"); //*** END public_mod_myRewards_getRenderedPromotionPopupJsInsertionCode *** function pdInjectAccountLinkModifications() { //***** INJECT REWARDS LINK **** jQuery(".navBar-section li:nth-child(2)").after(''); //***** INJECT OLDER ORDER HISTORY LINK **** jQuery(".navBar-section li:nth-child(1)").after(''); } pdInjectAccountLinkModifications();var pdPublicUrl = 'https://my.spicylingerie.com/'; jQuery(document).ready(function(){ const urlParams = new URLSearchParams(location.search); var prevLinkElem = jQuery('.navBar-section .is-active').data("pdLinkElem"); var prevLinkTarget = jQuery('.navBar-section .is-active').data("pdLinkElemTarget"); if (prevLinkElem && prevLinkTarget) { jQuery(prevLinkTarget).html(prevLinkElem); jQuery('.navBar-section .is-active').data("pdLinkElem", false); jQuery('.navBar-section .is-active').data("pdLinkElemTarget", false); } if (urlParams.has('pd_module_content')){ var module = urlParams.get('pd_module_content'); var subNav = urlParams.get('pd_module_subNav'); var moduleTitle = jQuery('#pdContent_'+module+' a').html(); var currentUrl = window.location.href; var currentUrlNoQuery = currentUrl.substring(0, currentUrl.indexOf('?')); console.log(currentUrlNoQuery); var currentTab = jQuery('.navBar-section .is-active').html(); if (jQuery('.navBar-section .is-active').hasClass('pdLinkEvent') == false){ if(jQuery('.navBar-section .is-active .navBar-action').length){ } else { jQuery('.navBar-section .is-active').html(''+currentTab+''); } } jQuery('.navBar-section .is-active').data("pdLinkElemTarget", '#pdContent_'+module); jQuery('.navBar-section .is-active').data("pdLinkElem", jQuery('#pdContent_'+module).html()); jQuery('#pdContent_'+module).html(jQuery('#pdContent_'+module+' a').text()); jQuery('.navBar-section .is-active').removeClass('is-active'); jQuery('#pdContent_'+module).addClass('is-active'); jQuery('.page-heading').html(moduleTitle); if (subNav !== '' && subNav !== null){ url = pdPublicUrl+'/'+module+'/'+subNav+'.php?module='+module; } else { url = pdPublicUrl+'/'+module+'/index.php?module='+module; } pdOneAjaxLinkHandler(url); } }); jQuery(document).on('submit', '.pdModal form', function(e){ e.preventDefault(); e.stopImmediatePropagation() pdOneAjaxFormHandler(this); }); jQuery(document).on('submit', '#pdModuleContent form', function(e){ e.preventDefault(); e.stopImmediatePropagation() pdOneAjaxFormHandler(this); }); jQuery(document).on('click', '.pdLinkEvent', function(e){ var currentUrl = window.location.href; var currentTab = jQuery('.navBar-section .is-active .navBar-action').html(); console.log(jQuery(this).html()); if (jQuery('.navBar-section .is-active').hasClass('pdLinkEvent') == false){ jQuery('.navBar-section .is-active').html(''+currentTab+''); } jQuery('.navBar-section .is-active').removeClass('is-active'); jQuery(this).parent().addClass('is-active'); var url = jQuery(this).attr('href'); e.preventDefault(); e.stopImmediatePropagation() pdOneAjaxLinkHandler(url); }); jQuery(document).on('click', '#pdModuleContent a', function(e) { var url = jQuery(this).attr('href'); jQuery(this).attr("href", "#"); e.preventDefault(); pdOneAjaxLinkHandler(url); }); function pdOneAjaxLinkHandler(url){ console.log("pdOneAjaxLinkHandler:" + url); var currModule = jQuery('#pdModuleContent').attr('data-currmodule'); var externalLink = false; //assume http or https is external link var testUrl = url; var testUrlNoQuery = url.substring(0, testUrl.indexOf('?')); if (testUrlNoQuery !== ''){ if ((url.includes('https://') || url.includes('http://')) && !testUrlNoQuery.includes('mod_')){ externalLink = true; } } if (!externalLink && currModule !== '' && currModule !== undefined) { testUrl = testUrl.replace('https://', ''); testUrl = testUrl.replace('http://', ''); replaceStart = testUrl.indexOf('/'); if (replaceStart == -1){ replaceStart = 0; } testurl = testUrl.substring(replaceStart); //If no 'mod_' present assume reference path to current module and create absolute path if (!url.includes('mod_')){ url = pdPublicUrl+'/'+currModule+'/'+testurl+'?module='+currModule; } //Else assume link to other module and create absolute path else { url = pdPublicUrl+'/'+testurl+'?module='+currModule; } } //Perform ajax if not linking to external site if (!externalLink){ if (url.includes('?')){ url += '&mode=inject'; } else { url += '?mode=inject'; } jQuery.ajax({ 'async': true, 'global': false, 'xhrFields': { withCredentials: true }, 'type': "POST", 'crossDomain': true, 'url': url, 'success': function(result) { console.log('success'); jQuery('.account-content').html(result); }, error: function(errMsg) { console.log('error'); console.log(errMsg['statusText']); } }); } else { // window.location.href = url; } } function pdOneAjaxFormHandler(form, module){ currModule = jQuery('#pdModuleData').attr('data-currmodule'); if (currModule == undefined){ currModule = jQuery('#pdModuleContent').attr('data-currmodule'); } formData = jQuery(form).serializeArray(); console.log(formData); var method = jQuery(form).attr('method'); var url = jQuery(form).attr('action'); replaceStart = url.indexOf('/'); if (replaceStart == -1){ replaceStart = 0; } url = url.substring(replaceStart); url = pdPublicUrl+'/'+currModule+'/'+url+'?module='+currModule; if (url.includes('?')){ url += '&mode=inject'; } else { url += '?mode=inject'; } if (url.includes('?')){ url += '&module='+currModule; } else { url += '?module='+currModule; } jQuery.ajax({ 'async': false, 'global': false, 'xhrFields': { withCredentials: true }, 'type': method, 'crossDomain': true, 'url': url, data: formData, 'success': function(result) { console.log('success'); console.log(result); jQuery(form).closest('#pdModuleContent').replaceWith(result); }, error: function(errMsg) { console.log('error'); console.log(errMsg); } }); }var script = document.createElement('style'); script.setAttribute('type', 'text/css'); script.innerHTML = ``; document.getElementsByTagName('head')[0].appendChild(script); //*** COMPLETEION CALLBACK try{pdContentRenderCompleted()}catch(e){}; //*** done.