PageSourceSearch

https://www.kafkas.edu.tr/tema/kafkasEymen/menu/webslidemenu/webslidemenu.js

js kafkas.edu.tr collected 2026-10-02 04:03:53 UTC 8,533 bytes, 192 lines download raw bytes

1/* global jQuery */
2/* global document */
3
4jQuery(function () {
5  'use strict';
6
7  document.addEventListener("touchstart", function () {}, false);
8  jQuery(function () {
9
10    jQuery('body').wrapInner('<div class="wsmenucontainer" />');
11    jQuery('<div class="overlapblackbg"></div>').prependTo('.wsmenu');
12
13    jQuery('#wsnavtoggle').click(function () {
14      jQuery('body').toggleClass('wsactive');
15    });
16
17    jQuery('.overlapblackbg').click(function () {
18      jQuery("body").removeClass('wsactive');
19    });
20
21    /* Append and Toggle Class */
22    jQuery('.wsmenu-list> li').has('.sub-menu').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow"></i></span>');
23    jQuery('.wsmenu-list > li').has('.wsshoptabing').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow"></i></span>');
24    jQuery('.wsmenu-list > li').has('.wsmegamenu').prepend('<span class="wsmenu-click"><i class="wsmenu-arrow"></i></span>');
25    jQuery('.wsmenu-click').on('click', function () {
26      jQuery(this).toggleClass('ws-activearrow').parent().siblings().children().removeClass('ws-activearrow');
27      jQuery(".sub-menu, .wsshoptabing, .wsmegamenu").not(jQuery(this).siblings('.sub-menu, .wsshoptabing, .wsmegamenu')).slideUp('slow');
28      jQuery(this).siblings('.sub-menu').slideToggle('slow');
29      jQuery(this).siblings('.wsshoptabing').slideToggle('slow');
30      jQuery(this).siblings('.wsmegamenu').slideToggle('slow');
31      return false;
32    });
33	jQuery('.navtext, .navtext_e').on('touchstart', function () {
34      jQuery(this).siblings().toggleClass('ws-activearrow').parent().siblings().children().removeClass('ws-activearrow');
35      jQuery(".sub-menu, .wsshoptabing, .wsmegamenu").not(jQuery(this).siblings('.sub-menu, .wsshoptabing, .wsmegamenu')).slideUp('slow');
36      jQuery(this).siblings('.sub-menu').slideToggle('slow');
37      jQuery(this).siblings('.wsshoptabing').slideToggle('slow');
38      jQuery(this).siblings('.wsmegamenu').slideToggle('slow');
39      return false;
40    });
41
42    jQuery('.wstabitem > li').has('.wstitemright').prepend('<span class="wsmenu-click02"><i class="wsmenu-arrow"></i></span>');
43    jQuery('.wsmenu-click02').on('click', function () {
44      jQuery(this).siblings('.wstitemright').slideToggle('slow');
45      jQuery(this).toggleClass('ws-activearrow02').parent().siblings().children().removeClass('ws-activearrow02');
46      jQuery(".wstitemright").not(jQuery(this).siblings('.wstitemright')).slideUp('slow');
47      return false;
48    });
49	jQuery('.navtext_second').on('touchstart', function () {
50      jQuery(this).siblings('.wstitemright').slideToggle('slow');
51      jQuery(this).toggleClass('ws-activearrow02').parent().siblings().children().removeClass('ws-activearrow02');
52      jQuery(this).siblings().toggleClass('ws-activearrow02').parent().siblings().children().removeClass('ws-activearrow02');
53      jQuery(".wstitemright").not(jQuery(this).siblings('.wstitemright')).slideUp('slow');
54      return false;
55    });
56
57    jQuery('.wstabitem02 > li').has('.wstbrandbottom').prepend('<span class="wsmenu-click03"><i class="wsmenu-arrow"></i></span>');
58    jQuery('.wsmenu-click03').on('click', function () {
59      jQuery(this).siblings('.wstbrandbottom').slideToggle('slow');
60      jQuery(this).toggleClass('ws-activearrow03').parent().siblings().children().removeClass('ws-activearrow03');
61      jQuery(".wstbrandbottom").not(jQuery(this).siblings('.wstbrandbottom')).slideUp('slow');
62      return false;
63    });
64
65    /* Add Class in ever tabing menu LI When MouseEnter */
66    jQuery(window).ready(function () {
67      /*jQuery(".wsshoptabing.wtsdepartmentmenu > .wsshopwp > .wstabitem > li").on('mouseenter', function () {
68        jQuery(this).addClass("wsshoplink-active").siblings(this).removeClass("wsshoplink-active");
69        return false;
70      });*/
71	  jQuery(".wsshoptabing.wtsdepartmentmenu > .wsshopwp > .wstabitem > li").on('click', function () {
72        jQuery(this).addClass("wsshoplink-active").siblings(this).removeClass("wsshoplink-active");
73        return false;
74      }).on('click', 'div', function(e) {
75		// clicked on descendant div
76		e.stopPropagation();
77	});;
78      jQuery(".wsshoptabing.wtsbrandmenu > .wsshoptabingwp > .wstabitem02 > li").on('mouseenter', function () {
79        jQuery(this).addClass("wsshoplink-active").siblings(this).removeClass("wsshoplink-active");
80        return false;
81      });
82    });
83    setmenuheight();
84    jQuery(window).on("load resize", function () {
85      var w_height = jQuery(window).outerWidth();
86      if (w_height <= 991) {
87        jQuery(".wsshopwp").css('height', '100%');
88        jQuery(".wstitemright").css('height', '100%');
89      } else {
90        setmenuheight();
91      }
92    });
93
94
95    /* Calculating Height */
96    function setmenuheight() {
97      var TabgetHeight = 1;
98      jQuery(".wstabitem > li").each(function () {
99        var forHeight = jQuery(this).find(".wstitemright").innerHeight();
100        TabgetHeight = forHeight > TabgetHeight ? forHeight : TabgetHeight;
101        jQuery(this).find(".wstitemright").css('height', 'auto');
102      });
103      jQuery(".wsshopwp").css('height', TabgetHeight + 0);
104    }
105	
106	
107	
108	//Main Menu Link Click Start
109    jQuery(".wsmenu>.wsmenu-list>li>a").on('click', function () {
110      jQuery(this).parent().toggleClass("wsclickopen").siblings(this).removeClass("wsclickopen");
111      jQuery(".wsmenu>.wsmenu-list>li>ul.sub-menu>li").removeClass('wsclickopen-sub');
112      jQuery(".wsmenu>.wsmenu-list>li>ul.sub-menu>li>ul.sub-menu>li").removeClass('wsclickopen-sub-sub');
113    });
114
115    jQuery(".wsmenu>.wsmenu-list>li>.sub-menu>li>a").on('click', function () {
116      jQuery(this).parent().toggleClass("wsclickopen-sub").siblings(this).removeClass("wsclickopen-sub");
117    });
118
119    jQuery(".wsmenu>.wsmenu-list>li>ul.sub-menu>li>ul.sub-menu>li>a").on('click', function () {
120      jQuery(this).parent().toggleClass("wsclickopen-sub-sub").siblings(this).removeClass("wsclickopen-sub-sub");
121    });
122
123    jQuery(".wsmenu>.wsmenu-list>li>ul.sub-menu>li>ul.sub-menu>li>ul.sub-menu>li>a").on('click', function () {
124      jQuery(this).parent().toggleClass("wsclickopen-sub-sub-sub").siblings(this).removeClass("wsclickopen-sub-sub-sub");
125    });
126
127    jQuery(document).on("click", function (event) {
128      var $trigger = $(".wsmegamenu");
129      if ($trigger !== event.target && !$trigger.has(event.target).length) {
130        jQuery(".wsmenu>.wsmenu-list>li").removeClass("wsclickopen");
131      }
132	  
133    });
134
135    jQuery(".wsmenu>.wsmenu-list>li>a").click(function (e) {
136      e.stopPropagation();
137    });
138
139    jQuery(".wsmenu>.wsmenu-list>li>.sub-menu>li>a, .wsmenu>.wsmenu-list>li>ul.sub-menu>li>ul.sub-menu>li>a, .wsmenu>.wsmenu-list>li>ul.sub-menu>li>ul.sub-menu>li>ul.sub-menu>li>a").click(function (e) {
140      e.stopPropagation();
141    });
142	
143	/*Click End*/
144
145
146    /* Removing inLine Style  */
147    jQuery(document).ready(function (jQuery) {
148      function removeStyles() {
149        if (jQuery(window).outerWidth() >= 991) {
150          jQuery('.wsshoptabing, .wstitemright, .wstbrandbottom, .wsmegamenu, ul.sub-menu').css({
151            'display': '',
152          });
153        }
154      }
155      removeStyles();
156      jQuery(window).resize(removeStyles);
157    });
158
159
160    /* Removing Class  */
161    jQuery(window).on('resize', function () {
162      if (jQuery(window).outerWidth() <= 991) {
163        jQuery('.wsmenu').css('height', jQuery(this).height() + "px");
164        jQuery('.wsmenucontainer').css('min-width', jQuery(this).width() + "px");
165      } else {
166        jQuery('.wsmenu').removeAttr("style");
167        jQuery('.wsmenucontainer').removeAttr("style");
168        jQuery('body').removeClass("wsactive");
169        jQuery('.wsmenu-click').removeClass("ws-activearrow");
170        jQuery('.wsmenu-click02').removeClass("ws-activearrow02");
171        jQuery('.wsmenu-click03').removeClass("ws-activearrow03");
172      }
173    });
174    jQuery(window).trigger('resize');
175
176
177  });
178
179  //Mobile Search Box
180  jQuery(window).on("load", function () {
181    jQuery('.wsmobileheader .wssearch').on("click", function () {
182      jQuery(this).toggleClass("wsopensearch");
183    });
184    jQuery("body, .wsopensearch .fa.fa-times").on("click", function () {
185      jQuery(".wssearch").removeClass('wsopensearch');
186    });
187    jQuery(".wssearch, .wssearchform .mobile_search_form").on("click", function (e) {
188      e.stopPropagation();
189    });
190  });
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.