PageSourceSearch

https://hlstore.com/js/consent.js?1791593616

js hlstore.com collected 2026-10-10 00:53:52 UTC 1,112 bytes, 45 lines download raw bytes

1(function(WGR, $, undefined) {
2
3	$('.consent-button').on('click', function() {
4		var consent = $(this).closest('.consent');
5		var consents = consent.closest('.consents');
6
7		$.post('/ajax/?action=consent-give', {
8			clientID: consents.data('clientid'),
9			consentID: consent.data('id'),
10			consentGiven: $(this).data('decision'),
11			hash: $(this).data('hash')
12		},
13		function(data) {
14			if (!data.success) {
15				return false;
16			}
17
18			var consent = $('.consent[data-id="' + data.consentID + '"]:first');
19			consent.addClass('consent-given');
20			consent.find('.consent-active').removeClass('consent-active');
21
22
23			if (data.consentGiven == 0) {
24				consent.find('.consent-no').addClass('consent-active');
25
26				consent.removeClass('consent-yes-border');
27				consent.addClass('consent-no-border');
28
29			}
30			else if (data.consentGiven == 1) {
31				consent.find('.consent-yes').addClass('consent-active');
32
33				consent.removeClass('consent-no-border');
34				consent.addClass('consent-yes-border')
35			}
36
37		}, 'json');
38
39		return false;
40	});
41
42	// Public API
43	WGR.consent = {};
44
45}( window.WGR = window.WGR || {}, jQuery ));

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.