PageSourceSearch

https://www.escapadarural.com/blog/wp-content/plugins/ultimate-blo…/visibility-control/front.js?ver=3.6.0

js escapadarural.com collected 2026-09-24 09:22:27 UTC 1,154 bytes, 26 lines download raw bytes

1window.addEventListener("DOMContentLoaded", () => {
2  const wrappers = document.querySelectorAll("[data-is-schedule-enabled]");
3  wrappers.forEach((wrapper) => {
4    const isScheduleEnable =
5      wrapper.getAttribute("data-is-schedule-enabled") === "true";
6    if (!isScheduleEnable) return;
7    const hideWhenTimeScheduleApplied =
8      wrapper.getAttribute("data-hide-when-schedule-applied") === "true";
9    const currentTime = wrapper.getAttribute("data-current-time");
10    const hideBlockFromTime = wrapper.getAttribute("data-hide-block-from-time");
11    const hideBlockToTime = wrapper.getAttribute("data-hide-block-to-time");
12    const currentTimeInMs = new Date(currentTime).getTime();
13    const hideBlockFromTimeInMs = new Date(hideBlockFromTime).getTime();
14    const hideBlockToTimeInMs = new Date(hideBlockToTime).getTime();
15    const isBlockInSchedule =
16      currentTimeInMs >= hideBlockFromTimeInMs &&
17      currentTimeInMs <= hideBlockToTimeInMs;
18    if (hideWhenTimeScheduleApplied && isBlockInSchedule) {
19      wrapper.remove();
20    }
21
22    if (!hideWhenTimeScheduleApplied && !isBlockInSchedule) {
23      wrapper.remove();
24    }
25  });
26});

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.