PageSourceSearch

https://www.privo.com/hubfs/js/functions.js

js privo.com collected 2026-10-03 21:38:08 UTC 1,982 bytes, 81 lines download raw bytes

1$(document).ready(function() {
2	funcionScroll()
3});
4 
5 /* --------------- FUNCIONES PARA DISENIO --------------*/
6function mresponsive(){
7		
8		var menu = $("#mheader nav");
9		var menuOp = $("nav ul li");	
10
11		menu.click(function(event) {
12		
13		if (menu.hasClass("openMenu")){
14			menuOp.addClass("fadeOut");
15			menu.removeClass("openMenu");
16			$(".closem").css( "display", "none");
17			$(".mop").css( "display", "none");
18		}
19		else{
20			menu.addClass("openMenu");
21			menuOp.addClass("fadeInMenu");
22			$(".closem").css( "display", "inline-block");
23			$(".mop").css( "display", "block");
24		}
25	});
26	
27	}
28
29
30
31function funcionScroll() {
32                try {
33                    $('a[href^="#"]').bind('click.smoothscroll', function (e) {
34                        e.preventDefault();
35                        var target = this.hash,
36                        $target = $(target);
37                        if ($target.length != 0) {
38                            $('html, body').stop().animate({
39                                'scrollTop': $target.offset().top - 10
40                            }, 900, 'swing', function () {
41                                window.location.hash = target;
42                            });
43                        }
44                    });
45                }
46                catch (e)
47                { }
48            } 
49 
50 
51 
52
53/* -------- Header resize scroll -----------*/
54 
55$(window).scroll(function() {
56if ($(this).scrollTop() > 1){  
57    $('header').addClass("sticky");
58	$('.logo').addClass("sticky");
59	$('#followh').addClass("none");	
60	$('.menunav').addClass("mrg-scroll");
61	$('#policynav').addClass("pnav");	
62  }
63  else{
64    $('header').removeClass("sticky");
65	$('.logo').removeClass("sticky");
66	$('#followh').removeClass("none");	
67	$('.menunav').removeClass("mrg-scroll");
68	$('#policynav').removeClass("pnav");	
69  }
70});
71
72/* -------- Counter -----------*/
73
74
75
76
77
78
79
80
81// JavaScript Document

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.