PageSourceSearch

https://www.lelabofragrances.com/js/acdc-subscription.js?pdk=25251

js lelabofragrances.com collected 2026-09-24 19:18:11 UTC 2,376 bytes, 78 lines download raw bytes

1$(function() {
2	$( document ).ready(function() {
3		populateSubscription('.header-newsletter-wrapper', 'newsletter');
4
5		populateSubscription('.footer-subscribe-mobile', 'footer');
6		populateSubscription('.footer-subscribe-desktop', 'footer');
7	});
8});
9
10function populateSubscription(target, param) {
11	var url = js_site_var['context_path'] + '/app/subscription/signup';
12	if(param !== undefined && param !== null && $.trim(param) !== '') {
13		url += '?v=' + param;
14	}
15	ajaxWithoutAuth(url, null, 'GET', function(data) {
16		$(target).html(data);
17	});
18}
19
20function subscriptionSuccess(data) {
21	$('.subscribe.typed').removeClass('typed');
22	$('.subscribe-field').hide();
23
24	window.dataLayer.push({
25		event: 'Email Signup'
26	});
27}
28
29function subscriptionFailure(data) {
30	$('.subscribe-btn:disabled').prop('disabled', false)
31
32	if (data.outcome == 'valError') {
33		handleSubscriptionError('.newsletter-error', data.m);
34	} else if (data.outcome == 'failure') {
35		handleSubscriptionError('.newsletter-error', 'There was an error.');
36	}
37}
38
39function footerSubscriptionSuccess(data) {
40	var text = "Thanks for signing up, smell you later!";
41	if (js_site_var['userLanguage'] == 'FR') {
42		text = "Merci pour s'inscrire, a bientôt!";
43	}
44
45	window.dataLayer.push({
46		event: 'Email Signup'
47	});
48
49	$('.footer-subscribe-body').html(text);
50}
51
52function footerSubscriptionFailure(data) {
53	if (data.outcome == 'valError') {
54		handleSubscriptionError('.newsletter-footer-error', data.m);
55	} else if (data.outcome == 'failure') {
56		handleSubscriptionError('.newsletter-footer-error', 'There was an error.');
57	}
58}
59
60function personalCareSubscriptionSuccess(data) {
61	$('.personal-care-page .subscribe--default .subscribe__inner').remove();
62	$('.personal-care-page .subscribe--default .subscribe__actions').html('Thank y
62ou, we will be in touch soon.');
63	$('.personal-care-page .subscribe--default .subscribe__actions').addClass('product-details');
64	$('.personal-care-page .subscribe--default .subscribe__actions').css({'border-top': '1px solid #e5e5e5', 'padding-top': '2em'});
65}
66
67function personalCareSubscriptionFailure(data) {
68	if (data.outcome == 'valError') {
69		alert(data.m);
70	} else if (data.outcome == 'failure') {
71		alert('There was an error.');
72	}
73}
74
75function handleSubscriptionError(selector, errorMessage) {
76	$(selector).removeClass('hidden');
77	$(selector).find('.form-alert').html(errorMessage);
78}

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.