PageSourceSearch

https://lakeshorearts.ca/wp-content/themes/norebro-child/src/js/programs.js

js lakeshorearts.ca collected 2026-10-05 18:10:42 UTC 1,298 bytes, 37 lines download raw bytes

1document.addEventListener("DOMContentLoaded", () =>  {
2
3  const programPage = ".page-id-1458",
4    eventPage = ".page-id-6302",
5    exhibitionPage = ".page-id-5446",
6    communityPage = ".page-id-5453"
7
8  let updateTitleInPage = (itemClass, itemTitle) => {
9    let checkItem = setInterval(()=>{
10      try {
11        let current = document.querySelector(".vc_pageable-wrapper")
12        let items = document.querySelectorAll(itemClass)
13        for (let item of items) {
14          let title = item.querySelector(itemTitle)
15          let parent = title.closest(".vc_gitem-zone-mini")
16          let wrapper = item.closest(".vc_gitem-animated-block")
17          wrapper.appendChild(parent)        
18        }
19        clearInterval(checkItem)
20      }
21      catch(err) {
22        console.log("reloading...")
23      }
24    }, 100)
25    }
26
27
28    if (document.querySelector(programPage)) {
29      updateTitleInPage(".program-title", ".program-title");
30    } else if (document.querySelector(eventPage)) {
31      updateTitleInPage(".program-title", ".program-title")
32    } else if (document.querySelector(exhibitionPage)) {
33      updateTitleInPage(".exhibition-title", ".exhibition-title")
34    } else if (document.querySelector(communityPage)) {
35      updateTitleInPage(".community-title", ".community-title")
36    }
37  })

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.