PageSourceSearch

https://www.zamnesia.com/modules/cookiepopup/js/cookiepopup.js?_=ee48f53a3806c48bb19ffd6069321090

js zamnesia.com collected 2026-10-02 04:21:56 UTC 3,749 bytes, 104 lines download raw bytes

1$(document).ready(function () {
2
3	(function () {
4		let $clonedElement = null,
5			defaultParameters = {
6				padding: 0,
7				margin: 0,
8				width: 'auto',
9				autoCenter: true,
10				autoScale: true,
11				centerOnScroll: true,
12				showCloseButton: true,
13				hideOnOverlayClick: false,
14				autoDimensions: false,
15				onComplete: function () {
16					$(window).resize();
17				},
18				onStart: function () {
19					$('#fancybox-wrap').addClass('cookie-popup-fancybox');
20					$('#fancybox-overlay').addClass('cookie-popup-fancybox-overlay');
21					$('body').css({'overflow-y':'hidden'});
22				},
23				onClosed: function () {
24					$('#fancybox-wrap').removeClass('cookie-popup-fancybox');
25					$('#fancybox-overlay').removeClass('cookie-popup-fancybox-overlay');
26					$('body').css({'overflow-y':'visible'});
27				},
28				onCleanup: function () {
29					$clonedElement = $('.cookie-popup-fancybox .cookie-popup_settings').clone();
30					$clonedElement.appendTo('.cookie-popup_settings-wrapper');
31					$('.fancybox-inline-tmp').remove();
32				}
33			};
34
35		if ($(window).width() >= 768) {
36			defaultParameters = $.extend({}, defaultParameters, {
37				maxWidth: 550,
38				height: 534,
39				minHeight: 534,
40				width: 550,
41			});
42		}
43
44		$('.cookie-popup__right .cookie-popup__settings').fancybox(defaultParameters);
45	})();
46
47	$('body').on('change', '#functional_cookies', function (e) {
48		if (!$(this).prop('checked')) {
49			alert($('#cookieFunctionalAlert').text());
50			$(this).prop('checked', 'checked')
51		}
52	});
53
54	$('body').on('click', '.cookie-popup__accept', function (e) {
55		e.preventDefault();
56		setCookie('cookiePreferenceAccepted', true, 180);
57		setCookie('cookieAnalyticalAccepted', true, 180);
58		setCookie('cookieNewPolicyAccepted', true, 180);
59		document.cookie = 'cookiePolicyAccepted=; Max-Age=-99999999;'; //remove old cookie only once new policy accepted
60		$('.cookie-popup').hide();
61		$.fancybox.close();
62		window.dispatchEvent(new CustomEvent('consentGranted', {}));
63	});
64
65	$('body').on('click', '.cookie-popup__preferences', function (e) {
66		e.preventDefault();
67		setCookie('cookiePreferenceAccepted', $('#preference_cookies').prop('checked'), 180);
68		setCookie('cookieAnalyticalAccepted', $('#analytical_cookies').prop('checked'), 180);
69		setCookie('cookieNewPolicyAccepted', true, 180);
70		document.cookie = 'cookiePolicyAccepted=; Max-Age=-99999999;'; //remove old cookie only once new policy accepted
71		$('.cookie-popup').hide();
72		$.fancybox.close();
73		if ($('#analytical_cookies').prop('checked')) {
74			window.dispatchEvent(new CustomEvent('consentGranted', {}));
75		}
76	});
77
78	$('body').on('click', '.cookie-popup__refuse', function (e) {
79		e.preventDefault();
80		setCookie('cookiePreferenceAccepted', false, 180);
81		setCookie('cookieAnalyticalAccepted', false, 180);
82		setCookie('cookieNewPolicyAccepted', true, 180);
83		document.cookie = 'cookiePolicyAccepted=; Max-Age=-99999999;'; //remove old cookie only once new policy accepted
84		$('.cookie-popup').hide();
85		$.fancybox.close();
86	});
87
88	$('body').on('click', '.cookie-popup-fancybox .cookie-popup__statement', function (e) {
89		e.preventDefault();
90		$(this).removeClass('disabled');
91		$('.cookie-popup-fancybox .cookie-popup__settings').addClass('disabled');
92		$('.cookie-popup-fancybox .cookie-popup__text-settings').hide();
93		$('.cookie-popup-fancybox .cookie-popup__text_statement').show();
94		$.fancybox.resize();
95	});
96	$('body').on('click', '.cookie-popup-fancybox .cookie-popup__settings', function (e) {
97		e.preventDefault();
98		$(this).removeClass('disabled');
99		$('.cookie-popup-fancybox .cookie-popup__statement').addClass('disabled');
100		$('.cookie-popup-fancybox .cookie-popup__text_statement').hide();
101		$('.cookie-popup-fancybox .cookie-popup__text-settings').show();
102		$.fancybox.resize();
103	});
104});

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.