PageSourceSearch

https://czech.payu.com/wp-content/themes/global-website/assets/js/main-nav-wrap-landing.js?ver=1.0.0

js payu.com collected 2026-09-24 07:32:58 UTC 909 bytes, 25 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2  const mainNavWrapLanding = document.querySelector('#main-nav-wrap-landing');
3  if (mainNavWrapLanding) {
4    const toggleButton = document.querySelector('.language-selector-toggle');
5    const optionsList = document.querySelector('.language-options');
6  
7    if (!toggleButton || !optionsList) return;
8  
9    toggleButton.addEventListener('click', function (e) {
10      e.stopPropagation();
11      const isExpanded = toggleButton.getAttribute('aria-expanded') === 'true';
12      toggleButton.setAttribute('aria-expanded', String(!isExpanded));
13      optionsList.hidden = isExpanded;
14    });
15  
16    document.addEventListener('click', function () {
17      toggleButton.setAttribute('aria-expanded', 'false');
18      optionsList.hidden = true;
19    });
20  
21    optionsList.addEventListener('click', function (e) {
22      e.stopPropagation();
23    });
24  }
25});

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.