PageSourceSearch

https://www.esl.ch/themes/custom/esl_theme/assets/styles/pages/lang-switcher/lang-switcher.js?tlvj14

js esl.ch collected 2026-09-26 01:53:42 UTC 1,030 bytes, 27 lines download raw bytes

1(function (Drupal, $) {
2  Drupal.behaviors.langSwitcher = {
3    attach: function (context, settings) {
4      $(once('current-language', '.current-language', context)).bind('click', function (e) {
5          e.preventDefault();
6          $('.current-language').toggleClass('active');
7          $('.btn-lang-container').toggleClass('show');
8          $('.language-switcher').toggleClass('open');
9          if ($('.language-switcher').hasClass('open')) {
10            setTimeout(function () {
11              $('.config-pages-header-top-bar-about__field-topbar-elements').addClass('hide');
12            }, 100);
13          } else {
14            setTimeout(function () {
15              $('.config-pages-header-top-bar-about__field-topbar-elements').removeClass('hide');
16            }, 220);
17          }
18        }
19      );
20      $('.btn-lang-container').find('.btn-close').click(function () {
21        $('.btn-lang-container').removeClass('show');
22        $('.current-language').removeClass('active');
23      });
24    }
25  };
26
27})(Drupal, jQuery);

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.