Pflanzen Versandtermine


runAfterElementExists(".shippingDate", function () { $('.shippingDate').each(function() { var ShippingDate = ''; var ShippingDate = $(this).data('date').substring(0, 10).split("-"); if (ShippingDate[0]>0) {$(this).html('Versand ab
');}; }); var filter = "select#filters"; $(filter).change(function () { var value = $(this).val(); if (value == 'newer') {tinysort('ul.product-list>li',{selector:'.shippingDate',data:'date',order:'desc'});}; if (value == 'older') {tinysort('ul.product-list>li',{selector:'.shippingDate',data:'date', order:'asc'});}; if (value == 'name_asc') {tinysort('ul.product-list>li',{selector:'.itemName',order:'asc'});}; if (value == 'name_desc') {tinysort('ul.product-list>li',{selector:'.itemName',order:'desc'});}; });});
$(document).ready(function(){var showPopupDelay = 7000;var showPopupLiveTime = 10;if(localStorage.last){if( (localStorage.last - Date.now() ) / (1000*60*60*24*showPopupLiveTime) >= 1){setTimeout(function() {$('#popup').modal('show');},showPopupDelay);localStorage.last = Date.now();}}else{setTimeout(function() {$('#popup').modal('show');},showPopupDelay);};localStorage.last = Date.now();$('.popup-modal .modal-close').click(function(e){$('#popup').modal('hide');});});