Bezpieczne połączenie SSL dJfxSQrE2WS2HFbsocument.addEventListener("DOMContentLoaded", () => { function getInitValue() { let date = new Date(); let day = date.getDay(); let hour = date.getHours(); let minutes = date.getMinutes(); switch (hour) { case 20: return Math.floor(Math.random() * 100) + 100; break; case 21: return Math.floor(Math.random() * 100) + 250; break; case 22: if (minutes < 30) { return Math.floor(Math.random() * 50) + 200; } else { return Math.floor(Math.random() * 50) + 150; } break; case 23: if (minutes < 30) { return Math.floor(Math.random() * 30) + 50; } else if (minutes < 45) { return Math.floor(Math.random() * 20) + 40; } else { return Math.floor(Math.random() * 20) + 30; } break; default: return Math.floor(Math.random() * 8) + 23; break; } } function change(element, start, stop, d) { d == "up" ? start += 1 : start -= 1; element.removeClass("slide-off-" + d); element.html(start); element.addClass("slide-on-" + d); if (start != stop) { setTimeout(() => { element.removeClass("slide-on-" + d); element.addClass("slide-off-" + d); setTimeout(() => { change(element, start, stop, d); }, 150); }, 150); } } $(".order-sidebar").prepend("<p style='margin-botton:10px; margin-top:-10px; padding-left:10px; background-color:#e00004; color:#ffffff; font-size:1.5rem;'class='people-on-page'>Aktualnie na stronie jest <span class='current-value'></span> Osób</p>"); let people = $(".current-value"); let init = getInitValue(); people.html(init); function updatePeopleOnPage() { let stop; people.removeClass("slide-on-up slide-off-up slide-on-down slide-off-down"); var c = Math.floor((Math.random() * 2) + 1); if (c == 2) { stop = init + Math.floor((Math.random() * 5) + 1); } else { stop = init - Math.floor((Math.random() * 5) + 1); } if (stop <= 1) { stop = 1; } else if (stop >= 300) { stop = 300; } let d; init < stop ? d = "up" : d = "down"; if (stop != init) { people.addClass("slide-off-" + d); setTimeout(() => { people.removeClass("slide-off-" + d); change(people, init, stop, d); init = stop; }, 150); } } updatePeopleOnPage(); setInterval(updatePeopleOnPage, 12000); });
Sklep jest obecnie nieaktywny
Zamówienia są wstrzymane. Spróbuj ponownie później.
Dominika Rosińska © 2026
Ten sklep działa na platformie Imker 🛒