PageSourceSearch

https://igda-gasig.org/wp-content/themes/icelander/assets/js/scripts-global.js?ver=1.7.6

js igda-gasig.org collected 2026-09-24 19:29:52 UTC 2,325 bytes, 152 lines download raw bytes

1/**
2 * Theme frontend scripts
3 *
4 * @package    Icelander
5 * @copyright  WebMan Design, Oliver Juhas
6 *
7 * @since    1.0.0
8 * @version  1.6.2
9 *
10 * Contents:
11 *
12 * 10) Basics
13 * 20) Content
14 * 30) Custom header
15 * 40) Sticky header
16 */
17
18( function( $ ) {
19
20	'use strict';
21
22
23
24
25
26	/**
27	 * 10) Basics
28	 */
29
30		var
31			$breakpoints           = ( 'undefined' !== typeof $icelanderBreakpoints ) ? ( $icelanderBreakpoints ) : ( { 'xl' : 1280 } ),
32			$introMedia            = $( document.getElementById( 'intro-media' ) ),
33			$compactLayoutProjects = $( '.portfolio-style-compact .posts .type-wm_projects' );
34
35
36
37		/**
38		 * Tell CSS that JS is enabled...
39		 */
40
41			$( '.no-js' )
42				.removeClass( 'no-js' );
43
44
45
46		/**
47		 * Fixing Recent Comments widget multiple appearances
48		 */
49
50			$( '.widget_recent_comments ul' )
51				.attr( 'id', '' );
52
53
54
55		/**
56		 * Responsive videos
57		 */
58
59			if ( $().fitVids ) {
60
61				$( document.getElementById( 'page' ) )
62					.fitVids();
63
64			} // /fitVids
65
66
67
68		/**
69		 * Primary menu fallback
70		 */
71
72			$( '#menu-primary.menu-fallback .menu-item-has-children > a' )
73				.append( ' <span class="expander" aria-hidden="true"></span>' );
74
75
76
77
78
79	/**
80	 * 20) Content
81	 */
82
83		/**
84		 * Compact projects layout focus
85		 */
86
87			$compactLayoutProjects
88				.on( 'focus.aria mouseenter.aria', 'a', function( e ) {
89
90					// Processing
91
92						$( this )
93							.closest( '.type-wm_projects' )
94								.addClass( 'focus' );
95
96				} )
97				.on( 'blur.aria mouseleave.aria', 'a', function( e ) {
98
99					// Processing
100
101						$( this )
102							.closest( '.type-wm_projects' )
103								.removeClass( 'focus' );
104
105				} );
106
107
108
109
110
111	/**
112	 * 30) Custom header
113	 */
114
115		if ( $introMedia.length ) {
116			$introMedia
117				.parent( '.intro-special' )
118					.addClass( 'intro-special-has-media' );
119		}
120
121		$( document )
122			.on( 'wp-custom-header-video-loaded', function() {
123
124				// Processing
125
126					$introMedia
127						.addClass( 'has-header-video' );
128
129			} );
130
131
132
133
134
135	/**
136	 * 40) Sticky header
137	 */
138
139		if ( $().scrollWatch && $( 'body' ).hasClass( 'has-sticky-header' ) ) {
140
141			$( document.getElementById( 'masthead' ) )
142				.scrollWatch( {
143					offset : 50,
144				} );
145
146		} // /scrollWatch
147
148
149
150
151
152} )( 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.