PageSourceSearch

https://www.mrwillwong.com/wp-content/themes/mrwillwong/js/custom.js

js mrwillwong.com collected 2026-10-02 03:42:13 UTC 2,390 bytes, 107 lines download raw bytes

1
2jQuery.noConflict()(function($){
3	$(document).ready(function() {
4
5	$('a[data-rel]').each(function() {
6	    $(this).attr('rel', $(this).data('rel'));
7	});		
8
9		$("a[rel^='prettyPhoto']").prettyPhoto({
10			animationSpeed: 'normal', /* fast/slow/normal */
11			opacity: 0.80, /* Value between 0 and 1 */
12			showTitle: true, /* true/false */
13			theme:'dark_square'
14		});
15		
16		
17	});
18});
19
20jQuery.noConflict()(function($){
21	$(document).ready(function() {
22		
23			// Create the dropdown bases
24			$("<select />").appendTo(".navigation");
25				
26			// Create default option "Go to..."
27			$("<option />", {
28			   "selected": "selected",
29			   "value"   : "",
30			   "text"    : "Go to..."
31			}).appendTo(".navigation select");
32				
33				
34			// Populate dropdowns with the first menu items
35			$(".navigation li a").each(function() {
36			 	var el = $(this);
37			 	$("<option />", {
38			     	"value"   : el.attr("href"),
39			    	"text"    : el.text()
40			 	}).appendTo(".navigation select");
41			});
42			
43			//make responsive dropdown menu actually work			
44	      	$(".navigation select").change(function() {
45	        	window.location = $(this).find("option:selected").val();
46	      	});
47	      	
48//	      	$('#menu div select').remove();
49		});
50		});
51		
52		/***************************************************
53			SuperFish Menu
54***************************************************/	
55// initialise plugins
56	jQuery.noConflict()(function(){
57		jQuery('ul.sf-menu').superfish({
58			delay:300,
59			speed: 'fast',
60			animation:   {height:'show'}			
61		});
62		
63
64	});
65
66
67
68
69
70jQuery.noConflict()(function($){
71	$(document).ready(function() {
72		
73		  $('p:empty').remove();
74		  
75	   	  $('h2.widgettitle').remove();			
76		  $('.related-posts-single li:nth-child(4)').css('margin-right' , '0px'); 
77
78
79	});
80});
81
82
83
84
85
86/*******************************
87			COLLAPSE
88********************************/
89jQuery.noConflict()(function($){
90	$(document).ready(function() {
91		$(".collapse-crumble").collapse({show: function(){
92                    this.animate({
93                        opacity: 'toggle', 
94                        height: 'toggle'
95                    }, 300);
96                },
97                hide : function() {
98                    
99                    this.animate({
100                        opacity: 'toggle', 
101                        height: 'toggle'
102                    }, 300);
103                }
104		         });
105         });
106    });
107

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.