PageSourceSearch

https://armstrongtire.com/app/plugins/faqs//assets/js/script.js?ver=1790717167

js armstrongtire.com collected 2026-09-29 21:26:14 UTC 2,053 bytes, 50 lines download raw bytes

1const selectElement = document.querySelector('#faqOptions');
2const faqAnsClass = document.querySelectorAll('.faqAnsPostTitle');
3var contactAccess = false;
4var faqAnsPostTitleFN = function (event) {
5    var dataId = this.getAttribute("data-id");
6    var selectId = 'faqAnsPost_' + dataId;
7    var activeId = '';
8    if (document.querySelector('.faqAnsactive')) {
9        var activeId = document.querySelector('.faqAnsactive').getAttribute("id");
10        /* if (activeId === selectId) {
11            document.querySelector('.faqAnsactive').classList.remove('faqAnsactive');
12        } */
13    }
14    if (activeId === selectId) {
15        document.querySelector('.faqAnsactive').classList.remove('faqAnsactive');
16    } else {
17        if (document.querySelector('.faqAnsactive')) {
18            document.querySelector('.faqAnsactive').classList.remove('faqAnsactive');
19        }
20        document.getElementById(selectId).classList.toggle('faqAnsactive');
21    }
22};
23
24selectElement?.addEventListener('change', (event) => {
25    const currentVal = event.target.value;
26    const list = document.querySelectorAll('.faqAnswerSection');
27    for (var i = 0; i < list.length; ++i) {
28        if (!list[i].classList.contains("hidden")) {
29            list[i].classList.add("hidden");
30        }
31    }
32    if (currentVal === "") {
33        document.getElementById('faqToggleSec1').classList.add("hidden");
34        document.getElementById('faqToggleSec2').classList.add("hidden");
35        return;
36    }
37    if (document.querySelector('.faqAnsactive')) {
38        document.querySelector('.faqAnsactive').classList.remove('faqAnsactive');
39    }
40    document.getElementById('faqToggleSec1').classList.remove("hidden");
41    if (contactAccess) {
42        document.getElementById('faqToggleSec2').classList.remove("hidden");
43    }
44    document.querySelector('.faqAnswer-' + currentVal).classList.remove("hidden");
45})
46selectElement?.dispatchEvent(new Event('change'));
47
48for (var i = 0; i < faqAnsClass.length; i++) {
49    faqAnsClass[i].addEventListener('click', faqAnsPostTitleFN, false);
50}

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.