PageSourceSearch

https://d-promotion.com/wp-content/themes/dpro/js/nav.js

js d-promotion.com collected 2026-10-02 02:12:43 UTC 744 bytes, 36 lines download raw bytes

1// spmenu
2$(function(){		
3	var menuflag = 0;
4	$('#SpNavBtn').click(function () {
5		if(menuflag==0){
6			$('#header').addClass('open');
7			menuflag = 1;
8			$('#SpGnav').slideDown();	
9		}else{
10			$('#header').removeClass('open');
11			menuflag = 0;
12			$('#SpGnav').slideUp();
13		}
14		//return false();
15	});
16	$(window).resize(function() {
17		var w = $(window).width();
18		if(w>1025){
19			$('#header').removeClass('open');
20			if($('.sp-nav li.has-child').hasClass('on')){
21			$('.sp-nav li.has-child').removeClass('on');
22			$('.sp-nav li.has-child ul').slideToggle();
23			}
24			menuflag = 0;
25			$('#SpGnav').slideUp('slow');
26		}
27	});
28
29	$('.sp-nav li.has-child').click(function () {
30		$(this).find('ul').slideToggle();
31		$(this).toggleClass('on');
32	});
33});
34
35
36

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.