PageSourceSearch

https://sadulaauto.ee/extension/ronixa/catalog/view/javascript/ronixa-theme-general_3_0.js?1790342242

js sadulaauto.ee collected 2026-09-25 13:17:45 UTC 3,553 bytes, 139 lines download raw bytes

1$(document).ready(function(){
2
3			var sectionIds = $('.ronixa-header-nav-link');
4		  
5			  $(document).scroll(function(){
6				  sectionIds.each(function(){
7					if($(this).attr('href')){
8						var elm = $(this).attr('href').split('#');var container = $("[data-id='" + elm[1] + "']");
9						if($(container).length){
10							var containerOffset = $(container).offset().top;
11							var containerHeight = $(container).outerHeight();
12							var containerBottom = containerOffset + containerHeight;
13							var scrollPosition = $(document).scrollTop();
14					
15							if(scrollPosition < containerBottom - 20 && scrollPosition >= containerOffset - 20){
16								$(this).addClass('active');
17							} else{
18								$(this).removeClass('active');
19							}
20						}
21					}
22				  });
23
24				  
25			  });
26			$('.ronixa-header-nav-link').on('click', function(event) {
27				if($(this).attr('href')){
28					var elm = $(this).attr('href').split('#');var anchor = $("[data-id='" + elm[1] + "']");if($(anchor).length){
29						$('html, body').stop().animate({
30							scrollTop: $(anchor).offset().top - 60
31						}, 500);
32
33						$('.ronixa-close-side').removeClass('ronixa-close-side-opened');
34						$('.mobile-nav').removeClass('ronixa-opened');
35						event.preventDefault();
36					}
37				}
38			});
39		  
40		  
41		});
42		$(window).on('load', function () {
43			var value = location.hash.replace('#', '');var anchor = $("[data-id='" +value + "']");
44			if($(anchor).length){
45				$('html, body').stop().animate({
46					scrollTop: $(anchor).offset().top - 60
47				}, 500);
48				$('.ronixa-close-side').removeClass('ronixa-close-side-opened');
49				$('.mobile-nav').removeClass('ronixa-opened');
50				event.preventDefault();
51			}
52		});
53			function promoPopup() {
54			var promo_version = 1;
55
56			if ( typeof Cookies === 'undefined' ) {
57				return;
58			}
59
60			if ($('body').hasClass('admin-builder-body') || true !== true || (true ==  true && $(window).width() < 768) /*|| (Cookies.get('ronixa_age_verify') !== 'confirmed' && ronixa_settings.age_verify === 'yes')*/) {
61
62				return;
63			}
64
65			var shown = false,
66				pages = Cookies.get('ronixa_shown_pages');
67
68			function showPopup() {
69				$.magnificPopup.open({
70					items       : {
71						src: '.ronixa-promo-popup'
72					},
73					type        : 'inline',
74					removalDelay: 500,
75					tClose      : 'Close (Esc)',
76					tLoading    : 'loading',
77					callbacks   : {
78						beforeOpen: function() {
79							this.st.mainClass = 'mfp-move-horizontal ronixa-promo-popup-wrapper';
80						},
81						close     : function() {
82							Cookies.set('ronixa_popup_' + 1 , 'shown', {
83								expires: parseInt('7'),
84								path   : '/',
85								secure : ''
86							});
87						}
88					}
89				});
90
91			};
92
93			$('.ronixa-open-newsletter').on('click', function(e) {
94				e.preventDefault();
95				showPopup();
96			});
97
98			if (!pages) {
99				pages = 0;
100			}
101
102			if (pages < 0) {
103				pages++;
104
105				Cookies.set('ronixa_shown_pages', pages, {
106					expires: 7,
107					path   : '/',
108					secure : ''
109				});
110
111				return false;
112			}
113
114			if (Cookies.get('ronixa_popup_' + 1) !== 'shown') { 
115				if ('time' == scroll) {
116					$(window).on('scroll', function() {
117						if (shown) {
118							return false;
119						}
120
121						if ($(document).scrollTop() >= 1000) {
122							showPopup();
123							shown = true;
124						}
125					});
126				} else {
127
128					setTimeout(function() {
129
130						showPopup();
131					}, 0);
132				}
133			}
134			};
135
136			$(document).ready(function() {
137				promoPopup();
138			});
139			

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.