PageSourceSearch

https://www.profinfo.pl/blog/wp-content/cache/min/1/blog/wp-conten…/assets/js/functions.js?ver=1784095485

js profinfo.pl collected 2026-09-24 19:14:24 UTC 4,331 bytes, 7 lines download raw bytes

1(function($){"use strict";var body,masthead,menuToggle,headerMenu,menuPrimary,menuSecondary,resizeTimer;function initMainNavigation(container){var dropdownToggle=$('<button />',{'class':'dropdown-toggle','aria-expanded':!1}).append($('<span />',{'class':'screen-reader-text',text:screenReaderText.expand}));container.find('.menu-item-has-children > a').after(dropdownToggle);container.find('.current-menu-ancestor > button').addClass('toggled-on').attr('aria-expanded','true').find('.screen-reader-text').text(screenReaderText.collapse);container.find('.current-menu-ancestor > .sub-menu').addClass('toggled-on');container.find('.dropdown-toggle').click(function(e){var _this=$(this),screenReaderSpan=_this.find('.screen-reader-text');e.preventDefault();_this.toggleClass('toggled-on');_this.next('.children, .sub-menu').toggleClass('toggled-on');_this.attr('aria-expanded',_this.attr('aria-expanded')==='false'?'true':'false');screenReaderSpan.text(screenReaderSpan.text()===screenReaderText.expand?screenReaderText.collapse:screenReaderText.expand)})}
2initMainNavigation($('.header__menu--primary'));initMainNavigation($('.header__menu--secondary'));masthead=$('#masthead');menuToggle=masthead.find('#menu-toggle');headerMenu=masthead.find('#header-menu');menuPrimary=masthead.find('#menu-primary');menuSecondary=masthead.find('#menu-secondary');(function(){if(!menuToggle.length){return}
3menuToggle.add(menuPrimary).add(menuSecondary).attr('aria-expanded','false');menuToggle.on('click.melina',function(){$(this).add(headerMenu).toggleClass('toggled-on');$(this).add(menuPrimary).add(menuSecondary).attr('aria-expanded',$(this).add(menuPrimary).add(menuSecondary).hasClass('toggled-on'))})})();(function(){if(!menuPrimary.length||!menuPrimary.children().length){return}
4function toggleFocusClassTouchScreen(){if(window.innerWidth>=960){$(document.body).on('touchstart.melina',function(e){if(!$(e.target).closest('.header__menu--primary li').length){$('.header__menu--primary li').removeClass('focus')}});menuPrimary.find('.menu-item-has-children > a').on('touchstart.melina',function(e){var el=$(this).parent('li');if(!el.hasClass('focus')){e.preventDefault();el.toggleClass('focus');el.siblings('.focus').removeClass('focus')}})}else{menuPrimary.find('.menu-item-has-children > a').unbind('touchstart.melina')}}
5if('ontouchstart' in window){$(window).on('resize.melina',toggleFocusClassTouchScreen);toggleFocusClassTouchScreen()}
6menuPrimary.find('a').on('focus.melina blur.melina',function(){$(this).parents('.menu-item').toggleClass('focus')})})();function initShowComments(container){var showCommentsButton=$('<button />',{'class':'button button--show-commets','aria-expanded':!1}).append($('<span />',{'class':'button__text',text:showCommentsText.show}));container.find('.comments-area__wrapper').before(showCommentsButton);container.find('.button.button--show-commets').click(function(e){var _this=$(this),showCommentsSpan=_this.find('.button__text');e.preventDefault();_this.toggleClass('toggled-on');_this.next('.comments-area__wrapper').toggleClass('toggled-on');_this.attr('aria-expanded',_this.attr('aria-expanded')==='false'?'true':'false');showCommentsSpan.text(showCommentsSpan.text()===showCommentsText.show?showCommentsText.close:showCommentsText.show)})}
7initShowComments($('#comments'));$(document).ready(function(){body=$(document.body);$(window).on('scroll.melina',function(){if($(this).scrollTop()>$(window).height()/2){$('#scroll-to-top').fadeIn(1000)}else{$('#scroll-to-top').fadeOut(1000)}});$('#scroll-to-top').on('click.melina',function(){$('html, body').animate({scrollTop:0},1000);return!1});$('.comments-area__wrapper').hide();$('.button--show-commets').toggle(function(){$('.comments-area__wrapper').slideDown(200,function(){$.scrollTo($('.comments-area__wrapper'),{duration:600,offset:{'top':-48}})})},function(){$('.comments-area__wrapper').slideUp(200)});$('#menu-item-search > a').on('click.melina',function(event){event.preventDefault();$('#search-overlay').addClass('search-overlay--open');$('#search-overlay > form > input[type="search"]').focus()});$('#search-overlay, #search-overlay .button--close').on('click.melina keyup.melina',function(event){if(event.target==this||event.target.className=='button--close'||event.keyCode==27){$(this).removeClass('search-overlay--open')}})})})(jQuery)

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.