PageSourceSearch

https://recreateyourlifestory.com/wp-content/themes/supportdesk/js/functions.js?ver=7.0.6

js recreateyourlifestory.com collected 2026-10-08 07:24:10 UTC 4,431 bytes, 162 lines download raw bytes

1//
2//	Superfish v1.4.8
3//
4;(function($){
5	$.fn.superfish = function(op){
6
7		var sf = $.fn.superfish,
8			c = sf.c,
9			$arrow = $(['<span class="',c.arrowClass,'">&#43;</span>'].join('')),
10			over = function(){
11				var $$ = $(this), menu = getMenu($$);
12				clearTimeout(menu.sfTimer);
13				$$.showSuperfishUl().siblings().hideSuperfishUl();
14			},
15			out = function(){
16				var $$ = $(this), menu = getMenu($$), o = sf.op;
17				clearTimeout(menu.sfTimer);
18				menu.sfTimer=setTimeout(function(){
19					o.retainPath=($.inArray($$[0],o.$path)>-1);
20					$$.hideSuperfishUl();
21					if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
22				},o.delay);	
23			},
24			getMenu = function($menu){
25				var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
26				sf.op = sf.o[menu.serial];
27				return menu;
28			},
29			addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
30			
31		return this.each(function() {
32			var s = this.serial = sf.o.length;
33			var o = $.extend({},sf.defaults,op);
34			o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
35				$(this).addClass([o.hoverClass,c.bcClass].join(' '))
36					.filter('li:has(ul)').removeClass(o.pathClass);
37			});
38			sf.o[s] = sf.op = o;
39			
40			$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
41				if (o.autoArrows) addArrow( $('>a:first-child',this) );
42			})
43			.not('.'+c.bcClass)
44				.hideSuperfishUl();
45			
46			var $a = $('a',this);
47			$a.each(function(i){
48				var $li = $a.eq(i).parents('li');
49				$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
50			});
51			o.onInit.call(this);
52			
53		}).each(function() {
54			var menuClasses = [c.menuClass];
55			if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
56			$(this).addClass(menuClasses.join(' '));
57		});
58	};
59
60	var sf = $.fn.superfish;
61	sf.o = [];
62	sf.op = {};
63	sf.IE7fix = function(){
64		var o = sf.op;
65		if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
66			this.toggleClass(sf.c.shadowClass+'-off');
67		};
68	sf.c = {
69		bcClass     : 'sf-breadcrumb',
70		menuClass   : 'sf-js-enabled',
71		anchorClass : 'sf-with-ul',
72		arrowClass  : 'sf-sub-indicator',
73		shadowClass : 'sf-shadow'
74	};
75	sf.defaults = {
76		hoverClass	: 'sfHover',
77		pathClass	: 'overideThisToUse',
78		pathLevels	: 1,
79		delay		: 800,
80		animation	: {opacity:'show'},
81		speed		: 'normal',
82		autoArrows	: true,
83		dropShadows : true,
84		disableHI	: false,		// true disables hoverIntent detection
85		onInit		: function(){}, // callback functions
86		onBeforeShow: function(){},
87		onShow		: function(){},
88		onHide		: function(){}
89	};
90	$.fn.extend({
91		hideSuperfishUl : function(){
92			var o = sf.op,
93				not = (o.retainPath===true) ? o.$path : '';
94			o.retainPath = false;
95			var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
96					.find('>ul').hide().css('visibility','hidden');
97			o.onHide.call($ul);
98			return this;
99		},
100		showSuperfishUl : function(){
101			var o = sf.op,
102				sh = sf.c.shadowClass+'-off',
103				$ul = this.addClass(o.hoverClass)
104					.find('>ul:hidden').css('visibility','visible');
105			sf.IE7fix.call($ul);
106			o.onBeforeShow.call($ul);
107			$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
108			return this;
109		}
110	});
111
112})(jQuery);
113
114// Start Wrapper
115jQuery(document).ready(function($) {
116
117//
118// Superfish Settings 
119//
120if($().superfish) {
121		$( '#primary-nav ul.sf-menu').superfish({
122		delay: 200,
123		animation: {opacity:'show', height:'show'},
124		speed: 'fast',
125		dropShadows: false,
126		disableHI:  false 
127	});
128}
129
130
131//
132// Mobile Nav Menu
133//
134$(function menuToggle() {
135
136 $('#primary-nav-mobile .menu-toggle').click(function() {
137	  $('#primary-nav-mobile ul').slideToggle('slow', function() {
138		});
139	return false;
140	});
141});
142
143
144//
145//	jQuery Toggles
146//
147
148$(".st_faq .entry-content").hide();
149   $(".st_faq .entry-title").click(function() {
150       $(this).toggleClass("active").next().slideToggle("slow");
151       return false; //Prevent the browser jump to the link anchor
152   });
153
154$("a[href='" + window.location.hash + "']").parent(".st_faq .entry-title").click();
155
156
157//	End Wrapper
158});	
159
160
161
162

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.