PageSourceSearch

https://www.musiccitygp.com/scripts/ims/IMS.FAQ-Accordion.js

js musiccitygp.com collected 2026-10-03 21:42:43 UTC 949 bytes, 25 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function(event) { 
2
3            var acc = document.getElementsByClassName("question");
4            var panel = document.getElementsByClassName('answer');
5
6            for (var i = 0; i < acc.length; i++) {
7                acc[i].onclick = function() {
8                    var setClasses = !this.classList.contains('active');
9                    setClass(acc, 'active', 'remove');
10                    setClass(panel, 'show', 'remove');
11
12                    if (setClasses) {
13                        this.classList.toggle("active");
14                        this.nextElementSibling.classList.toggle("show");
15                    }
16                }
17            }
18
19            function setClass(els, className, fnName) {
20                for (var i = 0; i < els.length; i++) {
21                    els[i].classList[fnName](className);
22                }
23            }
24
25            });

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.