PageSourceSearch

https://www.euroguidance.lt/wp-content/themes/unitypress/js/ownScript.js?ver=7.1.2

js euroguidance.lt collected 2026-10-02 06:06:06 UTC 4,341 bytes, 148 lines download raw bytes

1jQuery(document).ready(function(){
2/*global jQuery:false */
3/*jshint devel:true, laxcomma:true, smarttabs:true */
4"use strict";
5
6	// responsive magic
7	var alterClass = function() {
8		var ww = document.body.clientWidth;
9		if (ww < 1155) {
10		  jQuery('body').addClass('tmnf_respo_magic');
11		} else if (ww >= 1155) {
12		  jQuery('body').removeClass('tmnf_respo_magic');
13		};
14	  };
15	  jQuery(window).resize(function(){
16		alterClass();
17	  });
18	  //Fire it when the page first loads:
19	  alterClass();
20
21	// show navigation when scroll up
22	var c, currentScrollTop = 0,
23	 navbar = jQuery('.will_stick');
24	
25	jQuery(window).scroll(function () {
26		var a = jQuery(window).scrollTop() -200;
27		var b = navbar.height();
28		
29		currentScrollTop = a;
30		
31		if (c < currentScrollTop && a > b + b) {
32		  navbar.addClass("scrollUp");
33		} else if (c > currentScrollTop && !(a <= b)) {
34		  navbar.removeClass("scrollUp");
35		}
36		c = currentScrollTop;
37	});
38	// fix navigation when scroll down 400px
39	jQuery(".will_stick");
40	jQuery(function () {
41		jQuery(window).scroll(function () {
42			if (jQuery(this).scrollTop() > 400) {
43				jQuery('.will_stick').addClass("scrollDown")
44			} else {
45				jQuery('.will_stick').removeClass("scrollDown")
46			}
47		});
48	});
49
50
51	// scroll to top
52	jQuery(".scrollTo_top").hide();
53	jQuery(function () {
54		jQuery(window).scroll(function () {
55			if (jQuery(this).scrollTop() > 100) {
56				jQuery('.scrollTo_top').fadeIn();
57			} else {
58				jQuery('.scrollTo_top').fadeOut();
59			}
60		});
61
62	jQuery('.scrollTo_top a').on('click',function(){
63		jQuery('html, body').animate({scrollTop:0}, 500 );
64		return false;
65	});
66	});
67		
68	// searchtrigger
69	jQuery('a.searchOpen').on('click',function(){ 
70			jQuery('#curtain').toggleClass('open'); 
71            jQuery(this).toggleClass('opened'); 
72			return false; 
73	}); 
74	
75	jQuery('a.curtainclose').on('click',function(){ 
76			jQuery('#curtain').removeClass('open'); 
77			jQuery('a.searchOpen').removeClass('opened');
78			return false; 
79	});
80	
81	/* menutrigger */
82	jQuery('a.menuOpen').on('click',function(){ 
83            jQuery(this).toggleClass('opened'); 
84			jQuery('#flyoff').toggleClass('visible'); 
85			jQuery('.action-overlay').toggleClass('visible');
86			jQuery('body').toggleClass('flyoff-is-visible');
87			return false; 
88	}); 
89	
90	jQuery('a.menuClose').on('click',function(){ 
91			jQuery('a.menuOpen').removeClass('opened');
92			jQuery('#flyoff').removeClass('visible');
93			jQuery('.action-overlay').removeClass('visible');
94			jQuery('body').removeClass('flyoff-is-visible');
95			return false; 
96	});
97	
98	jQuery('.action-overlay').on('click',function(){ 
99			jQuery('a.menuOpen').removeClass('opened');
100			jQuery('#flyoff').removeClass('visible');
101			jQuery('.action-overlay').removeClass('visible');
102			jQuery('body').removeClass('flyoff-is-visible');
103			return false; 
104	});
105	
106
107
108	// mobile menu
109	
110    jQuery(document).ready(function () {
111        tmnf_dropdown_mobile();
112    });
113	
114    window.tmnf_dropdown_mobile = () => {
115        let windowW = jQuery(window).width();
116
117        jQuery('#main-nav li.menu-item-has-children > a').each(function () {
118            jQuery(this).append('<span class="tmnf_mobile_dropdown"></span>');
119        });
120
121        jQuery('body').find('.tmnf_mobile_dropdown').on('click', function (e) {
122            e.preventDefault();
123            let dd = jQuery(this);
124            dd.closest('li').toggleClass(function () {
125                if ( window.innerWidth < 1155) {
126                    let subMenu = dd.closest('li').children('.sub-menu');
127                    subMenu.toggle();
128                }
129                return 'active';
130            });
131        });
132    };
133
134});
135
136jQuery( function ( $ ) {
137	// Focus styles for menus when using keyboard navigation
138  
139	// Properly update the ARIA states on focus (keyboard) and mouse over events
140	$( '[role="menubar"]' ).on( 'focus.aria  mouseenter.aria', '[aria-haspopup="true"]', function ( ev ) {
141	  $( ev.currentTarget ).attr( 'aria-expanded', true );
142	} );
143  
144	// Properly update the ARIA states on blur (keyboard) and mouse out events
145	$( '[role="menubar"]' ).on( 'blur.aria  mouseleave.aria', '[aria-haspopup="true"]', function ( ev ) {
146	  $( ev.currentTarget ).attr( 'aria-expanded', false );
147	} );
148  } );

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.