PageSourceSearch

https://www.orchardortho.com/js/pages/end-of-summer-offer-2026.js

js orchardortho.com collected 2026-10-04 13:25:28 UTC 1,371 bytes, 42 lines download raw bytes

1// End of Summer Offer 2026 — countdown timer.
2// Counts down to the offer end: 11:59pm on 15th August 2026, UK time (BST = UTC+1),
3// so it ends at the same wall-clock moment for every visitor regardless of their
4// own timezone. Targets the #days/#hours/#minutes/#seconds spans in the page body.
5(function () {
6  var deadline = new Date("2026-08-15T23:59:00+01:00").getTime();
7
8  var elDays = document.getElementById("days");
9  var elHours = document.getElementById("hours");
10  var elMinutes = document.getElementById("minutes");
11  var elSeconds = document.getElementById("seconds");
12
13  // Nothing to drive on this page.
14  if (!elDays || !elHours || !elMinutes || !elSeconds) return;
15
16  function pad(n) {
17    return n < 10 ? "0" + n : "" + n;
18  }
19
20  var timer;
21
22  function tick() {
23    var diff = deadline - Date.now();
24
25    if (diff <= 0) {
26      elDays.textContent = "00";
27      elHours.textContent = "00";
28      elMinutes.textContent = "00";
29      elSeconds.textContent = "00";
30      if (timer) clearInterval(timer);
31      return;
32    }
33
34    elDays.textContent = pad(Math.floor(diff / 86400000));
35    elHours.textContent = pad(Math.floor((diff % 86400000) / 3600000));
36    elMinutes.textContent = pad(Math.floor((diff % 3600000) / 60000));
37    elSeconds.textContent = pad(Math.floor((diff % 60000) / 1000));
38  }
39
40  tick();
41  timer = setInterval(tick, 1000);
42})();

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.