PageSourceSearch

https://jasapengaspalanjakarta.com/js/function.js

js jasapengaspalanjakarta.com collected 2026-10-06 12:46:58 UTC 1,452 bytes, 40 lines download raw bytes

1// faq
2document.querySelectorAll('.faq-question').forEach((item) => {
3    item.addEventListener('click', () => {
4        const answer = item.nextElementSibling;
5        const isVisible = answer.style.display === 'block';
6        
7        // Menutup semua jawaban
8        document.querySelectorAll('.faq-answer').forEach((el) => el.style.display = 'none');
9
10        // Menampilkan jawaban yang diklik
11        answer.style.display = isVisible ? 'none' : 'block';
12    });
13});
14
15// readmore button (show hide)
16function toggleContent() {
17    const moreContent = document.querySelector('.more-content');
18    const readMoreBtn = document.querySelector('.read-more-btn');
19
20    if (moreContent.style.display === 'none' || moreContent.style.display === '') {
21        moreContent.style.display = 'block';
22        readMoreBtn.textContent = 'Ciutkan';
23    } else {
24        moreContent.style.display = 'none';
25        readMoreBtn.textContent = 'Baca selengkapnya';
26    }
27}
28
29// Nav Menu
30
31document.addEventListener('DOMContentLoaded', function () {
32    const layananContainer = document.getElementById('layananContainer');
33
34    document.querySelector('.layanan-btn').addEventListener('click', function (event) {
35        event.preventDefault(); // Mencegah aksi default link
36
37        // Toggle kelas 'active' untuk menampilkan atau menyembunyikan kontainer layanan
38        layananContainer.classList.toggle('active');
39    });
40});

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.