PageSourceSearch

https://blog.haikudeck.com/wp-content/themes/wilson/assets/js/global.js?ver=2.1.3

js haikudeck.com collected 2026-10-01 07:50:38 UTC 1,345 bytes, 52 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	});
8		
9	// Show mobile-menu > 800
10	$(window).resize(function() {
11		if ($(window).width() > 800) {
12			$(".toggle").removeClass("active");
13			$(".mobile-menu").hide();
14		}
15	});
16	
17			
18	// resize videos after container
19	var vidSelector = ".post iframe, .post object, .post video, .post embed, .widget-content iframe, .widget-content object, .widget-content iframe";	
20	var resizeVideo = function(sSel) {
21		$( sSel ).each(function() {
22			var $video = $(this),
23				$container = $video.parent(),
24				iTargetWidth = $container.width();
25
26			if ( !$video.attr("data-origwidth") ) {
27				$video.attr("data-origwidth", $video.attr("width"));
28				$video.attr("data-origheight", $video.attr("height"));
29			}
30
31			var ratio = iTargetWidth / $video.attr("data-origwidth");
32
33			$video.css("width", iTargetWidth + "px");
34			$video.css("height", ( $video.attr("data-origheight") * ratio ) + "px");
35		});
36	};
37
38	resizeVideo(vidSelector);
39
40	$(window).resize(function() {
41		resizeVideo(vidSelector);
42	});
43	
44	// Smooth scroll to header
45    $('.tothetop').click(function(){
46		$('html,body').animate({scrollTop: 0}, 500);
47		$(this).unbind("mouseenter mouseleave");
48        return false;
49    });
50	
51
52});

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.