PageSourceSearch

https://hotelmaltezos.com/app/themes/hotel-apts/assets/js/script.js?ver=1.8

js hotelmaltezos.com collected 2026-09-28 18:00:00 UTC 1,348 bytes, 50 lines download raw bytes

1checkSvgs();
2set_screen_width();
3var screenWidth = Math.max(
4    document.documentElement.clientWidth,
5    window.innerWidth || 0
6);
7/*addEventListener("resize", (event) => { checkHeaderPosition(); });*/
8window.addEventListener("resize", set_screen_width);
9
10function set_screen_width() {
11    screenWidth = Math.max(
12        document.documentElement.clientWidth,
13        window.innerWidth || 0
14    );
15    if (screenWidth >= 781 && document.body.classList.contains('menu_opened')) {
16        triggerMenu('mtv_sidebar_menu');
17    }
18}
19
20
21function checkSvgs() {
22    var images = document.querySelectorAll("img");
23    var length = images.length;
24    for (var i = 0; i < length; i++) {
25        var name = images[i].src;
26        if (name && !images[i].getAttribute('itemprop')) {
27            var fileExtension = name.split('.').pop();
28            if (fileExtension == 'svg') {
29                SVGInject(images[i]);
30            }
31        }
32    }
33
34}
35
36function mtvToggleMenu(el, screen) {
37
38    if (screenWidth >= 781 && screen == 'desktop') {
39        el.classList.toggle("active");
40    }
41    if (screenWidth < 781 && screen == 'mobile') {
42        el.classList.toggle("active");
43    }
44}
45
46function triggerMenu(elementID) {
47    var menu = document.getElementById(elementID);
48    menu.classList.toggle("opened");
49    document.body.classList.toggle('menu_opened');
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.