jQuery(document).ready(function ($) { const BRAND = { primary: '#e30613', primaryDark: '#b70510', text: '#1f2937', muted: '#6b7280', surface: '#ffffff', border: '#e5e7eb', overlay: 'rgba(15, 23, 42, 0.55)', success: '#059669' }; function getTodayDate() { const now = new Date(); const year = now.getFullYear(); const month = (`0${now.getMonth() + 1}`).slice(-2); const day = (`0${now.getDate()}`).slice(-2); return `${year}-${month}-${day}`; } function injectStyles() { if ($('#pk-calendar-modal-style').length) { return; } $('head').append(` `); } function ensureButton() { if ($('#wp-content-media-buttons').length && $('#calendar-button').length === 0) { $('#wp-content-media-buttons').append('  '); } } function ensureModal() { if ($('#calendar-modal').length) { return; } $('body').append(` `); } function setFeedback(type, message) { const $feedback = $('#calendar-feedback'); $feedback.removeClass('error success').addClass(type).text(message); } function resetValues() { $('#calendar-start-date').val(getTodayDate()); $('#calendar-start-time').val('00:00'); $('#calendar-end-date').val(''); $('#calendar-end-time').val('00:00'); $('#calendar-feedback').removeClass('error success').text(''); } injectStyles(); ensureButton(); ensureModal(); $(document).on('click', '#calendar-button', function (e) { e.preventDefault(); resetValues(); $('#calendar-modal').css('display', 'flex').hide().fadeIn(180); }); $(document).on('click', '#close-calendar', function () { $('#calendar-modal').fadeOut(150); }); $(document).on('click', '#calendar-modal', function (e) { if (e.target.id === 'calendar-modal') { $('#calendar-modal').fadeOut(150); } }); $(document).on('click', '#submit-calendar', function () { const startDate = $('#calendar-start-date').val().trim(); const startTime = $('#calendar-start-time').val().trim(); const endDate = $('#calendar-end-date').val().trim(); const endTime = $('#calendar-end-time').val().trim() || '00:00'; if (!startDate || !startTime) { setFeedback('error', 'Bitte ein gĂĽltiges Startdatum und eine Startzeit eingeben.'); return; } const combinedStart = `${startDate} ${startTime}`; let combinedEnd = ''; if (endDate) { combinedEnd = `${endDate} ${endTime}`; if (new Date(combinedEnd) < new Date(combinedStart)) { setFeedback('error', 'Das Enddatum darf nicht vor dem Startdatum liegen.'); return; } } const shortcode = `[calendar_event_button start_date="${combinedStart}" end_date="${combinedEnd}"]`; if (typeof tinyMCE !== 'undefined' && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden()) { tinyMCE.activeEditor.execCommand('mceInsertContent', false, shortcode); } else { $('#content').val(`${$('#content').val()}${shortcode}`); } if (combinedEnd) { $('#rehub_offer_coupon_date').val(combinedEnd); } setFeedback('success', 'Shortcode wurde erfolgreich eingefĂĽgt.'); setTimeout(function () { $('#calendar-modal').fadeOut(150); }, 500); }); });Seite nicht gefunden – Schnäppchen, Deals und Rabattcodes des Tages
🔍 Seite nicht gefunden
404

Houston, wir haben ein Problem!

Das Schnäppchen, das du suchst, gibt es leider nicht. Aber hey, keine Panik – auch uns passiert das mal! 🛒

404 Error
🤔

Mögliche Gründe

  • Du bist ein 404-Seiten-Detektiv
  • Der Link ist falsch oder alt
  • Der Deal ist abgelaufen
đź’ˇ

Wie geht's weiter?

  • Schau auf der Startseite vorbei
  • Nutze die Suchfunktion oben
  • Entdecke neue Deals
Schnäppchen, Deals und Rabattcodes des Tages
Logo