PageSourceSearch

https://www.1250.rocks/typo3conf/ext/corporate_site/Resources/Public/JavaScript/main.js?1686998628

js 1250.rocks collected 2026-10-08 11:25:50 UTC 2,407 bytes, 74 lines download raw bytes

1"use strict";
2
3$(document).ready(function () {
4  $(".dropdown").hover(function () {
5    var dropdownMenu = $(this).children(".dropdown-menu");
6    if (dropdownMenu.is(":visible")) {
7      dropdownMenu.parent().toggleClass("open");
8    }
9  });
10  $(".dropdown-menu-content").on('click', function () {
11    $('.dropdown-menu').addClass('show');
12  });
13  $("#main").on('click', function () {
14    $('.dropdown-menu').removeClass('show');
15  });
16  var myCollapsible = document.getElementById('navbarMain');
17  myCollapsible.addEventListener('show.bs.collapse', function () {
18    $('#header').addClass('menu-open');
19  });
20  var myCollapsible = document.getElementById('navbarMain');
21  myCollapsible.addEventListener('hide.bs.collapse', function () {
22    $('#header').removeClass('menu-open');
23  });
24  $('#header .hamburger').on('click', function () {
25    $(this).toggleClass('is-active');
26  });
27  $("#navbarMain  a").on('click', function (event) {
28    if ($(window).width() < 768) {
29      $('#header .hamburger').trigger('click');
30    }
31
32    // Make sure this.hash has a value before overriding default behavior
33    if (this.hash !== "") {
34      // Store hash
35      var hash = this.hash;
36      if ($(hash).length) {
37        // Prevent default anchor click behavior
38        event.preventDefault();
39
40        // Using jQuery's animate() method to add smooth page scroll
41        // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
42        //window.location.hash = hash;
43
44        $('html, body').animate({
45          scrollTop: $(hash).offset().top - 120
46        }, 800, function () {
47
48          // Add hash (#) to URL when done scrolling (default click behavior)
49        });
50      }
51    } // End if
52  });
53
54  if (window.location.hash) {
55    $('html, body').animate({
56      scrollTop: $(window.location.hash).offset().top - 136
57    }, 800, function () {});
58  }
59  if ($(window).width() > 767) {
60    if ($('#main > *:first-child').hasClass('keyvisual-slider') | $('#main > *:first-child').has('.keyvisual-slider').length) {
61      $('#header').removeClass('scroll');
62      $(window).scroll(function () {
63        if ($(this).scrollTop() > 50) {
64          $('#header').addClass('scroll');
65        } else {
66          $('#header').removeClass('scroll');
67        }
68      });
69    } else {
70      $('#header').addClass('scroll');
71      $('#main').addClass('subpage');
72    }
73  }
74});

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.