PageSourceSearch

https://online.agiofunds.pl/assets/js/themesScript.js?timestamp=6.8.7-595

js agiofunds.pl collected 2026-09-24 23:47:16 UTC 3,296 bytes, 110 lines download raw bytes

1
2const patterns = {
3    'alior': 'alior',
4    'iwealth': 'iwealth',
5    'bps': 'bps-skarbiec',
6    'qfund': 'qvalue',
7    'qvalue': 'qvalue',
8    'erste': 'erste',
9    'bnp': 'bnp',
10    'energia': 'energia',
11    'pge': 'energia',
12    'psdm': 'psdm',
13    'evodm': 'psdm',
14    'superfund': 'superfund',
15    'tkf': 'tkf',
16    'millennium': 'millennium',
17    'investors': 'investors',
18    'ipopema': 'ipopema',
19    'skarbiec': 'skarbiec',
20    'pocztowy': 'pocztowy',
21    'noblefunds': 'noblefunds',
22    'velofunds': 'velofunds',
23    'rockbridge': 'rockbridge',
24    'baltic': 'balticcapital',
25    'agio': 'agio',
26    'neo': 'rockbridge',
27    'michaelstrom': 'michaelstrom',
28    'phinance': 'phinance',
29    'navigator': 'finance-navigator',
30    'vig': 'vig',
31    'uniqa': 'uniqa',
32    'nestbank': 'nestbank',
33    'allianz': 'allianz',
34    'wcag': 'wcag'
35};
36
37function getCookie(cname) {
38    var name = cname + "=";
39    var decodedCookie = decodeURIComponent(document.cookie);
40    var ca = decodedCookie.split(';');
41    for (var i = 0; i < ca.length; i++) {
42        var c = ca[i];
43        while (c.charAt(0) == ' ') {
44            c = c.substring(1);
45        }
46        if (c.indexOf(name) == 0) {
47            return c.substring(name.length, c.length);
48        }
49    }
50    return "";
51}
52
53function getClass(hostname) {
54    var savedTheme = getCookie('theme');
55    if (savedTheme) {
56        return savedTheme;
57    }
58    const keys = Object.keys(patterns);
59    for (let i = 0; i < keys.length; i++) {
60        if (hostname.indexOf(keys[i]) !== -1) {
61            return patterns[keys[i]];
62        }
63    }
64    return 'default';
65}
66
67var hostname = window.location.hostname;
68
69const stopAnimations = JSON.parse(localStorage.getItem('WCAG2.1AA') || '{}')['stop-animations'];
70
71var oldBrowserCookieName = 'sti24-compatibility-check';
72var id = 'dist-style';
73var className = getClass(hostname);
74var theme = 'sti24-theme--' + className;
75var styleContainer = document.getElementsByTagName('head')[0];
76var platformIntro = document.getElementById('platform-intro');
77var oldBrowserBlock = document.getElementById('old-browser-block');
78if (platformIntro.classList) {
79    platformIntro.classList.add(theme);
80    oldBrowserBlock.classList.add(theme);
81} else {
82    platformIntro.className += " " + theme;
83    oldBrowserBlock.className += " " + theme;
84}
85if (stopAnimations) {
86    document.getElementsByClassName('intro-spinner')[0].style = "display:none";
87}
88platformIntro.style.display = "block";
89var distStyle = document.getElementById(id);
90var link = document.createElement('link');
91link.id = id;
92link.rel = 'stylesheet';
93link.href = 'styles-' + className + '.css' + '?timestamp=' + window.appVersion;
94styleContainer.appendChild(link);
95
96if (distStyle) {
97    distStyle.parentNode.removeChild(distStyle);
98}
99var favicon = document.createElement('link');
100favicon.rel = 'icon';
101favicon.type = 'image/x-icon';
102favicon.href = '/assets/images/favicon/' + className + '.ico';
103document.head.appendChild(favicon);
104
105document.getElementById('proceed-with-old-browser').addEventListener('click', function () {
106    var today = new Date();
107    var expirationDate = new Date(today.getFullYear() + 10, 11, 30);
108    document.cookie = oldBrowserCookieName + '=true; path=/; expires=' + expirationDate.toUTCString();
109    window.location.reload();
110});

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.