PageSourceSearch

https://www.vinello.de/custom/plugins/CusatiVinelloTheme/Resources…/src/patches/patches.js?nocache=1791136576

js vinello.de collected 2026-10-04 17:56:29 UTC 2,032 bytes, 62 lines download raw bytes

1(function jqIsReady() {
2  if (typeof $ === "undefined") {
3    setTimeout(jqIsReady, 10);
4    return;
5  }
6
7  // JQuery-based patches go here
8})();
9
10// Vanilla JS patches go here
11
12// Vanilla JS patches go here
13window.addEventListener('DOMContentLoaded', function () {
14  //enableClearanceBanner();
15});
16
17// function enableClearanceBanner() {
18//   // BEGIN ABVERKAUF COUNTDOWN
19//   const targetDate = new Date('2026-09-11T00:00:00+02:00');
20//   const display = document.getElementById('clearanceText');
21//   const originalText = display.innerHTML;
22//
23//   function updateTimer() {
24//     const now = new Date(); // Get current time
25//     const timeRemaining = targetDate - now; // Calculate time difference in milliseconds
26//
27//     if (timeRemaining <= 0) {
28//       // If the countdown has reached zero, stop it and show the normal
29//       // USP carousel.
30//       disableClearanceBanner(interval);
31//       return;
32//     }
33//
34//     // Convert the time remaining from milliseconds to hours, minutes, and seconds
35//     const hours = Math.floor(timeRemaining / (1000 * 60 * 60));
36//     const minutes = Math.floor((timeRemaining % (1000 * 60 * 60)) / (1000 * 60));
37//     const seconds = Math.floor((timeRemaining % (1000 * 60)) / 1000);
38//
39//     // Format the time as HH:MM:SS with leading zeros
40//     const time =
41//       String(hours).padStart(2, '0') +
42//       ':' +
43//       String(minutes).padStart(2, '0') +
44//       ':' +
45//       String(seconds).padStart(2, '0');
46//
47//     // Replace placeholder in the original text with the time
48//     display.innerHTML = originalText.replace('[%countdown%]', time);
49//     display.style.opacity = '1';
50//   }
51//
52//   // Update the timer every second
53//   const interval = setInterval(updateTimer, 1000);
54//   updateTimer(); // Initialize the display immediately
55//   // END ABVERKAUF COUNTDOWN
56// }
57//
58// function disableClearanceBanner(interval) {
59//   $('#topBanner').removeClass('is--clearance');
60//   clearInterval(interval); // Stop the interval
61//   enableUspBanner();
62// }

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.