PageSourceSearch

https://www.lodzkie.pl/templates/lodzkie-22/local/js/target-blank-page.js

js lodzkie.pl collected 2026-10-02 03:06:18 UTC 1,422 bytes, 39 lines download raw bytes

1document.addEventListener('DOMContentLoaded', () => {
2    let linki = document.getElementsByTagName('a');
3    for (let i = 0; i < linki.length; i++) {
4        let link = linki[i];
5        if (link.hasAttribute('target') && link.getAttribute('target') === '_blank') {
6            link.setAttribute('title', 'Strona otwiera się w nowym oknie');
7        }
8    }
9})
10
11document.addEventListener("DOMContentLoaded", () => {
12    let componentHeadingElements = document.getElementsByClassName("componentheading");
13    const re = /(.+)(- lodzkie\.pl)/;
14    for (let i = 0; i < componentHeadingElements.length; i++) {
15        let elem = componentHeadingElements[i];
16        let text = elem.innerHTML;
17        let newText = text.replace(re, "$1<span class='sr-only'>$2</span>");
18        elem.innerHTML = newText;
19    }
20});
21
22document.addEventListener("DOMContentLoaded", () => {
23    let items = document.querySelectorAll("div.media_gal a");
24    items.forEach(item => {
25        item.removeAttribute("style");
26    });
27    let items_img = document.querySelectorAll("div.media_gal img");
28    items_img.forEach(item => {
29        item.removeAttribute("style");
30    });
31});
32
33$(document).ready(function() {
34    // Sprawdź, czy adres URL kończy się dokładnie na #nav-profile-tab
35    if (window.location.hash === '#nav-profile') {
36        // Aktywuj tylko tę jedną zakładkę w Bootstrap 4
37        $('#nav-profile').tab('show');
38    }
39});

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.