mod-build 3.6.75-beta.2 → 4.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +3 -0
- package/.eslintrc +18 -0
- package/CHANGELOG.md +2 -252
- package/README.md +16 -263
- package/gulp-tasks/grab-cdn.js +0 -10
- package/package.json +18 -68
- package/siteconfig.js +38 -0
- package/src/data/footer.js +117 -0
- package/src/data/seasons.js +5 -7
- package/src/index.html +18 -0
- package/src/main.js +45 -0
- package/src/scripts/has-qs-params.js +6 -5
- package/src/scripts/url-cleaner.js +3 -3
- package/src/scripts/utils.js +178 -0
- package/src/styles/home.scss +1 -0
- package/src/templates/_partials/scripts/deferred-styles.html +16 -16
- package/src/templates/_partials/scripts/vwo-redirect-callback.html +43 -45
- package/src/templates/components/head.html +70 -0
- package/tasks/clean.js +13 -0
- package/tasks/grab-cdn.js +107 -0
- package/tasks/grab-form-helpers.js +94 -0
- package/tasks/grab-shared-components.js +81 -0
- package/tasks/grab-shared-scripts.js +267 -0
- package/tasks/serve.js +15 -0
- package/tasks/templates.js +168 -0
- package/template.js +801 -0
- package/vite.config.js +56 -0
- package/.eslintrc.yml +0 -59
- package/src/data/common.js +0 -704
- package/src/data/components/qs-footer.js +0 -55
- package/src/data/components/quote-footer.js +0 -73
- package/src/scripts/apt-block.js +0 -919
- package/src/scripts/components/custom-selects.js +0 -48
- package/src/scripts/components/radio-panels.js +0 -45
- package/src/scripts/es6-1.js +0 -6
- package/src/scripts/es6-2.js +0 -2
- package/src/scripts/qs-form.js +0 -839
- package/src/scripts/vendor/maxmind-geoip2.js +0 -2
- package/src/scripts/vendor/swiper.min.js +0 -13
- package/src/styles/apt-block.scss +0 -888
- package/src/templates/_partials/apt-block.html +0 -30
- package/src/templates/_partials/scripts/analytics.html +0 -4
- package/src/templates/_partials/scripts/go-page-hiding-snippet.html +0 -8
- package/src/templates/_partials/scripts/google-maps.html +0 -1
- package/src/templates/_partials/scripts/google-optimize.html +0 -12
- package/src/templates/_partials/scripts/gtm-editorials/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-editorials/head/google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-hil/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-hil/head/google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-pro/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-pro/head/google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-quote/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-quote/head/google-tag-manager-head.html +0 -9
- package/src/templates/_partials/scripts/gtm-whitelabel/body/mod-google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-whitelabel/body/non-mod-google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-whitelabel/head/mod-google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-whitelabel/head/non-mod-google-tag-manager-head.html +0 -9
- package/src/templates/_partials/scripts/gtm-wordpress/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-wordpress/head/google-tag-manager-head.html +0 -9
- package/src/templates/_partials/scripts/visual-website-optimizer.html +0 -5
- package/src/templates/index.html +0 -46
- /package/{src → public}/favicon.ico +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Handles custom selects: add or remove placeholder class on change
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/* eslint brace-style: 0 */
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line no-unused-vars
|
|
8
|
-
var modCustomSelects = (function($) {
|
|
9
|
-
/**
|
|
10
|
-
* Default options
|
|
11
|
-
*/
|
|
12
|
-
var opts = {
|
|
13
|
-
customSelectsSelector: '.form-select-wrapper select',
|
|
14
|
-
customSelectPlaceholderCls: 'placeholder'
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Check the state of a select
|
|
19
|
-
* @param {Object} $select - jQuery selects object
|
|
20
|
-
*/
|
|
21
|
-
function checkState($select) {
|
|
22
|
-
if ($select.val() !== '') {
|
|
23
|
-
$select.removeClass(opts.customSelectPlaceholderCls);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
$select.addClass(opts.customSelectPlaceholderCls);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Start the component
|
|
32
|
-
* @param {Object} options - component options
|
|
33
|
-
*/
|
|
34
|
-
function init(options) {
|
|
35
|
-
jQuery.extend(opts, options);
|
|
36
|
-
|
|
37
|
-
$('body').on('change', opts.customSelectsSelector, function() {
|
|
38
|
-
checkState($(this));
|
|
39
|
-
});
|
|
40
|
-
$.each($(opts.customSelectsSelector), function() {
|
|
41
|
-
checkState($(this));
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return {
|
|
46
|
-
init: init
|
|
47
|
-
};
|
|
48
|
-
})(jQuery);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Radio panels (e.g. Homeowner Yes/No selection)
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// eslint-disable-next-line no-unused-vars
|
|
6
|
-
var modRadioPanels = (function($) {
|
|
7
|
-
/**
|
|
8
|
-
* Default options
|
|
9
|
-
*/
|
|
10
|
-
var opts = {
|
|
11
|
-
radioPanelSelector: '[data-bind="radio-panel"]',
|
|
12
|
-
activeCls: 'radio-panel--active'
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Check the state of a select
|
|
17
|
-
* @param {Object} $input - jQuery inputs object
|
|
18
|
-
*/
|
|
19
|
-
function checkState($input) {
|
|
20
|
-
var name = $input.attr('name');
|
|
21
|
-
|
|
22
|
-
$(opts.radioPanelSelector + ' input[name="' + name + '"]').parents(opts.radioPanelSelector).removeClass(opts.activeCls);
|
|
23
|
-
|
|
24
|
-
if ($input.is(':checked')) {
|
|
25
|
-
$input.parents(opts.radioPanelSelector).addClass(opts.activeCls);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Start the component
|
|
31
|
-
* @param {Object} options - component options
|
|
32
|
-
*/
|
|
33
|
-
function init(options) {
|
|
34
|
-
jQuery.extend(opts, options);
|
|
35
|
-
|
|
36
|
-
$(opts.radioPanelSelector + ' input').on('change', function() {
|
|
37
|
-
checkState($(this));
|
|
38
|
-
});
|
|
39
|
-
checkState($(opts.radioPanelSelector + ' input:checked'));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return {
|
|
43
|
-
init: init
|
|
44
|
-
};
|
|
45
|
-
})(jQuery);
|
package/src/scripts/es6-1.js
DELETED
package/src/scripts/es6-2.js
DELETED