PageSourceSearch

https://samara4deadsea.com/template/js/menuV.js

js samara4deadsea.com collected 2026-10-07 17:46:27 UTC 4,217 bytes, 113 lines download raw bytes

1(function () {
2	var clickYN1 = false;
3	if (!window.menuNV) {
4        window.menuNV = {};
5	};
6	window.menuNV = {
7		menuNV_pc: function () {
8			var curNHIdx;
9			$('.w-com-menuNV').each(function (index, element) {
10				var menuThis = $(this);
11				menuThis.find('.ul-parent >li').each(function(index, element) {
12					if($(this).hasClass('cur')){
13						curNHIdx = index;
14						if (menuThis.hasClass('w-com-menuNVClick')) {
15							if ($(this).find('.ul-submenu')) {
16								$(this).addClass('open');
17								$(this).find('.ul-submenu').slideDown();
18							}
19						}
20					}
21				});
22				if (!menuThis.hasClass('w-com-menuNV1')) {
23					menuThis.find('.ul-parent >li').hover(function(){
24						$(this).siblings('li').removeClass('cur');
25					},function(){
26						menuThis.find('.ul-parent >li').eq(curNHIdx).addClass('cur');
27					});
28				}
29			})
30			if(clickYN1){$('.w-com-menuNV li .div-parent .fa').unbind('click');}
31			$('.w-com-menuNV li .div-parent .fa').click(function(){
32				$(this).parent().parent().siblings().find('.ul-submenu').slideUp();
33				$(this).parent().parent().siblings().removeClass('open');
34				$(this).parent().parent().siblings().find('.open').removeClass('open');
35				if($(this).parent().siblings('.ul-submenu').is(':hidden')){
36					$(this).parent().siblings('.ul-submenu').slideDown();
37					$(this).parent().parent().addClass('open');
38				}else{
39					$(this).parent().siblings('.ul-submenu').slideUp();
40					$(this).parent().siblings('.ul-submenu').find('.ul-submenu').slideUp();
41					$(this).parent().parent().removeClass('open');
42					$(this).parent().parent().find('.open').removeClass('open');
43				}
44				return false;
45			});
46			clickYN1=true;
47		},
48		menuNV_tel: function () {
49			$('.w-com-menuNV .systitle').unbind('click');
50			$('.w-com-menuNV .systitle').bind('click',function(){
51				if($(this).hasClass('open')){
52					$(this).removeClass('open');
53					$(this).siblings('.ul-parent').slideUp();
54					$(this).siblings('.ul-parent').find('.ul-submenu').slideUp();
55					$(this).siblings('.ul-parent').find('.open').removeClass('open');
56				}else{
57					$(this).addClass('open');
58					$(this).siblings('.ul-parent').slideDown();
59				}
60				return false;
61			});
62			if(clickYN1){$('.w-com-menuNV .fa-plus').unbind('click');}
63			$('.w-com-menuNV .fa-plus').click(function(){
64				$(this).parent().parent().siblings('li').find('.ul-submenu').slideUp();
65				$(this).parent().parent().siblings('li').removeClass('open');
66				$(this).parent().parent().siblings('li').find('.open').removeClass('open');
67				if($(this).parent().siblings('.ul-submenu').is(':hidden')){
68					$(this).parent().siblings('.ul-submenu').slideDown();
69					$(this).parent().parent().addClass('open');
70				}else{
71					$(this).parent().siblings('.ul-submenu').slideUp();
72					$(this).parent().siblings('.ul-submenu').find('.ul-submenu').slideUp();
73					$(this).parent().parent().removeClass('open');
74					$(this).parent().parent().find('.open').removeClass('open');
75				}
76				return false;
77			});
78			clickYN1=true;
79		}
80	}	
81})();
82$(function(){
83	if($(window).width()>767){
84		menuNV.menuNV_pc();
85	}else{
86	    menuNV.menuNV_tel();
87	}
88	var oldWidth=$(window).width();
89	$(window).resize(function(){
90		var newWidth=$(window).innerWidth();
91		if(oldWidth>767){
92			if (newWidth < 768) {
93			    $('.w-com-menuNV .systitle').siblings('.ul-parent').slideUp();
94				$('.w-com-menuNV .ul-submenu').slideUp();
95			    $('.w-com-menuNV .open').removeClass('open');
96			    menuNV.menuNV_tel();
97		    }
98		}else{
99			if (newWidth > 768) {
100				$('.w-com-menuNV .systitle').unbind('click');
101				$('.w-com-menuNV .systitle').removeClass('open'); 
102				$('.w-com-menuNV .systitle').siblings('.ul-parent').slideDown();
103				$('.w-com-menuNV .systitle').siblings('.ul-parent').find('.ul-submenu').removeAttr('style');
104				$('.w-com-menuNV .systitle').siblings('.ul-parent').find('.open').removeClass('open');
105				$('.w-com-menuNV .ul-parent').removeAttr("style");
106		        $('.w-com-menuNV .ul-submenu').removeAttr("style");
107			    $('.w-com-menuNV .open').removeClass('open');
108			    menuNV.menuNV_pc();
109		        }
110		}
111		oldWidth=$(window).width();
112	});
113});

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.