var d = new Date();var t = d.getDate();var t = t.toString();$('#articleDetailNoteContainer').find('.articleDetailNote').each(function() {var myarray = $(this).data('showonday');function isInArray(array, search){return array.indexOf(search) >= 0;}; if(isInArray(myarray, t)){$(this).show();} else {$(this).remove();}});
document.addEventListener('DOMContentLoaded', function() { if ($('.priceRow .crossprice').length > 0){$('.priceRow .price').addClass("salePrice");var oldUVP=$('.singleRightside .crossprice>del').text().replace(/,/,".").replace(/EUR/," ");var currentPrice = $('.singleRightside .salePrice>span:first-child').text().replace(/,/,".").replace(/EUR/," ");var oldUVP=oldUVP.replace(/[^0-9\.]+/g,"");var currentPrice = currentPrice.replace(/[^0-9\.]+/g,"");function calculatePercent() {var percent = (oldUVP-currentPrice)/oldUVP*100;var percentRound = Math.round(percent);$(".saving_p").html("(-"+percentRound+"%)");currentSaving=oldUVP-currentPrice,currentSaving=currentSaving.toFixed(2).replace(/\./,","),$("#saving_eur").html(currentSaving+" EUR")}; calculatePercent();};});