PageSourceSearch

https://www.eucerin.sk/dist/Eucerin/modules/SkipToMainContent.710ac6ec.js

js eucerin.sk collected 2026-10-06 18:31:07 UTC 3,762 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[83],{147:function(e,t,n){"use strict";n.r(t);var i=function(){function e(e){this.element=e,this.init()}return e.setup=function(t){void 0===t&&(t='[data-module="SkipToMainContent"][data-skip-main="true"]'),Array.from(document.querySelectorAll(t)).filter(function(e){return!e.dataset.moduleInitialized}).forEach(function(t){new e(t),t.dataset.moduleInitialized="true"})},e.prototype.init=function(){var e=this;this.hide(),document.addEventListener("cmpbox:closed",function(){e.activateTabBehavior()}),window.addEventListener("load",function(){var t=document.querySelector("#cmpbox");(!t||"true"===t.getAttribute("aria-hidden")||t&&t.style&&"none"===t.style.display)&&e.activateTabBehavior()}),this.element.addEventListener("click",function(){return e.scrollToFirstSection()}),this.element.addEventListener("keydown",function(t){"Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||(t.preventDefault(),e.scrollToFirstSection())}),this.element.addEventListener("blur",function(){return e.hide()})},e.prototype.activateTabBehavior=function(){var e=this;document.addEventListener("keydown",function(t){if("Tab"===t.key){var n=document.getElementById("site"),i=document.activeElement,o=e.getFocusableElements(n||document.body)[0],s=!(!n||!i||n.contains(i)),r=!i||i===document.body||i===document.documentElement,a=!t.shiftKey&&(r||s),c=!(!t.shiftKey||!o||i!==o);if(e.isVisible()||!a&&!c)e.isVisible()&&i===e.element&&!t.shiftKey&&setTimeout(function(){return e.hide()},0);else{t.preventDefault(),e.show(),e.element.focus();var u=function(t){"Tab"!==t.key||t.shiftKey||(setTimeout(function(){return e.hide()},0),document.removeEventListener("keydown",u,!0))},d=function(t){var n=t.target;n&&n!==e.element&&(e.hide(),document.removeEventListener("focusin",d,!0))};setTimeout(function(){document.addEventListener("keydown",u,!0),document.addEventListener("focusin",d,!0)},0)}}})},e.prototype.scrollToFirstSection=function(){var e=document.querySelector("main section, section");if(e){var t=e;t.setAttribute("tabindex","-1"),t.style.outline="none",setTimeout(function(){t.focus({preventScroll:!0}),t.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(function(){t.removeAttribute("tabindex"),t.style.outline=""},1e3)},0)}this.hide()},e.prototype.getFocusableElements=function(e){var t=this,n=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(n)).filter(function(e){if(e===t.element)return!1;var n=window.getComputedStyle(e),i=e.getClientRects();return"hidden"!==n.visibility&&"none"!==n.display&&i.length>0})},e.prototype.isVisible=function(){return this.element.classList.contains("is-visible")},e.prototype.show=function(){var e=this;this.element.classList.add("is-visible"),this.element.setAttribute("tabindex","0"),this.globalInvokeOnEnterSpace=function(t){if(e.isVisible()){var n=t.key,i="Enter"===n,o=" "===n||"Spacebar"===n,s=document.activeElement,r=s===e.element||s===document.body||s===document.documentElement;(i||o)&&r&&(t.preventDefault(),e.scrollToFirstSection())}},document.addEventListener("keydown",this.globalInvokeOnEnterSpace,!0),document.addEventListener("keyup",this.globalInvokeOnEnterSpace,!0)},e.prototype.hide=function(){this.element.classList.remove("is-visible"),this.element.setAttribute("tabindex","-1"),this.globalInvokeOnEnterSpace&&(document.removeEventListener("keydown",this.globalInvokeOnEnterSpace,!0),document.removeEventListener("keyup",this.globalInvokeOnEnterSpace,!0),this.globalInvokeOnEnterSpace=void 0)},e}();t.default=i,new i.setup}}]);
2//# sourceMappingURL=/dist/Eucerin/./modules/SkipToMainContent.710ac6ec.js.cb573975.map

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.