PageSourceSearch

https://tjc.org.my/wp-content/uploads/sites/146/custom-css-js/7450.js?v=3719

js tjc.org.my collected 2026-09-24 10:18:24 UTC 1,193 bytes, 35 lines download raw bytes

1/******* Do not edit this file *******
2Simple Custom CSS and JS - by Silkypress.com
3Saved: Jun 02 2026 | 02:23:34 */
4document.addEventListener('DOMContentLoaded', function () {
5  const toggleLabel = document.querySelector('.toggle_submenu');
6  const menu = document.querySelector('.submenu_wrap .menu');
7
8  if (toggleLabel && menu) {
9    // Hide menu initially on mobile
10//     menu.style.display = 'none';
11
12    toggleLabel.addEventListener('click', function () {
13      const isOpen = menu.style.display === 'block';
14      menu.style.display = isOpen ? 'none' : 'block';
15      toggleLabel.classList.toggle('open', !isOpen);
16    });
17
18    // Close menu when a menu item is clicked
19    menu.querySelectorAll('a').forEach(function (link) {
20      link.addEventListener('click', function () {
21        menu.style.display = 'none';
22        toggleLabel.classList.remove('open');
23      });
24    });
25
26    // Close menu when clicking outside
27    document.addEventListener('click', function (e) {
28      if (!toggleLabel.closest('.submenu_wrap').contains(e.target)) {
29        menu.style.display = 'none';
30        toggleLabel.classList.remove('open');
31      }
32    });
33  }
34});
35

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.