PageSourceSearch

https://centresteer.com/wp-content/themes/hitchcock/assets/js/global.js?ver=2.2.1

js centresteer.com collected 2026-09-25 03:00:45 UTC 1,698 bytes, 67 lines download raw bytes

1jQuery(document).ready(function($) {
2	
3	
4	// Enable dropdown menus on touch devices
5	$( '.main-menu li:has(ul)' ).doubleTapToGo();
6	
7	
8	// Toggle navigation
9	$(".nav-toggle").on("click", function(){	
10		$(this).toggleClass("active");
11		$(".mobile-navigation").slideToggle();
12		return false;
13	});
14	
15	
16	// Hide mobile-navigation > 900
17	$(window).resize(function() {
18		if ($(window).width() > 900) {
19			$(".nav-toggle").removeClass("active");
20			$(".mobile-navigation").hide();
21		}
22	});
23	
24	
25	// Load Flexslider
26    $(".flexslider").flexslider({
27        animation: "slide",
28        controlNav: true,
29        smoothHeight: true,
30        nextText: '<span class="fa fw fa-angle-right"></span>',
31        prevText: '<span class="fa fw fa-angle-left"></span>',
32    });
33
34        			
35	// resize videos after container
36	var vidSelector = ".post iframe, .post object, .post video, .widget-content iframe, .widget-content object, .widget-content iframe";	
37	var resizeVideo = function(sSel) {
38		$( sSel ).each(function() {
39			var $video = $(this),
40				$container = $video.parent(),
41				iTargetWidth = $container.width();
42
43			if ( !$video.attr("data-origwidth") ) {
44				$video.attr("data-origwidth", $video.attr("width"));
45				$video.attr("data-origheight", $video.attr("height"));
46			}
47
48			var ratio = iTargetWidth / $video.attr("data-origwidth");
49
50			$video.css("width", iTargetWidth + "px");
51			$video.css("height", ( $video.attr("data-origheight") * ratio ) + "px");
52		});
53	};
54
55	resizeVideo(vidSelector);
56
57	$(window).resize(function() {
58		resizeVideo(vidSelector);
59	});
60	
61});
62
63( function( $ ) {
64    $( document.body ).on( 'post-load', function () {
65        $('.infinite-loader').remove();
66    } );
67} )( 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.