PageSourceSearch

https://www.stonybrookmedicine.edu/sites/default/files/webfiles/accordion.js

js stonybrookmedicine.edu collected 2026-10-01 08:59:57 UTC 436 bytes, 14 lines download raw bytes

1var accButtons = document.getElementsByClassName("accordion__button")
2
3for (var i = 0; i < accButtons.length; i++) {
4    accButtons[i].addEventListener("click", function () {
5        this.classList.toggle("active")
6
7        var panel = this.nextElementSibling
8        if (panel.style.maxHeight) {
9            panel.style.maxHeight = null
10        } else {
11            panel.style.maxHeight = panel.scrollHeight + "px"
12        }
13    })
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.