vendor: 655 bytes, lines 1-12
1/* 2 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). 3 * This devtool is neither made for production nor for readable output files. 4 * It uses "eval()" calls to create a separate source file in the browser devtools. 5 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) 6 * or disable the default devtool with "devtool: false". 7 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). 8 */ 9/******/ (function() { // webpackBootstrap 10/******/ var __webpack_modules__ = ({ 11 12/***/ "./
12web/app/themes/Emv/parts/blocks/acf-logo/index.js": 13/*!***********************************************************!*\ 14 !*** ./web/app/themes/Emv/parts/blocks/acf-logo/index.js ***! 15 \***********************************************************/ 16/***/ (function() { 17 18eval("const linesWidth = () => {\n const lines = document.querySelector('.block-logo__lines');\n\n if (window.innerWidth <= 991) {\n lines.removeAttribute('style');\n } else {\n const scrollTop = window.pageYOffset || document.documentElement.scrollTop;\n const linesRect = lines.getBoundingClientRect();\n const halfOfWindow = window.innerHeight / 2;\n const centerOfWindow = scrollTop + halfOfWindow;\n const centerOfBlock = linesRect.top + scrollTop;\n const difference = centerOfBlock - centerOfWindow;\n\n if (halfOfWindow > difference) {\n const percentage = 100 - 100 * difference / halfOfWindow;\n const svg = lines.nextElementSibling;\n const svgRect = svg.getBoundingClientRect();\n const width = svgRect.left / 100 * percentage;\n lines.style.width = `${width}px`;\n } else {\n lines.removeAttribute('style');\n }\n }\n};\n\nwindow.addEventListener('load', () => {\n linesWidth();\n});\nwindow.addEventListener('scroll', () => {\n linesWidth();\n});\nwindow.addEventListener('resize', () => {\n linesWidth();\n});\n\n//# sourceURL=webpack://project/./web/app/themes/Emv/parts/blocks/acf-logo/index.js?"); 19 20/***/ })
20 21 22/******/ }); 23/************************************************************************/ 24/******/ 25/******/ // startup 26/******/ // Load entry module and return exports 27/******/ // This entry module can't be inlined because the eval devtool is used. 28/******/ var __webpack_exports__ = {}; 29/******/ __webpack_modules__["./web/app/themes/Emv/parts/blocks/acf-logo/index.js"](); 30/******/ 31/******/ })() 32;
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.