PageSourceSearch

https://www.hitachiglobalairpower.com/js/hgap/privacyManagement-gtm.js

js hitachiglobalairpower.com collected 2026-10-07 16:15:04 UTC 1,560 bytes, 54 lines download raw bytes

1// privacyManagement.js
2
3function checkCookies() {
4	if (getCookie('allowAnalytics')==null) {
5		jQuery("#privacyBanner").fadeIn(400);
6	}
7}
8function acceptAnalyticsCookie() {
9	if ((getCookie('allowAnalytics')=="false")||(getCookie('allowAnalytics')==null)) {
10		recordAnalyticsVisit();
11	}
12	jQuery("#acceptAnalyticsCookies").prop('checked',true);
13	var expire=new Date();
14	expire=new Date(expire.getTime()+7776000000);
15	document.cookie="allowAnalytics=true; expires="+expire+";path=/;samesite=strict";
16}
17function rejectAnalyticsCookie() {
18    ignoreAnalytics();
19	var expire=new Date();
20	expire=new Date(expire.getTime()+7776000000);
21	document.cookie="allowAnalytics=false; expires="+expire+";path=/;samesite=strict";
22}
23function acceptAllCookies() {
24	acceptAnalyticsCookie();
25}
26function setAllCookies() {
27	if (jQuery("#acceptAnalyticsCookies").prop('checked')) {
28		acceptAnalyticsCookie();
29	}
30	else { 
31		rejectAnalyticsCookie();
32	}
33}
34jQuery(document).ready(function() {
35	if (getCookie('allowAnalytics')=="true") {
36		jQuery("#acceptAnalyticsCookies").prop('checked',true);
37	}
38	jQuery("#acceptAllCookies").click(function() {
39		acceptAllCookies();
40		jQuery("#privacyBanner").fadeOut(400);
41	});
42	jQuery("#changeCookieSettings").click(function() {
43		jQuery("#privacyBanner").fadeOut(400);
44		jQuery("#privacySettings").fadeIn(400);
45	});
46	jQuery("#saveCookieSettings").click(function() {
47		setAllCookies();
48		jQuery("#privacySettings").fadeOut(400);
49	});
50	jQuery("#privacySettingsLink").click(function() {
51		jQuery("#privacySettings").fadeIn(400);
52	});
53	checkCookies();
54});

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.