PageSourceSearch

https://www.html5today.it/wp-content/themes/fukasawa/js/global_ver-4.2.16.js

js html5today.it collected 2026-09-24 21:10:30 UTC 2,586 bytes, 109 lines download raw bytes

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

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.