console.log('uid='); //*** time check 1 (0.01593s elapsed) //*** time check 2 (0.01596s elapsed) //*** JJ itemId=pd-template //*** pageType=info //*** time check 3 (0.0181s elapsed) //*** forceOutOfStock=true //*** time check 4 (0.01811s elapsed) //*** public_mod_structuredData_renderJsonByItemId found //*** public_mod_structuredData enabled var script = document.createElement('script'); script.setAttribute('type', 'application/ld+json'); script.innerHTML = "{\"@context\":\"http:\\/\\/schema.org\",\"@type\":\"Organization\",\"sameAs\":[\"https://www.facebook.com/finnstyle\",\"https://twitter.com/finnstyle_com\",\"https://www.instagram.com/finnstyle/\",\"https://www.youtube.com/user/FinnStyle\",\"https://www.pinterest.com/finnstyle/\"],\"name\":\"FinnStyle\",\"url\":\"https:\\/\\/www.finnstyle.com\\/\",\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"700 Mendelssohn Avenue N\",\"addressLocality\":\"Golden Valley\",\"addressRegion\":\"Minnesota\",\"addressCountry\":\"US\",\"postalCode\":\"55427\"},\"founders\":[{\"@type\":\"Person\",\"name\":\"Ben Horn\"}],\"logo\":\"https:\\/\\/myaccount.finnstyle.com\\/pd_custom\\/core\\/structuredData\\/images\\/imageCompanyLogo.jpg\",\"foundingDate\":\"2002\",\"contactPoint\":{\"@type\":\"ContactPoint\",\"email\":\"orderdesk@finnstyle.com\",\"telephone\":\"+1-866-617-6176\",\"contactType\":\"Customer Support\"}}" document.getElementsByTagName('head')[0].appendChild(script); ; var script = document.createElement('script'); script.setAttribute('type', 'application/ld+json'); script.innerHTML = "{\"@context\":\"http:\\/\\/schema.org\",\"@type\":\"LocalBusiness\",\"address\":{\"@type\":\"PostalAddress\"},\"priceRange\":\"1.0000-10193.0000\"}" document.getElementsByTagName('head')[0].appendChild(script); ; //*** time check 5 (0.01822s elapsed) //*** mod_storeClosed called //*** time check 6 (0.01838s elapsed) //*** time check 7 (0.01839s elapsed) var pdServerTime = new Date("2025-05-05T17:01:47-05:00"); var pdProductId = "pd-template"; //************************************************ //************ 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.0184s 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
PENTIK SEASONAL SALE
ALL PENTIK ON SALE: Discover Pentik designs: SHOP THE SALE
"); jQuery("div.pdOnePromotionDisplay[bannerType='topBanner'][itemId='pd-template']").html("
PENTIK SEASONAL SALE: SHOP THE SALE
"); //*** 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.04969s elapsed) //*** SEND PROMO INFO TO ALREADY ON-PAGE HANDLER FUNCTION var pdPromo = {"id":"34","promoTypeId":"3","promotionActivationType":"passive","discountType":"displayOnly","discountAmountDollar":null,"discountAmountPercent":null,"discountNotAllowedWithCouponSw":"0","discountNotAllowedWithRewardsPointMultipliersSw":"0","discountMinimumOrderSize":null,"discountMinimumOrderSizeBrandName":null,"buyOneGetOneAutoAddDiscountedItemToCartSw":"1","autoRemoveDiscountedItemFromCartSw":"0","autoMatchPromotionalItemQtySw":"1","limitOfferToOncePerCartSw":"1","associatedCoupon":null,"internalPromoName":"Display Only","title":"PENTIK SEASONAL SALE<\/b>","description":"ALL PENTIK ON SALE:<\/b> Discover Pentik designs: SHOP THE SALE<\/a><\/b> ","shortDescription":"Free Gift w\/Purchase Today","customFlagLabel":null,"customFlagColor":null,"checkoutMessage":"Free Gift Today","googlePromotionMessage":null,"isActiveSw":"1","onlyActiveUsersSw":"0","showInGlobalBannerSw":"0","showInSectionPageBannerSw":"0","showInProductListCalloutSw":"0","showInTopBannerSw":"1","showInProductPageBannerSw":"0","showInProductPageCalloutSw":"1","showInCheckoutSw":"0","showInCustomContent":null,"dealPriority":"0","promotionSneakPeekSw":"0","promotionSneakPeekDays":"0","promotionSneakPeekHrs":"0","promotionSneakPeekMessage":null,"preStartDate":null,"startDate":"2025-04-15 04:00:00","endDate":"2025-07-09 22:00:00","dateCreated":"2021-01-28 10:08:32","dateUpdated":"2025-05-01 13:44:30","expirationCountdownDisplaySw":"0","restrictionId":"-1","preferredOffer":"0","isArchivedSw":"0","promotionSneakPeekCountdownTimerSw":"0","topBanner":"PENTIK SEASONAL SALE: SHOP THE SALE<\/a><\/b>","sectionBanner":null,"previousRestrictionRuleBitString":"","isDirty":"1","googlePromoVersion":"19","googleOfferType":"NO_CODE","googleProductApplicability":"ALL_PRODUCTS","makerMessage":null,"advertisedPromotion":"1","showInAdvertisingCollectionsAsOnPromoSw":"1","banner1Html":null,"banner2Html":null,"banner3Html":null,"banner4Html":null,"banner5Html":null,"banner6Html":null,"banner1HtmlMobile":null,"banner2HtmlMobile":null,"banner3HtmlMobile":null,"banner4HtmlMobile":null,"banner5HtmlMobile":null,"banner6HtmlMobile":null,"banner1Url":null,"banner2Url":null,"banner3Url":null,"banner4Url":null,"banner5Url":null,"banner6Url":null,"banner1ImgUrlThumbnail":null,"banner2ImgUrlThumbnail":null,"banner3ImgUrlThumbnail":null,"banner4ImgUrlThumbnail":null,"banner5ImgUrlThumbnail":null,"banner6ImgUrlThumbnail":null,"banner1ImgUrlFullsize":null,"banner2ImgUrlFullsize":null,"banner3ImgUrlFullsize":null,"banner4ImgUrlFullsize":null,"banner5ImgUrlFullsize":null,"banner6ImgUrlFullsize":null,"promoValue":"0.0000"}; 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.05215s elapsed) //*** mod_fbConversion is NOT enabled! //*** time check 25 (0.05297s elapsed) //*** time check 26 (0.0538s elapsed) //*** time check 27 (0.05433s elapsed) //*** time check 28 (0.05498s 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.05503s elapsed) //*** time check 29 (0.05504s elapsed)