PageSourceSearch

https://anxietyocdspecialists.com/wp-content/plugins/cookieadmin-pro/assets/js/consent.js?ver=1.1.5

js anxietyocdspecialists.com collected 2026-10-04 13:26:38 UTC 1,154 bytes, 39 lines download raw bytes

1
2function cookieadmin_pro_set_consent(prefrenc, days) {
3
4	const data = 'action=cookieadmin_pro_ajax_handler&cookieadmin_act=save_consent' +
5		'&cookieadmin_preference=' + encodeURIComponent(JSON.stringify(Object.keys(prefrenc)));
6
7	let payload = data;
8	if (cookieadmin_is_obj(cookieadmin_is_consent) && !!cookieadmin_is_consent.consent) {
9		payload += '&cookieadmin_consent_id=' + cookieadmin_is_consent.consent;
10	}
11
12	// Make async request — don’t block or wait
13	const xhttp = new XMLHttpRequest();
14	xhttp.open("POST", cookieadmin_pro_vars.ajax_url, true); // true = async
15
16	xhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
17
18	xhttp.onload = function () {
19		if (this.status === 200) {
20			try {
21				const parsed = JSON.parse(this.responseText);
22				if (parsed.success && parsed.data && parsed.data.response) {
23					cookieadmin_save_consent_cookie(prefrenc, days, parsed.data.response);
24				}
25			} catch (e) {
26				console.error("Invalid JSON response:", e);
27			}
28		}
29	};
30
31	xhttp.onerror = function () {
32		console.error("AJAX request failed");
33	};
34
35	xhttp.send(payload);
36
37	// Immediately return
38	return true;
39}

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.