PageSourceSearch

https://www.neta-ginun.co.il/wp-content/themes/skeleton/assets/js/page.js?v=2480

js neta-ginun.co.il collected 2026-10-02 13:45:49 UTC 6,837 bytes, 332 lines download raw bytes

1function pageInit(){
2	
3addAriaLabel();
4beboOpenClose();
5acmenuActions();
6headermenuOpenClose();
7
8$(".index_top_img").first().fadeIn();
9	 	if($(".index_top_img").length>0){
10		homeBannerTimeOut = setTimeout("changeHomeBannerAuto()",2000);
11		}
12
13$(".index_mobile_top_img").first().fadeIn();
14	 	if($(".index_mobile_top_img").length>0){
15		homeBannerTimeOut2 = setTimeout("changeHomeBannerAutoMobile()",2000);
16		}
17
18$(".contacticon").click(function(){
19		toggleContactMenu();
20	});
21
22}
23
24function beboOpenClose(){
25	$(".bebolabel_title").click(function(){
26		var bebolabel = $(".bebolabel_label");
27		
28		if(bebolabel.hasClass('openbebo')){
29			beboClose();
30			bebolabel.removeClass('openbebo');
31		}else{
32			beboOpen();
33			bebolabel.addClass('openbebo');
34		}
35		
36/*
37		if(bottom==-347){
38			 $( ".bebolabel_label" ).animate({
39			 	bottom: '0px'
40  			}, 1000, function() {
41    // Animation complete.
42  });
43		}
44*/
45		
46		
47	});
48}
49
50function beboOpen(){
51	$(".bebolabel_label").animate({
52		bottom: '0px'
53	},10,function(){
54		//animation complete
55	});
56}
57
58
59function beboClose(){
60	$(".bebolabel_label").animate({
61		bottom: '-340px'
62	},10,function(){
63		//animation complete
64	});
65}
66
67function beboCloseFirst(){
68	$(".bebolabel_label").css("bottom","-340px");
69}
70
71function addAriaLabel(){
72	$('input[type=text]').each(function(){
73		var ph = $(this).attr('placeholder');
74		$(this).attr('aria-label',ph);
75	});
76	$('input[type=email]').each(function(){
77		var ph = $(this).attr('placeholder');
78		$(this).attr('aria-label',ph);
79	});
80	$('input[type=tel]').each(function(){
81		var ph = $(this).attr('placeholder');
82		$(this).attr('aria-label',ph);
83	});
84	$(".wpcf7-textarea").each(function(){
85		var ph2 = $(this).attr('placeholder');
86		$(this).attr('aria-label',ph2);
87	});
88
89}
90
91
92function toggleContactMenu(){
93	var myPosition2 = $(".contactmenu_all").position();
94	var leftval2 = myPosition2.left;
95	if(leftval2=="0"){
96		closeContactMenu();
97	}
98	if(leftval2=="-270"){
99		openContactMenu();
100	}
101}
102
103function closeContactMenu(){
104	$(".contactmenu_all").animate({
105			    left: "-270px",
106			  }, 1000, function() {
107			    // Done
108			  });
109}
110
111function openContactMenu(){
112	$(".contactmenu_all").animate({
113			    left: "0px",
114			  }, 1000, function() {
115			    // Done
116			  });
117}
118
119
120function headermenuOpenClose(){
121	$(".headersarea_item").hover(function(){		
122		$(this).toggleClass('active');
123	});
124	
125	$(".mobileicon").unbind().click(function(e){e.preventDefault();}).click(function(){
126	   toggleMenu();
127   }); 
128}
129
130function toggleMenu(){
131	if($(".mobilemenu").is(':visible')){
132		$(".mobilemenu").toggle();
133	}else{
134		$(".mobilemenu").fadeIn();
135	}
136}
137
138function submitForm(ele){
139	return;
140
141	formData = $(ele).serialize();
142	console.log(formData);
143
144		  $.ajax({
145		   type: "POST",
146		   url: "http://localhost/projects/2016/sms4ever/wp/client-area/",
147		   data: formData,
148		   success: function(html){    
149			if(html=='true')    {
150			alert("Yay!!");
151			 e.preventDefault();
152			 return false;
153			}
154			else    {
155				alert("wrong...");
156				$(".myform").addClass("redbg");
157				 e.preventDefault();
158				 return false;
159			}
160		  }
161		  });
162
163
164}
165
166
167
168
169function changeHomeBannerAuto(){
170	if(typeof(window.currentHomeBanner)=="undefined"){
171		window.currentHomeBanner = 0;
172	}
173	newIndex = window.currentHomeBanner+1;
174	if(newIndex>=$(".index_top_img").length)
175		newIndex = 0;
176	changeHomeBanner(newIndex,true);
177}
178function changeHomeBanner(bannerIndex,auto){
179	if(typeof(window.currentHomeBanner)=="undefined"){
180		window.currentHomeBanner = 0;
181		
182	}
183	if(typeof(homeBannerTimeOut)!="undefined"){
184		clearTimeout(homeBannerTimeOut);
185	}
186	window.currentHomeBanner = bannerIndex;
187	$(".index_top_img:visible").fadeOut(800);
188	$(".index_top_img").eq(bannerIndex).fadeIn(800);
189	$(".index_banner_nav_item.active").removeClass("active");
190	$(".index_banner_nav_item").eq(bannerIndex).addClass("active");
191	if(typeof(auto)!="undefined"){
192		homeBannerTimeOut = setTimeout("changeHomeBannerAuto()",6800);
193	}
194}
195
196
197
198function changeHomeBannerAutoMobile(){
199	if(typeof(window.currentHomeBanner2)=="undefined"){
200		window.currentHomeBanner2 = 0;
201	}
202	newIndex = window.currentHomeBanner2+1;
203	if(newIndex>=$(".index_mobile_top_img").length)
204		newIndex = 0;
205	changeHomeBannerMobile(newIndex,true);
206}
207function changeHomeBannerMobile(bannerIndex2,auto){
208	if(typeof(window.currentHomeBanner2)=="undefined"){
209		window.currentHomeBanner2 = 0;
210		
211	}
212	if(typeof(homeBannerTimeOut2)!="undefined"){
213		clearTimeout(homeBannerTimeOut2);
214	}
215	window.currentHomeBanner2 = bannerIndex2;
216	$(".index_mobile_top_img:visible").fadeOut(800);
217	$(".index_mobile_top_img").eq(bannerIndex2).fadeIn(800);
218		if(typeof(auto)!="undefined"){
219		homeBannerTimeOut2 = setTimeout("changeHomeBannerAutoMobile()",6800);
220	}
221}
222
223
224
225		  
226   		 /* ACMENU */
227
228function acmenuActions(){
229	$(".acicon").click(function(){
230		toggleAcMenu();
231	});
232	$(".toolcolor").click(function(){
233		var colorclass = $(this).attr('id');
234		$("body").removeClass("blackbg");
235		$("body").removeClass("grayscale");
236		$("body").removeClass("regular")
237		$("body").addClass(colorclass);
238	});
239	
240	$(".toolsize").click(function(){
241		var mid = $(this).attr('id');
242		$("body").removeClass("mediumtext");
243		$("body").removeClass("largetext");
244		$("body").removeClass("regularfont");
245		$("body").addClass(mid);
246
247	});
248}
249
250function toggleAcMenu(){
251	var myPosition = $(".acmenu_all").position();
252	var leftval = myPosition.left;
253	if(leftval=="0"){
254		closeACMenu();
255	}
256	if(leftval=="-200"){
257		openACMenu();
258	}
259}
260
261function closeACMenu(){
262	$(".acmenu_all").animate({
263			    left: "-200px",
264			  }, 1000, function() {
265			    // Done
266			  });
267}
268
269function openACMenu(){
270	$(".acmenu_all").animate({
271			    left: "0px",
272			  }, 1000, function() {
273			    // Done
274			  });
275};
276   
277   		  $(".reset").click(function(){
278	   		  removeColorsFromBody();
279	   		  removeSizeFromBody();
280   		  });
281          $(".graycolors").click(function(){
282	          removeColorsFromBody();
283	          $("body").addClass("grayscale");
284          });
285          
286          $(".blackcolors").click(function(){
287	          removeColorsFromBody();
288	          $("body").addClass("blackbg");
289          });
290          
291          $(".small_text").click(function(){
292	   		  removeSizeFromBody();
293   		  });
294   		  
295   		  $(".medium_text").click(function(){
296	   		  removeSizeFromBody();
297	   		  $("body").addClass("large");
298   		  });
299   		  
300   		  $(".large_text").click(function(){
301	   		  removeSizeFromBody();
302	   		  $("body").addClass("xlarge");
303   		  });
304
305
306/*
307jQuery(function($) {
308
309        $('.secret-source').secretSource({
310            includeTag: false
311        });
312
313    });
314*/
315
316function removeColorsFromBody(){
317	$("body").removeClass("grayscale");
318	$("body").removeClass("blackbg");
319}
320
321function removeSizeFromBody(){
322	$("body").removeClass("large");
323	$("body").removeClass("xlarge");
324}
325
326function goToTop(){
327	var body = $("html, body");
328	body.animate({
329		scrollTop:"0px"
330	});	
331}
332

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.