PageSourceSearch

https://shorebread.com/wp-content/themes/darwin/js/scripts.js

js shorebread.com collected 2026-09-24 11:35:50 UTC 1,852 bytes, 60 lines download raw bytes

1jQuery(document).ready(function() {
2	//When page loads...
3	jQuery('.tabs-wrapper').each(function() {
4		jQuery(this).find(".tab_content").hide(); //Hide all content
5		jQuery(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab
6		jQuery(this).find(".tab_content:first").show(); //Show first tab content
7	});
8	
9	//On Click Event
10	jQuery("ul.tabs li").click(function(e) {
11		jQuery(this).parents('.tabs-wrapper').find("ul.tabs li").removeClass("active"); //Remove any "active" class
12		jQuery(this).addClass("active"); //Add "active" class to selected tab
13		jQuery(this).parents('.tabs-wrapper').find(".tab_content").hide(); //Hide all tab content
14
15		var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
16		jQuery(this).parents('.tabs-wrapper').find(activeTab).fadeIn(); //Fade in the active ID content
17		
18		e.preventDefault();
19	});
20	
21	jQuery("ul.tabs li a").click(function(e) {
22		e.preventDefault();
23	})
24	
25	jQuery(".toggle-content").hide(); 
26
27	jQuery("h5.toggle").toggle(function(){
28		jQuery(this).addClass("active");
29		}, function () {
30		jQuery(this).removeClass("active");
31	});
32
33	jQuery("h5.toggle").click(function(){
34		jQuery(this).next(".toggle-content").stop(true).slideToggle();
35	});
36	
37	if(jQuery.browser.msie) {
38		var textBox = jQuery('.frm input[type="text"]');
39		textBox.each(function() {
40			var self = jQuery(this);
41			self.val(self.attr('placeholder'));
42		});
43
44	    jQuery('input[type="text"]').on('focus', textBox, function() {
45			var self = jQuery(this);
46			if(self.val() == self.attr('placeholder')) {
47			   self.val('');
48			}
49	    });
50	    jQuery('input[type="text"]').on('blur', textBox, function() {
51	        var self = jQuery(this);
52	        if(self.val() == '') {
53	            self.val(self.attr('placeholder'));
54	        }
55	    });
56	};
57
58	
59
60});

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.