PageSourceSearch

https://gohla-immobilien.de/media/templates/site/j51_novah/js/scripts.js?534f39

js gohla-immobilien.de collected 2026-10-07 05:02:37 UTC 3,529 bytes, 116 lines download raw bytes

1(function($) {
2  "use strict";
3
4  $(document).ready(function() {
5
6    var templateOptions = Joomla.getOptions('j51_template');
7
8    // Add parent-hover class to hovered parent items
9    $('.hornav li').hover(function() {
10      $(this).addClass('parent-hover');
11    }, function() {
12      $(this).removeClass('parent-hover');
13    });
14
15    // Smoothscroll
16    $('.menu a').click(function() {
17      if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
18        var target = $(this.hash);
19        target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
20        if (target.length) {
21          $('html,body').animate({
22            scrollTop: target.offset().top + parseInt(templateOptions.scrolltoOffset)
23          }, 800);
24          return false;
25        }
26      }
27    });
28
29    // Bootstrap stuff
30    $(document).ready(function() {
31
32      // Turn radios into btn-group
33      $('.radio.btn-group label').addClass('btn');
34      $(".btn-group label:not(.active)").click(function() {
35        var label = $(this);
36        var input = $('#' + label.attr('for'));
37
38        if (!input.prop('checked')) {
39          label.closest('.btn-group').find("label").removeClass('active btn-success btn-danger btn-primary');
40          if (input.val() == '') {
41            label.addClass('active btn-primary');
42          } else if (input.val() == 0) {
43            label.addClass('active btn-danger');
44          } else {
45            label.addClass('active btn-success');
46          }
47          input.prop('checked', true);
48        }
49      });
50      $(".btn-group input[checked=checked]").each(function() {
51        if ($(this).val() == '') {
52          $("label[for=" + $(this).attr('id') + "]").addClass('active btn-primary');
53        } else if ($(this).val() == 0) {
54          $("label[for=" + $(this).attr('id') + "]").addClass('active btn-danger');
55        } else {
56          $("label[for=" + $(this).attr('id') + "]").addClass('active btn-success');
57        }
58      });
59    })
60
61  });
62})(jQuery);
63
64(function() {
65  document.addEventListener('DOMContentLoaded', function() {
66    var templateOptions = Joomla.getOptions("j51_template");
67
68    // Mobile menu
69    const menu = new MmenuLight(document.querySelector("#mobile-menu"));
70
71    const navigator = menu.navigation({
72      theme: "dark"
73    });
74
75    const drawer = menu.offcanvas({
76      position: templateOptions.mobileMenuPosition
77    });
78
79    document
80      .querySelector('a[href="#mobile-menu"]')
81      .addEventListener("click", evnt => {
82        evnt.preventDefault();
83        drawer.open();
84      });
85
86
87    var executeThis = function() {
88      var continuousElements = document.getElementsByClassName("animate")
89      for (var i = 0; i < continuousElements.length; i++) {
90        new Waypoint({
91          element: continuousElements[i],
92          handler: function() {
93            this.element.classList.add("animated");
94          },
95          offset: "85%"
96        })
97      }
98    };
99    var checkWaypoint = function() {
100      if (typeof Waypoint === "undefined") {
101        setTimeout(checkWaypoint, 50);
102      } else {
103        executeThis();
104      }
105    };
106    checkWaypoint();
107  });
108})();
109
110function dodajAktywne(elem) {
111  var a = document.getElementsByTagName('a')
112  for (i = 0; i < a.length; i++) {
113    a[i].parentNode.classList.remove('active')
114  }
115  elem.parentNode.classList.add('active');
116}

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.