PageSourceSearch

https://www.48min.com/wp-content/themes/gridz/js/theme.js?ver=6.6.9

js 48min.com collected 2026-10-02 13:09:50 UTC 2,328 bytes, 67 lines download raw bytes

1/* == GRIDZ THEME JAVASCRIPT == */
2
3jQuery(document).ready(function() {    
4    /* Dropdown Menu */
5    jQuery('.primary-menu ul li').hover(function() {
6        jQuery(this).find('ul:first').hide().fadeIn(300);
7    },
8    function() {
9        jQuery(this).find('ul:first').fadeOut(300);
10    });
11    jQuery('.primary-menu li').has('ul').addClass('has-bottom-child');
12    jQuery('.primary-menu li li').has('ul').removeClass('has-bottom-child').addClass('has-right-child');
13    
14    var searchshow = false;
15    jQuery("#search-button").click(function() {
16	if(!searchshow) {
17	    jQuery("#header #searchform").animate({"width": "170px"}, 500);
18	    jQuery("#header #s").val("");
19	    searchshow = true;
20	} else {
21	    jQuery("#header #searchform").animate({"width": "0px"}, 500);
22	    jQuery("#header #s").val("");
23	    searchshow = false;
24	}
25    });
26    
27    /* Responsive dropdown */
28    var menushow = true;
29    jQuery("#select-menu-item a").click(function() {
30	if(menushow) {
31	    jQuery("#select-menu-item").parent("ul").children("li").not("#select-menu-item").slideDown(500);
32	    menushow = false;
33	} else {
34	    jQuery("#select-menu-item").parent("ul").children("li").not("#select-menu-item").slideUp(500);
35	    menushow = true;
36	}
37    });
38    
39    /* Smooth Scroll */
40    jQuery(window).bind('scroll', function(){
41	if(jQuery(this).scrollTop() > 200) {
42	    jQuery("#scroll-up").fadeIn(400);
43	} else {
44	    jQuery('#scroll-up').hide();
45	}
46    });
47    jQuery('#scroll-up').click(function() {
48	jQuery('html,body').animate({scrollTop:jQuery('#header').offset().top}, 1000);
49	return false;
50    });
51
52    /* Miscallaneous Effects */
53    jQuery("#wp-calendar td#today").wrapInner('<span>');
54	
55    /* Last Child Fix for IE 8 browsers */
56    jQuery("*:last-child").removeClass("last").addClass("last");
57    
58    /* Safari Margin Hack */
59    var width = jQuery("#grid-container").width();
60    var marginSide = width * 0.006;
61    var marginBottom = width * 0.015;
62    if(navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
63	jQuery("article.grid").css("margin-left", marginSide + "px");
64	jQuery("article.grid").css("margin-right", marginSide + "px");
65	jQuery("article.grid").css("margin-bottom", marginBottom + "px");
66    };
67});

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.