PageSourceSearch

https://ravalsolidari.org/wp-content/themes/ravalsolidari/js/main.js?ver=6.7.9

js ravalsolidari.org collected 2026-10-03 00:31:09 UTC 2,660 bytes, 107 lines download raw bytes

1$(document).ready(function() {
2  //init the wow js script
3  new WOW().init();
4	
5	if($('#donaciones')){
6		var x = $('#setdonaciones').attr('href');
7		$('#donaciones').attr('href', x);
8		console.log(x)
9	}
10
11  if (window.innerWidth > 768) {
12    $(window).scroll(function() {
13      var scroll = $(window).scrollTop();
14      if (scroll >= 40) {
15        $(".head-fixed").css("top", "0");
16      } else {
17        $(".head-fixed").css("top", "40px");
18      }
19      if (scroll >= 120) {
20        $(".logo").css("height", "40px");
21        $(".logo").css("width", "auto");
22        $(".head-fixed").css("background-color", "#ffffff");
23        $(".arrow-up").css("opacity", "1");
24      } else {
25        $(".logo").css("height", "93px");
26        $(".logo").css("width", "auto");
27        $(".head-fixed").css("background-color", "#ffffff");
28        $(".arrow-up").css("opacity", "0");
29      }
30    });
31  } else {
32    $(window).scroll(function() {
33      var scroll = $(window).scrollTop();
34      if (scroll >= 120) {
35        $(".logo").css("height", "40px");
36        $(".logo").css("width", "auto");
37        $(".head-fixed").css("background-color", "#ffffff");
38        $(".arrow-up").css("opacity", "1");
39      } else {
40        $(".logo").css("height", "93px");
41        $(".logo").css("width", "auto");
42        $(".head-fixed").css("background-color", "#ffffff");
43        $(".arrow-up").css("opacity", "0");
44      }
45    });
46  }
47
48  $(".sponsors").owlCarousel({
49    responsive: {
50      // breakpoint from 0 up
51      0: {
52        autoplay: true,
53        autoplayTimeout: 2000,
54        items: 1
55      },
56      // breakpoint from 480 up
57      480: {
58        items: 3
59      },
60      // breakpoint from 768 up
61      768: {
62        autoplay: true,
63        autoplayTimeout: 2000,
64        items: 4,
65        loop: true
66      }
67    }
68  });
69  $(".main-slider").owlCarousel({
70    autoplay: true,
71    items: 1,
72    loop: true
73  });
74
75  /*   $(".menu-item a").click(function(event) {
76    event.preventDefault();
77    alert("vaya! esta opción no está disponible todavía.");
78  }); */
79
80  //counter
81  var counters = $(".count");
82  var countersQuantity = counters.length;
83  var counter = [];
84
85  for (i = 0; i < countersQuantity; i++) {
86    counter[i] = parseInt(counters[i].innerHTML);
87  }
88
89  var count = function(start, value, id) {
90    var localStart = start;
91    setInterval(function() {
92      if (localStart < value) {
93        localStart++;
94        counters[id].innerHTML = localStart;
95      }
96    }, 40);
97  };
98
99  for (j = 0; j < countersQuantity; j++) {
100    count(0, counter[j], j);
101  }
102});
103
104function openMenu() {
105  $(".nav-menu-handler").toggleClass("nav-menu-open");
106  console.log("click");
107}

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.