PageSourceSearch

https://espreitaromundo.com/wp-content/themes/photography/js/custom_onepage.js

js espreitaromundo.com collected 2026-10-02 03:00:24 UTC 1,741 bytes, 68 lines download raw bytes

1jQuery(document).ready(function(){ 
2	"use strict";
3	
4	//Desktop menu
5	jQuery('#menu_wrapper div .nav li a, .mobile_main_nav li a').on( 'click', function(event){
6		var documentScroll = jQuery(document).scrollTop();
7		var linkURL = jQuery(this).attr('href');
8	
9		if(linkURL.slice(0,1)=='#')
10		{
11			event.preventDefault();
12			var sectionID = jQuery(this).attr('href').substr(1);
13			
14			var topBarHeight = jQuery('.top_bar').height();
15			
16			if(sectionID=='top')
17			{
18				jQuery('body,html').animate({scrollTop:0},1200);
19			}
20			else
21			{
22				if(documentScroll != 0)
23				{
24					var scrollToPos = parseInt(jQuery('#'+sectionID).offset().top-topBarHeight);
25				}
26				else
27				{
28					var scrollToPos = parseInt(jQuery('#'+sectionID).offset().top-topBarHeight+32);
29				}
30			
31				jQuery('body,html').animate({
32				    scrollTop: scrollToPos
33				}, 1200);
34			}
35			
36			jQuery('#menu_wrapper div .nav li').removeClass('current-menu-item');
37			jQuery(this).parent('li').addClass('current-menu-item');
38			
39			if(jQuery(window).width() < 960)
40			{
41				jQuery('body').removeClass('js_nav');
42			}
43		}
44		else
45		{
46			return true;
47		}
48	});
49	
50	jQuery('#menu_wrapper div .nav li a').each(function () {
51		var sectionElement = jQuery(this).attr('href');
52		
53		if(typeof sectionElement != 'undefined' && sectionElement.charAt(0) == '#')
54		{
55			var topBarHeight = jQuery('.top_bar').height();
56		
57			jQuery(sectionElement).waypoint(function(direction) {
58				jQuery('#menu_wrapper div .nav li a').each(function(){
59					if(jQuery(this).attr('href')==sectionElement)
60					{
61						jQuery('#menu_wrapper div .nav li').removeClass('current-menu-item');
62						jQuery(this).parent('li').addClass('current-menu-item');
63					}
64				})
65			}, { offset: topBarHeight });
66		}
67	});
68});

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.