PageSourceSearch

https://www.beiersdorf.gr/dist/bdfcw/modules/stageHeadlineResize.c20967e9.js

js beiersdorf.gr collected 2026-10-06 12:48:22 UTC 2,065 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3175],{64850(t,e,i){var o=i(20017),n=function(){function t(t){this.element=t,this.heading=this.element.querySelector("h2"),this.maxLines=2,this.lineHeightRatio=1.1,this.maxDesktopFontSize=50,this.minDesktopFontSize=this.maxDesktopFontSize-.33*this.maxDesktopFontSize,this.maxMobileFontSize=30,this.minMobileFontSize=this.maxMobileFontSize-.33*this.maxMobileFontSize,this.resize()}return t.setup=function(e){void 0===e&&(e='[data-module="stageHeadlineResize"]'),Array.from(document.querySelectorAll(e)).filter(function(t){return!t.dataset.moduleInitialized}).forEach(function(e){new t(e),e.dataset.moduleInitialized="true"})},t.prototype.resize=function(){var t,e;this.heading.removeAttribute("style"),this.hide(),t=this.getFontSize(),e=this.getLineHeight();var i=-1!==navigator.userAgent.indexOf("Chrome");if(!this.isTextInAllowedRows(t))return this.isTextMore2Rows(e)?(this.switchToSmallFont(),void this.show()):void(i&&this.show());this.show()},t.prototype.switchToSmallFont=function(){var t=(0,o.Fr)()?this.minMobileFontSize:this.minDesktopFontSize;this.setFontSize(t)},t.prototype.isTextInAllowedRows=function(t){var e=this,i=e.heading,o=e.maxLines,n=e.lineHeightRatio;return Math.round(i.offsetHeight)==Math.round(t*n)||i.offsetHeight==o*Math.round(t*n)},t.prototype.isTextMore2Rows=function(t){var e=this.heading,i=this.maxLines;return e.offsetHeight/t>i},t.prototype.hide=function(){return this.heading.style.visibility="hidden"},t.prototype.getFontSize=function(){var t=window.getComputedStyle(this.heading,null).getPropertyValue("font-size");return parseFloat(t)},t.prototype.getLineHeight=function(){var t=window.getComputedStyle(this.heading,null).getPropertyValue("line-height");return parseFloat(t)},t.prototype.show=function(){return this.heading.style.visibility="visible"},t.prototype.setFontSize=function(t){this.heading.style.fontSize=t+"px"},t}();const s=n;new n.setup,i.d(e,["default",0,s])}}]);
2//# sourceMappingURL=/dist/bdfcw/./modules/stageHeadlineResize.c20967e9.js.d775acb6.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.