PageSourceSearch

https://stadtfilter.ch/wp-content/plugins/side-menu-lite/public/assets/js/script.js?ver=4.2.1

js stadtfilter.ch collected 2026-10-02 16:47:35 UTC 948 bytes, 43 lines download raw bytes

1'use strict';
2
3/**
4 * SideMenuPro
5 * A JavaScript class for creating customizable side menus.
6 *
7 * @version 1.0.0
8 * @license MIT License
9 * @author Dmytro Lobov
10 * @url https://wow-estore.com/item/side-menu-pro/
11 */
12
13'use strict';
14
15document.addEventListener('DOMContentLoaded', function() {
16
17  const SideMenus = document.querySelectorAll('.side-menu');
18
19  if(SideMenus) {
20
21    SideMenus.forEach(sidemenu => {
22
23      const links = Array.from(sidemenu.querySelectorAll('.sm-link'));
24      links.forEach((link) => {
25        link.addEventListener('touchend', function(event){
26          sideToggleItemOpen(link, event);
27        });
28      });
29    });
30  }
31
32  function sideToggleItemOpen(link, event) {
33    const item = link.closest('.sm-item');
34    const {classList} = item;
35
36    if (!classList.contains('sm-open')) {
37      event.preventDefault();
38      classList.add('sm-open');
39      setTimeout(() => classList.remove('sm-open'), 3000);
40    }
41  }
42
43});

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.