PageSourceSearch

https://adoptionpromises.com/main/wp-content/themes/dot-b/all.js

js adoptionpromises.com collected 2026-10-04 17:39:33 UTC 3,004 bytes, 107 lines download raw bytes

1// All the jQuery function that WordPress used
2// Add empty span tag at menu which have drop-down meun
3jQuery("ul.sub-menu:not(.sub-menu .sub-menu)").parent().append('<div class="menu-mark" ></div>');
4jQuery("ul.children:not(.children .children)").parent().append('<div class="menu-mark" ></div>');
5
6jQuery("ul.sub-menu ul.sub-menu:not(.sub-menu .sub-menu .sub-menu)").parent().append('<div class="menu-mark2" ></div>');
7jQuery("ul.children ul.children:not(.children .children .children)").parent().append('<div class="menu-mark2" ></div>');
8
9// Drop down menu slide function
10var mouseover_tid = [];
11var mouseout_tid = [];
12jQuery('.header_menu ul > li').each(function(index) {
13	jQuery(this).hover(function() {
14		var _self = this;
15		clearTimeout(mouseout_tid[index]);
16		mouseover_tid[index] = setTimeout(function() {
17			jQuery(_self).find('ul:eq(0)').slideDown('fast');
18		},
19		200);
20	},
21	function() {
22		var _self = this;
23		clearTimeout(mouseover_tid[index]);
24		mouseout_tid[index] = setTimeout(function() {
25			jQuery(_self).find('ul:eq(0)').slideUp('fast');
26		},
27		200);
28	});
29});
30// Top colourful bar
31jQuery(document).ready(function() {
32	jQuery("#top-bar").animate({
33		width: "100%"
34	},
35	{
36		queue: false,
37		duration: 5000
38	});
39	// Mouse over search box focus function
40	jQuery("#s").mouseover(function() {
41		jQuery(this).focus().val([""]);
42	});
43	// Link sparkling function
44	jQuery(".post_meta li,body a:not(.post_meta li a)").hover(function() {
45		if (!jQuery(this).is(":animated")) {
46			jQuery(this).animate({
47				opacity: ".7"
48			},
49			220).animate({
50				opacity: "1"
51			},
52			180);
53		}
54	});
55	jQuery(function() {
56		jQuery('a[href*=#]').click(function() {
57			if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
58				var $target = jQuery(this.hash);
59				$target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) + ']');
60				if ($target.length) {
61					var targetOffset = $target.offset().top - 100;
62					jQuery('html,body').animate({
63						scrollTop: targetOffset
64					},
65					1000);
66					return false;
67				}
68			}
69		});
70	});
71	// hide #return_top first
72	jQuery("#return_top").hide();
73	// fade in #return_top
74	jQuery(function() {
75		jQuery(window).scroll(function() {
76			if (jQuery(this).scrollTop() > 100) {
77				jQuery('#return_top').fadeIn();
78			} else {
79				jQuery('#return_top').fadeOut();
80			}
81		});
82	});
83
84	// When a link is clicked
85	jQuery("a.tab").click(function() {
86
87		// switch all tabs off
88		jQuery(".active").removeClass("active");
89
90		// switch this tab on
91		jQuery(this).addClass("active");
92
93		// slide all content up
94		jQuery(".content").slideUp();
95
96		// slide this content up
97		var content_show = jQuery(this).attr("title");
98		jQuery("#" + content_show).slideDown();
99
100	});
101
102	jQuery('#tab-title span').click(function() {
103		jQuery(this).addClass("selected").siblings().removeClass();
104		jQuery("#tab-content > .widget-container").slideUp('1500').eq(jQuery('#tab-title span').index(this)).slideDown('1500');
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.