PageSourceSearch

https://www.yodeyma.com/austria/de/modules/megamenuiqit/megamenuiqit.js

js yodeyma.com collected 2026-09-26 17:32:26 UTC 6,648 bytes, 192 lines download raw bytes

1/*!
2 * hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+
3 * http://cherne.net/brian/resources/jquery.hoverIntent.html
4 *
5 * You may use hoverIntent under the terms of the MIT license.
6 * Copyright 2007, 2013 Brian Cherne
7 */
8 (function(e){e.fn.hoverIntent=function(t,n,r){var i={interval:100,sensitivity:7,timeout:0};if(typeof t==="object"){i=e.extend(i,t)}else if(e.isFunction(n)){i=e.extend(i,{over:t,out:n,selector:r})}else{i=e.extend(i,{over:t,out:t,selector:n})}var s,o,u,a;var f=function(e){s=e.pageX;o=e.pageY};var l=function(t,n){n.hoverIntent_t=clearTimeout(n.hoverIntent_t);if(Math.abs(u-s)+Math.abs(a-o)<i.sensitivity){e(n).off("mousemove.hoverIntent",f);n.hoverIntent_s=1;return i.over.apply(n,[t])}else{u=s;a=o;n.hoverIntent_t=setTimeout(function(){l(t,n)},i.interval)}};var c=function(e,t){t.hoverIntent_t=clearTimeout(t.hoverIntent_t);t.hoverIntent_s=0;return i.out.apply(t,[e])};var h=function(t){var n=jQuery.extend({},t);var r=this;if(r.hoverIntent_t){r.hoverIntent_t=clearTimeout(r.hoverIntent_t)}if(t.type=="mouseenter"){u=n.pageX;a=n.pageY;e(r).on("mousemove.hoverIntent",f);if(r.hoverIntent_s!=1){r.hoverIntent_t=setTimeout(function(){l(n,r)},i.interval)}}else{e(r).off("mousemove.hoverIntent",f);if(r.hoverIntent_s==1){r.hoverIntent_t=setTimeout(function(){c(n,r)},i.timeout)}}};return this.on({"mouseenter.hoverIntent":h,"mouseleave.hoverIntent":h},i.selector)}})(jQuery)
9
10
11
12
13
14 $(document).ready(function() {
15
16
17 	$(".megamenu_style2 .main_menu_link").equalHeights2();
18	$(".submenu").css('top',  $("#megamenuiqit").height() + 5 + "px");
19
20
21 	$(window).resize(function() {
22 		$(".megamenu_style2 .main_menu_link").css("height","auto");
23 		$(".megamenu_style2 .main_menu_link").equalHeights2();
24 		$(".submenu").css('top',  $("#megamenuiqit").height() + 5 + "px");
25 		$('#megamenuiqit .has_submenu').each(function(index){ 
26 			$(this).find('.submenu').css( "left", 0+"px" );
27 		});
28 		megaMenuWidthCn();
29 	});
30
31 	$(document).on('mouseenter', '.product_menu_container', function(e){
32			$(this).find(".img_1").stop().fadeIn("fast");	
33	});
34
35	$(document).on('mouseleave', '.product_menu_container', function(e){
36			$(this).find(".img_1").stop().fadeOut("fast");
37	});
38
39
40 	$("#megamenuiqit .mainmegamenu").hoverIntent(
41 	{
42 		over: makeTall,
43 		out: makeShort,
44 		timeout: 80
45 	});
46
47
48
49 	$("#megamenuiqit .has_submenu2").hoverIntent(
50 	{
51 		over: makeTall2,
52 		out: makeShort2,
53 		timeout: 150
54 	});
55
56 	$("#megamenuiqit .has_submenu3").hoverIntent(
57 	{
58 		over: makeTall3,
59 		out: makeShort3,
60 		timeout: 150
61 	});
62
63
64 	function makeTall3(){
65 		$(this).find('.another_cats2').slideDown(300);
66 	}
67
68 	function makeShort3(){   
69 		$(this).find('.another_cats2').slideUp(300);
70 	}
71
72 	function makeShort2(){   
73 		$(this).find('.another_cats').fadeOut(300);
74 	}
75
76
77
78 	function makeTall2(){
79 		$(this).find('.another_cats').css('left', 100);
80 		$(this).find('.another_cats').show();
81 		var sspos = $(this).find('.another_cats').offset().left;
82 		$(this).find('.another_cats').hide();
83 		if (sspos  + 200 > $(window).width()) {       
84 			$(this).find('.another_cats').css('left', -200);        
85 		}   
86 		$(this).find('.another_cats').fadeIn(300);
87
88 	}
89 	function makeShort2(){   
90 		$(this).find('.another_cats').fadeOut(300);
91 	}
92
93
94
95
96 	function makeTall(){
97 		$(this).find(".main_menu_link").addClass("linkHover");
98 		if ( $(this).hasClass("has_submenu") ) {
99 			$(".submenu").css('top',  $("#megamenuiqit").height() + 5 + "px");
100 			var comparewidth = $('#megamenuiqit').outerWidth();
101 			var elwidth = ($(this).width()/2)-12;
102 			var submenu = $(this).find('.submenu');
103 			var subwidth = submenu.outerWidth();
104 			var position = $(this).position();
105
106 			if(subwidth==comparewidth)
107 			{
108 				submenu.css( "left", 0+"px" );
109 				$(this).find('.submenu_triangle').css( "left", position.left+elwidth+"px" );
110 				$(this).find('.submenu_triangle2').css( "left", position.left+elwidth-1+"px" );
111
112 			}
113 			else if((comparewidth-subwidth)<position.left){
114
115 				submenu.css( "left", (comparewidth-subwidth)+"px" );
116
117 				$(this).find('.submenu_triangle').css( "left", position.left-(comparewidth-subwidth)+elwidth+"px" );
118 				$(this).find('.submenu_triangle2').css( "left", position.left-(comparewidth-subwidth)+elwidth-1+"px" );
119 			}
120 			else{
121 				submenu.css( "left", position.left+"px" );
122 				$(this).find('.submenu_triangle').css( "left", elwidth+"px" );
123 				$(this).find('.submenu_triangle2').css( "left", elwidth-1+"px" );
124 			}		
125
126 			$(this).find(".submenu").fadeIn(200);
127 			$(this).find(".right_panel ").css('min-height', $(this).find(".left_panel").height()-20+'px');
128 		}}
129 		function makeShort(){   
130 			$(this).find(".submenu").fadeOut(200);
131 			$(this).find(".main_menu_link").removeClass("linkHover");
132 		}
133
134
135
136 		function megaMenuWidthCn()
137 		{
138
139 			var comparewidth = $('#megamenuiqit').outerWidth();
140 			$('#megamenuiqit .has_submenu').each(function(index){
141 				var elwidth = ($(this).width()/2)-12;
142 				var submenu = $(this).find('.submenu');
143 				var subwidth = submenu.outerWidth();
144 				var position = $(this).position();
145
146 				if(subwidth==comparewidth)
147 				{
148 					submenu.css( "left", 0+"px" );
149 					$(this).find('.submenu_triangle').css( "left", position.left+elwidth+"px" );
150 					$(this).find('.submenu_triangle2').css( "left", position.left+elwidth-1+"px" );
151
152 				}
153 				else if((comparewidth-subwidth)<position.left){
154
155 					submenu.css( "left", (comparewidth-subwidth)+"px" );
156
157 					$(this).find('.submenu_triangle').css( "left", position.left-(comparewidth-subwidth)+elwidth+"px" );
158 					$(this).find('.submenu_triangle2').css( "left", position.left-(comparewidth-subwidth)+elwidth-1+"px" );
159 				}
160 				else{
161 					submenu.css( "left", position.left+"px" );
162 					$(this).find('.submenu_triangle').css( "left", elwidth+"px" );
163 					$(this).find('.submenu_triangle2').css( "left", elwidth-1+"px" );
164 				}		
165 			});
166
167}
168
169$('#responsiveAccordion li:has(ul)').each(function() {
170	$(this).prepend('<div class="responsiveInykator">+</div>');
171});
172
173$("#responsiveMenuShower").click(function(){
174	$("#responsiveAccordion").toggleClass("showedmenu");
175});
176
177$("#responsiveAccordion > li .responsiveInykator").on("click", function(event){
178
179	if(false == $(this).parent().next().is(':visible')) {
180		
181		$('#responsiveAccordion > ul').slideUp(300);
182	}
183	if($(this).text()=="+")
184		$(this).text("-");
185	else
186		$(this).text("+");
187	$(this).parent().children('ul').slideToggle(300);
188});
189
190$('#responsiveAccordion > ul:eq(0)').show();
191
192});

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.