PageSourceSearch

https://www.frees-life.com/wp-content/themes/freeslife/common/js/sp_nav.js

js frees-life.com collected 2026-10-08 04:30:17 UTC 2,065 bytes, 82 lines download raw bytes

1// JavaScript Document
2var wSize = jQuery(window).width();
3
4if (wSize < 641){
5	
6$(function(){
7    $("#spNav").after().hide();
8    $("#spNavClose").after().hide();
9	
10	$("#spNavOpen").click(function(){
11		$(this).nextAll("#spNav").slideToggle();
12		$(this).nextAll("#spNavClose").slideToggle();
13	});
14	
15	$("#spNavClose").click(function(){
16	$(this).prevAll("#spNav").slideToggle();
17	$(this).slideToggle();
18	});
19});
20
21        
22}else{
23	var DDSPEED = 10;
24	var DDTIMER = 15;
25	
26	// main function to handle the mouse events //
27	function ddMenu(id,d){
28	  var h = document.getElementById(id + '-ddheader');
29	  var c = document.getElementById(id + '-ddcontent');
30	  clearInterval(c.timer);
31	  if(d == 1){
32		clearTimeout(h.timer);
33		if(c.maxh && c.maxh <= c.offsetHeight){return}
34		else if(!c.maxh){
35		  c.style.display = 'block';
36		  c.style.height = 'auto';
37		  c.maxh = c.offsetHeight;
38		  c.style.height = '0px';
39		}
40		c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
41	  }else{
42		h.timer = setTimeout(function(){ddCollapse(c)},50);
43	  }
44	}
45	
46	// collapse the menu //
47	function ddCollapse(c){
48	  c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER);
49	}
50	
51	// cancel the collapse if a user rolls over the dropdown //
52	function cancelHide(id){
53	  var h = document.getElementById(id + '-ddheader');
54	  var c = document.getElementById(id + '-ddcontent');
55	  clearTimeout(h.timer);
56	  clearInterval(c.timer);
57	  if(c.offsetHeight < c.maxh){
58		c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
59	  }
60	}
61	
62	// incrementally expand/contract the dropdown and change the opacity //
63	function ddSlide(c,d){
64	  var currh = c.offsetHeight;
65	  var dist;
66	  if(d == 1){
67		dist = (Math.round((c.maxh - currh) / DDSPEED));
68	  }else{
69		dist = (Math.round(currh / DDSPEED));
70	  }
71	  if(dist <= 1 && d == 1){
72		dist = 1;
73	  }
74	  c.style.height = currh + (dist * d) + 'px';
75	  c.style.opacity = currh / c.maxh;
76	  c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')';
77	  if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){
78		clearInterval(c.timer);
79	  }
80	}
81
82}

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.