PageSourceSearch

https://www.raiffeisen.hu/o/raiffeisen-bank-theme/js/components/Co…?minifierType=js&t=1790855528265

js raiffeisen.hu collected 2026-10-01 11:54:40 UTC 3,042 bytes, 70 lines download raw bytes

1/*1786086074000*/
2"use strict";
3//raiffeisen card comparison
4let raiffeisenComponentGrid = (() => {
5    const app = () => {
6        function initializeGrids() {
7            const gridContainers = document.querySelectorAll('.rbhu-component-grid-content-section');
8
9            if (gridContainers || gridContainers.length !== 0) {
10                // Végigmegyünk az összes gridContainer-en
11                gridContainers.forEach(gridContainer => {
12                    const blocks = Array.from(gridContainer.querySelectorAll('.rbhu-grid-block'));
13
14                    function calculateBlocksPerRow() {
15                        const gridStyle = window.getComputedStyle(gridContainer);
16                        const gridTemplateColumns = gridStyle.getPropertyValue('grid-template-columns');
17                        const columns = gridTemplateColumns.split(' ');
18
19                        return columns.filter(col => col !== '0px' && col !== 'none').length;
20                    }
21
22                    const blocksPerRow = calculateBlocksPerRow();
23
24                    // Végigmegyünk az összes blokkon az adott gridContainer-en belül, és ellenőrizzük a sorokat
25                    for (let i = 0; i < blocks.length; i += blocksPerRow) {
26                        const rowBlocks = blocks.slice(i, i + blocksPerRow); // Egy sor elemei
27
28                        let maxLines = 1;
29
30                        // Ellenőrizzük, hogy van-e wrap-olt elem az adott sorban
31                        rowBlocks.forEach((block) => {
32                            const title = block.querySelector('.rbhu-grid-block-title');
33                            const lines = getLineCount(title);
34                            if (lines > maxLines) {
35                                maxLines = lines;
36                            }
37                        });
38
39                        // Ha van wrap-olt elem, akkor adjuk hozzá a megfelelő osztályt az összes blokkhoz az adott sorban
40                        if (maxLines > 1) {
41                            rowBlocks.forEach((block) => {
42                                const headerContainer = block.querySelector('.rbhu-component-grid-block-header-container');
43                                headerContainer.classList.add(maxLines === 2 ? 'two-line' : 'three-line');
44                            });
45                        }
46                    }
47                });
48            }
49        }
50
51        function getLineCount(element) {
52            if (!element) {
53                console.error('Element not found');
54                return 1;
55            }
56
57            const lineHeight = parseFloat(window.getComputedStyle(element).lineHeight);
58            const elementHeight = element.offsetHeight;
59
60            // Számoljuk ki a sorok számát
61            return Math.ceil(elementHeight / lineHeight);
62        }
63
64        // Az összes gridContainer-t inicializáljuk
65        initializeGrids();
66    };
67    return {
68        app: app,
69    };
70})();

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.