PageSourceSearch

https://ariva.org/es/wp-content/themes/ariva/assets/js/main.js?ver=6.2.13

js ariva.org collected 2026-09-29 15:28:02 UTC 2,177 bytes, 102 lines download raw bytes

1var $ = jQuery.noConflict();
2
3$(function() {
4
5	$('.slidebox').animate({'right': '0'});
6
7	$('.slidebox-close').click(function() {
8		$('.slidebox').animate({'right': '-396px'});
9	});
10
11	$('.site-header .nav-bars').click(function() {
12		$('.site-header .element-nav').toggle( "slide", { direction: "right" } );
13	});
14
15	$('.site-header .nav-close').click(function() {
16		$('.site-header .element-nav').toggle( "slide", { direction: "right" } );
17	});
18
19	$('.site-header .menu-item-has-children > a').click(function() {
20
21		var windowWidth = $(window).width();
22
23		if( windowWidth < 1024 ) {
24			$(this).toggleClass('-active').find('.sub-menu').slideToggle();
25		}
26
27		return false;
28
29	});
30
31	$('.site-button.open-modal a').click(function() {
32		$(this).parent().next().show();
33		return false;
34	});
35
36	$('.sign-up-modal .modal-close').click(function() {
37		$('.sign-up-modal').hide();
38		return false;
39	});
40
41	$('.site-footer .back-to-top').on('click', function() {
42		$.scrollTo('body', 1000);
43	});
44
45
46	$('.accordion-item .element-title').on('click', function() {
47		$(this).next().slideToggle();
48	});
49
50	$('.location-list-control').on('click', function() {
51		
52
53		if( $(this).hasClass('-more') ) {
54
55			$(this).removeClass('-more').addClass('-less').text('Show Less');
56
57		} else {
58
59			$(this).removeClass('-less').addClass('-more').text('Show More');
60
61		}
62
63		$(this).parent().find('.location-group-hidden').slideToggle();
64
65	});
66
67	$('.menu-item-has-children > a').on('click', function() {
68
69		var windowWidth = $(window).width();
70
71		if( windowWidth < 1024 ) {
72			$(this).parent().find('.sub-menu').slideToggle();
73		}
74
75	});
76
77	$(window).on('resize', function() {
78
79		var windowWidth = $(window).width();
80
81		if( windowWidth >= 1024 ) {
82			// $('body').removeClass('is-nav-open');
83			// $('.site-header .menu-item-has-children').removeClass('-active').find('.sub-menu').removeAttr('style');
84			$('.site-header .element-nav')
85				.removeAttr('style')
86				.find('.menu-item-has-children').removeClass('-active')
87				.find('.sub-menu').removeAttr('style');
88		}
89
90	});
91
92	$('.section-slider .element-slider').slick({
93		autoplay: true,
94		dots: true,
95		autoplaySpeed: 5000,
96		arrows: false,
97		infinite: true
98	});
99
100
101
102});

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.