PageSourceSearch

https://sanofuertefeliz.com/wp-content/themes/lovecraft/js/global.js?ver=5.7.19

js sanofuertefeliz.com collected 2026-10-04 13:37:21 UTC 2,611 bytes, 100 lines download raw bytes

1jQuery( document ).ready( function( $ ) {
2
3	// Toggle mobile-menu
4	$( ".nav-toggle" ).on( "click", function() {
5		$( this ).toggleClass( "active" );
6		$( ".mobile-menu" ).slideToggle();
7		if ( $( ".search-toggle" ).hasClass( "active" ) ) {
8			$( ".search-toggle" ).removeClass( "active" );
9			$( ".mobile-search" ).slideToggle();
10		}
11		return false;
12	} );
13
14	// Toggle mobile-search
15	$( ".search-toggle" ).on( "click", function() {
16		$( this ).toggleClass( "active" );
17		$( ".mobile-search" ).slideToggle();
18		if ( $( ".nav-toggle" ).hasClass( "active" ) ) {
19			$( ".nav-toggle" ).removeClass( "active" );
20			$( ".mobile-menu" ).slideToggle();
21		}
22		return false;
23	} );
24
25	// Hide/show mobile menu/search block > 900
26	$( window ).resize( function() {
27		if ( $( window ).width() > 1000 ) {
28			$( ".toggle" ).removeClass( "active" );
29			$( ".mobile-menu" ).hide();
30			$( ".mobile-search" ).hide();
31		}
32	} );
33
34	// Dropdown menus on touch devices
35	$( '.main-menu li:has(ul)' ).doubleTapToGo();
36
37	// Resize videos after container
38	var vidSelector = ".post iframe, .post object, .post video, .widget-content iframe, .widget-content object, .widget-content iframe";
39	var resizeVideo = function( sSel ) {
40		$( sSel ).each( function() {
41			var $video = $( this ),
42				$container = $video.parent(),
43				iTargetWidth = $container.width();
44
45			if ( ! $video.attr( "data-origwidth" ) ) {
46				$video.attr( "data-origwidth", $video.attr( "width" ) );
47				$video.attr( "data-origheight", $video.attr( "height" ) );
48			}
49
50			var ratio = iTargetWidth / $video.attr( "data-origwidth" );
51
52			$video.css( "width", iTargetWidth + "px" );
53			$video.css( "height", ( $video.attr( "data-origheight" ) * ratio ) + "px" );
54		});
55	};
56
57	resizeVideo( vidSelector );
58
59	$( window ).resize( function() {
60		resizeVideo( vidSelector );
61	} );
62
63	// When Jetpack Infinite scroll posts have loaded
64	$( document.body ).on( 'post-load', function() {
65
66		var $container = $( '.posts' );
67		$container.masonry( 'reloadItems' );
68
69		$blocks.imagesLoaded( function() {
70			$blocks.masonry({
71				itemSelector: '.post-container'
72			} );
73
74			// Fade blocks in after images are ready (prevents jumping and re-rendering)
75			$( ".post-container" ).fadeIn();
76		} );
77
78		// Rerun video resizing
79		resizeVideo( vidSelector );
80
81		$container.masonry( 'reloadItems' );
82
83		// Load Flexslider
84		$( ".flexslider" ).flexslider( {
85			animation: 		"slide",
86			controlNav: 	false,
87			nextText: 		"Next",
88			prevText: 		"Previous",
89			smoothHeight: 	true
90		} );
91
92		$( document ).ready( function() {
93			setTimeout( function() {
94				$blocks.masonry();
95			}, 500 );
96		} );
97
98	} );
99
100} );

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.