PageSourceSearch

https://lselaw.com/wp-content/themes/lselaw/js/functions.js

js lselaw.com collected 2026-10-02 19:15:34 UTC 2,276 bytes, 86 lines download raw bytes

1jQuery(function() {	
2	// animate submenus
3	jQuery('.main-nav\n\
4     ul').css('opacity', 0);
5	jQuery('.main-nav li').each(function() {
6		var submenu = jQuery(this).find('>ul');
7		submenu.css({'opacity': 0});
8		jQuery(this).hover(function() {
9			submenu.css('left', 'auto').stop(true, true).animate({'opacity': 1}, 200).css({left: 'auto'});
10		},
11		function() {
12			submenu.stop(true, true).animate({'opacity': 0}, 200).css({left: -999});
13		});
14	});
15
16	jQuery('a.menu-button.menu-btn, .main-menu a.close').on('click',function() {
17		jQuery('.main-menu').fadeToggle();
18	});
19
20	// Contact Form //
21	jQuery('a.contact-button, .main-menu a.close').on('click',function() {
22		jQuery('.widget.form.content-form').fadeToggle();
23	});
24
25	// sidebar latest posts
26	/* if (jQuery('.latest-posts-slider').length) {
27		jQuery('.latest-posts-slider').bxSlider({
28			mode: 'fade',
29			adaptiveHeight: true,
30			pagerSelector: '.posts-pager',
31			controls: true,
32			auto: true,
33			pause: 5000,
34                        nextText: '<i class="fa fa-caret-right"></i>',
35                        prevText: '<i class="fa fa-caret-left"></i>'
36
37		});
38	} */
39
40	// sidebar latest cases
41	/* if (jQuery('.latest-cases-slider').length) {
42		jQuery('.latest-cases-slider').bxSlider({
43			mode: 'fade',
44			adaptiveHeight: true,
45			pagerSelector: '.cases-pager',
46			controls: true,
47			auto: true,
48			pause: 5000,
49                        nextText: '<i class="fa fa-caret-right"></i>',
50                        prevText: '<i class="fa fa-caret-left"></i>'
51		});
52	} */
53
54	// swap input value
55	swapValue = [];
56	jQuery(".swap-value").each(function(i){
57		swapValue[i] = jQuery(this).val();
58		jQuery(this).focus(function(){
59			if (jQuery(this).val() == swapValue[i]) {
60				jQuery(this).val("");
61			}
62			jQuery(this).addClass("focus");
63		}).blur(function(){
64			if (jQuery.trim(jQuery(this).val()) == "") {
65				jQuery(this).val(swapValue[i]);
66				jQuery(this).removeClass("focus");
67			}
68		});
69	});
70
71	jQuery('.form p').each(function() {
72		var jQuerythis = jQuery(this),
73			label = jQuerythis.find('label'),
74			input = jQuerythis.find('input[type=text], textarea');
75
76		/* input.on('focus', function() {
77			label.fadeOut("fast");
78		});
79
80		input.on('blur', function() {
81			
82			if(input.val() == '')
83				label.fadeIn("fast");
84		}); */
85	});
86});

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.