PageSourceSearch

https://www.ncpc.org.sg/assets/js/masthead-content-dropdown.js

js ncpc.org.sg collected 2026-09-25 23:57:15 UTC 697 bytes, 14 lines download raw bytes

1function showBannerContent() {
2    document.getElementById("banner-content").classList.toggle("is-hidden")
3    document.getElementById("masthead-chevron").classList.toggle("sgds-icon-chevron-down")
4    document.getElementById("masthead-chevron").classList.toggle("sgds-icon-chevron-up")
5
6    if (document.body.clientWidth < 1023) document.getElementById("masthead-divider").classList.toggle("is-hidden")
7}
8
9document.getElementById("masthead-dropdown-button").addEventListener("click", () => {
10    if (document.body.clientWidth >= 1024) showBannerContent()
11})
12document.getElementById("bp-masthead").addEventListener("click", () => {
13    if (document.body.clientWidth < 1023) showBannerContent()
14})

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.