PageSourceSearch

https://www.bernmobil.ch/themes/custom/iq_custom/resources/js/navigation.js?tlijg6

js bernmobil.ch collected 2026-09-24 08:52:00 UTC 796 bytes, 22 lines download raw bytes

1(function ($, Drupal) {
2
3  // If touch device, add class to navbars
4  if ((('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0))) {
5    $('.nav-main').find('.dropdown-toggle').unbind('click');
6    $('.nav-main').find('.dropdown-toggle').click(function (e) {
7      $(this).parent().siblings().find('.dropdown-toggle').attr('data-clicked', 'false');
8      if ($(this).attr('data-clicked') == 'true') {
9        window.location = $(this).attr('href');
10      }
11      $(this).attr('data-clicked', 'true');
12    });
13  }
14
15  // Mobile navigation
16  $('.nav-mobile .dropdown .dropdown-toggle').click(function (e) {
17    e.preventDefault();
18    $(this).parent().toggleClass('open');
19    $(this).siblings('.dropdown-menu').slideToggle(500);
20  });
21
22})(jQuery, Drupal);

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.