PageSourceSearch

https://roofing.kyiv.ua/cloud-cgi/static/uaprom-uc/production/design_template/1008/csjs/menu-triangle.js

js roofing.kyiv.ua collected 2026-10-07 16:49:49 UTC 2,974 bytes, 1 lines download raw bytes

1"use strict";var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof2(e)};!function(){function j(e,t){return(t.y-e.y)/(t.x-e.x)}function O(){}function e(n){return function(t,e){e.forEach(function(e){t.classList[n](e)})}}var W=e("add"),X=e("remove");function t(n,e){if(n){var t,o=e.contentDirection||"right",i=e.delay||300,c=e.menuItemSelector||".item",l=[].concat(e.menuItemActiveClassName||"hover"),u=[].concat(e.delayingClassName||"delaying"),r=e.activateCallback||O,a=e.deactivateCallback||O,s=e.mouseEnterCallback||O,m=e.mouseLeaveCallback||O,f=null,d=null,y=null,v=null,p=null,b={top:(t=n.getBoundingClientRect()).top+(window.pageYOffset||document.documentElement.scrollTop),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft)},_={x:b.left,y:b.top},w={x:b.left+n.offsetWidth,y:_.y},g={x:b.left,y:b.top+n.offsetHeight},E={x:b.left+n.offsetWidth,y:g.y},S=void 0,h=void 0;switch(o){case"top":S=_,h=w;break;case"bottom":S=E,h=g;break;case"left":S=g,h=_;break;default:S=w,h=E}var x=[].slice.call(n.querySelectorAll(c));return x.forEach(function(e){e.addEventListener("click",q),e.addEventListener("mouseenter",D)}),window.addEventListener("mousemove",L),window.addEventListener("click",T),n.addEventListener("mouseleave",I),function(){x.forEach(function(e){e.removeEventListener("click",q),e.removeEventListener("mouseenter",D)}),window.removeEventListener("mousemove",L),window.removeEventListener("click",T),n.removeEventListener("mouseleave",I)}}function L(e){y=v,v={x:e.pageX,y:e.pageY}}function k(){d&&clearTimeout(d)}function C(){f&&(X(f,l),a(f),f=null)}function A(e){e!==f&&(C(),W(e,l),r(e),f=e)}function N(){return!f||!v||!y||y.x<_.x||y.x>E.x||y.y<_.y||y.y>E.y||p&&v.x===p.x&&v.y===p.y||j(v,S)>j(y,S)||j(v,h)<j(y,h)?(p=null,X(n,u),!0):(p=v,W(n,u),!1)}function I(){N()&&(k(),m(f),C())}function q(){k(),A(this)}function D(){var e=null===f;!function e(t){if(k(),N())return A(t);d=setTimeout(function(){e(t)},i)}(this),e&&s(f)}function T(e){for(var t=e.target;t&&t!==n;)t=t.parentNode;t||C()}}"object"===("undefined"==typeof module?"undefined":_typeof(module))?module.exports=t:window.menuAim=t}(),window.menuAim(document.querySelector(".csjs-nav-list"),{contentDirection:"right",menuItemSelector:".cs-nav__item",menuItemActiveClassName:"cs-nav__item_state_hover",delayingClassName:"cs-nav__list_state_delaying"}),window.menuAim(document.querySelector(".cs-sub-nav"),{contentDirection:"right",menuItemSelector:".cs-sub-nav__item",menuItemActiveClassName:"cs-sub-nav__item_state_hover",delayingClassName:"cs-sub-nav_state_delaying"});

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.