PageSourceSearch

https://www.letsgoshooting.org/wp-content/themes/nssf_lgs/js/faq.js?ver=1790958836

js letsgoshooting.org collected 2026-10-02 16:36:20 UTC 1,892 bytes, 67 lines download raw bytes

1/**
2 * Created by Ismael on 19/4/2018.
3 */
4(function ($) {
5	$(window).load(function () {
6		//accordion
7		var acc = document.getElementsByClassName("accordion");
8		var numParts = $(".accordion");
9		if (acc.length > 1) {
10			for (var i = 0; i < acc.length; i++) {
11				acc[i].addEventListener("click", function () {
12					/* Toggle between adding and removing the "active" class,
13                to highlight the button that controls the panel */
14					if (this.childNodes[1].className == "question active")
15						this.childNodes[1].className = "question";
16					else this.childNodes[1].className = "question active";
17					var a = $(this).children(".faq-dropdown").children("i")[0];
18					if (a.className == "down-arrow") a.className = "up-arrow";
19					else a.className = "down-arrow";
20					for (j = 0; j < acc.length; j++) {
21						if (acc[j] != this) {
22							var panel = acc[j].childNodes[3];
23							panel.style.display = "none";
24							acc[j].childNodes[1].className = "question";
25							$(acc[j]).children(".faq-dropdown").children("i")[0].className = "down-arrow";
26						}
27					}
28
29					/* Toggle between hiding and showing the active panel */
30
31					//TODO: Add animation
32
33					var panel = this.childNodes[3];
34					if (panel.style.display === "block") {
35						panel.style.display = "none";
36					} else {
37						panel.style.display = "block";
38					}
39				});
40			}
41
42			if (document.documentElement.clientWidth < 1024) {
43				var numCards = numParts.length;
44
45				numParts.slice(7).hide();
46
47				if (numCards <= 7) {
48					$(".btn-load-all").css("display", "none");
49				}
50			}
51
52			const ps = new PerfectScrollbar("#scroll", {
53				wheelSpeed: 2,
54				wheelPropagation: true,
55				suppressScrollX: true,
56				minScrollbarLength: 20,
57			});
58
59			ps.update();
60			$(".btn-load-all").on("click", function () {
61				numParts.slice(7, numCards).show();
62
63				$(this).css("display", "none");
64			});
65		}
66	});
67})(jQuery);

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.