PageSourceSearch

https://szkoladoktorska.pk.edu.pl/wp-content/themes/pkr-multiporta…/assets/js/socialIconTooltip.js?ver=7.1.2

js pk.edu.pl collected 2026-09-24 08:30:23 UTC 1,250 bytes, 37 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2    const buttons = document.querySelectorAll('.uagb-ss__source-icon');
3    const platforms = ['Facebooku', 'Twitterze', 'LinkedIn', 'Poczcie'];
4
5    buttons.forEach((button, index) => {
6        const tooltip = document.createElement('span');
7        tooltip.classList.add('tooltip-text');
8
9        tooltip.textContent = 'Udostępnij na ' + (platforms[index] || 'Platformie');
10
11        button.appendChild(tooltip);
12
13        button.addEventListener('mouseenter', function() {
14            tooltip.style.visibility = 'visible';
15            tooltip.style.opacity = '1';
16        });
17
18        button.addEventListener('mouseleave', function() {
19            tooltip.style.visibility = 'hidden';
20            tooltip.style.opacity = '0';
21        });
22    });
23});
24
25(() => {
26    setTimeout(() => {
27    const items = document.querySelectorAll('.widget-area .wp-block-uagb-social-share-child .uagb-ss__link');
28    items.forEach(item => {
29        const name = item.getAttribute('aria-label');
30        const title = item.querySelector('.tooltip-text');
31        const label = 'Udostepnij na ' + name;
32        if(title){
33        title.setAttribute('aria-label',label);
34        }
35    });
36    }, 2000);   
37})();

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.