PageSourceSearch

https://www.lelabofragrances.com.au/js/acdc-region.js

js lelabofragrances.com.au collected 2026-10-07 06:53:30 UTC 2,086 bytes, 66 lines download raw bytes

1function initializeUserRegionRelated() {
2	// hooking up the region dropdown
3	$('.userRegionDropdown .location__link').on('click', function(event) {
4		event.preventDefault();
5		var selectedUserRegion = $(this).find('.location__title').attr('data-country-value');
6		var countryName = $(this).find('.location__title').text();
7		var countryLang = $(this).find('.location__language').data('lang');
8
9		switch (selectedUserRegion) {
10			case 'AU':
11				break;
12			case 'JP':
13				window.location.href = "http://www.lelabofragrances.jp/";
14				return false;
15			case 'CA':
16				window.location.href = js_site_var['secure_canada_uri'] + "?region=CA&locale=" + countryLang;
17				return false;
18			case 'KR':
19				window.location.href = js_site_var['secure_korea_uri'];
20				return false;
21			case 'MX':
22				window.location.href = js_site_var['secure_mexico_uri'];
23				return false;
24			case 'TW':
25				window.location.href = js_site_var['taiwan_secure_uri'];
26				return false;
27			case 'WA':
28			case 'ND':
29			case 'SS':
30				selectedUserRegion = 'GB';
31			case 'UK':
32			case 'GB':
33			case 'US':
34			case 'GG':
35			case 'IM':
36			case 'JE':
37				window.location.href = js_site_var['secure_int_uri'] + "?region=" + selectedUserRegion + "&locale=" + countryLang;
38				return false;
39			default:
40			 	let redirectURI = new URI ("/");
41				redirectURI.addSearch('region', selectedUserRegion).addSearch('locale', countryLang);
42				let redirectPath = '/' + selectedUserRegion.toLowerCase() + '/' + countryLang.toLowerCase() + '/';
43				window.location.replace(js_site_var['secure_eu_uri'] + redirectPath + redirectURI.search());
44				return false;						
45		}
46	});
47
48	$('.popover-btn-cancel').on('click', function(event) {
49		event.preventDefault();
50		location.reload();
51	});
52
53	$('.popover-btn-cancel-footer').on('click', function(event) {
54		event.preventDefault();
55		location.reload();
56	});
57
58	setCookieWithHelper(false, 'acdc_currency', 'AUD', {
59		expires: 60,
60		path: '/',
61		sameSite: 'None',
62		secure: true,
63		domain: js_site_var['cookie_domain']
64	});
65	js_site_var['userCurrency'] = getCookieWithHelper(false, 'acdc_currency');
66}

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.