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.
Files changed (62) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc +18 -0
  3. package/CHANGELOG.md +2 -252
  4. package/README.md +16 -263
  5. package/gulp-tasks/grab-cdn.js +0 -10
  6. package/package.json +18 -68
  7. package/siteconfig.js +38 -0
  8. package/src/data/footer.js +117 -0
  9. package/src/data/seasons.js +5 -7
  10. package/src/index.html +18 -0
  11. package/src/main.js +45 -0
  12. package/src/scripts/has-qs-params.js +6 -5
  13. package/src/scripts/url-cleaner.js +3 -3
  14. package/src/scripts/utils.js +178 -0
  15. package/src/styles/home.scss +1 -0
  16. package/src/templates/_partials/scripts/deferred-styles.html +16 -16
  17. package/src/templates/_partials/scripts/vwo-redirect-callback.html +43 -45
  18. package/src/templates/components/head.html +70 -0
  19. package/tasks/clean.js +13 -0
  20. package/tasks/grab-cdn.js +107 -0
  21. package/tasks/grab-form-helpers.js +94 -0
  22. package/tasks/grab-shared-components.js +81 -0
  23. package/tasks/grab-shared-scripts.js +267 -0
  24. package/tasks/serve.js +15 -0
  25. package/tasks/templates.js +168 -0
  26. package/template.js +801 -0
  27. package/vite.config.js +56 -0
  28. package/.eslintrc.yml +0 -59
  29. package/src/data/common.js +0 -704
  30. package/src/data/components/qs-footer.js +0 -55
  31. package/src/data/components/quote-footer.js +0 -73
  32. package/src/scripts/apt-block.js +0 -919
  33. package/src/scripts/components/custom-selects.js +0 -48
  34. package/src/scripts/components/radio-panels.js +0 -45
  35. package/src/scripts/es6-1.js +0 -6
  36. package/src/scripts/es6-2.js +0 -2
  37. package/src/scripts/qs-form.js +0 -839
  38. package/src/scripts/vendor/maxmind-geoip2.js +0 -2
  39. package/src/scripts/vendor/swiper.min.js +0 -13
  40. package/src/styles/apt-block.scss +0 -888
  41. package/src/templates/_partials/apt-block.html +0 -30
  42. package/src/templates/_partials/scripts/analytics.html +0 -4
  43. package/src/templates/_partials/scripts/go-page-hiding-snippet.html +0 -8
  44. package/src/templates/_partials/scripts/google-maps.html +0 -1
  45. package/src/templates/_partials/scripts/google-optimize.html +0 -12
  46. package/src/templates/_partials/scripts/gtm-editorials/body/google-tag-manager-body.html +0 -5
  47. package/src/templates/_partials/scripts/gtm-editorials/head/google-tag-manager-head.html +0 -10
  48. package/src/templates/_partials/scripts/gtm-hil/body/google-tag-manager-body.html +0 -5
  49. package/src/templates/_partials/scripts/gtm-hil/head/google-tag-manager-head.html +0 -10
  50. package/src/templates/_partials/scripts/gtm-pro/body/google-tag-manager-body.html +0 -5
  51. package/src/templates/_partials/scripts/gtm-pro/head/google-tag-manager-head.html +0 -10
  52. package/src/templates/_partials/scripts/gtm-quote/body/google-tag-manager-body.html +0 -5
  53. package/src/templates/_partials/scripts/gtm-quote/head/google-tag-manager-head.html +0 -9
  54. package/src/templates/_partials/scripts/gtm-whitelabel/body/mod-google-tag-manager-body.html +0 -5
  55. package/src/templates/_partials/scripts/gtm-whitelabel/body/non-mod-google-tag-manager-body.html +0 -5
  56. package/src/templates/_partials/scripts/gtm-whitelabel/head/mod-google-tag-manager-head.html +0 -10
  57. package/src/templates/_partials/scripts/gtm-whitelabel/head/non-mod-google-tag-manager-head.html +0 -9
  58. package/src/templates/_partials/scripts/gtm-wordpress/body/google-tag-manager-body.html +0 -5
  59. package/src/templates/_partials/scripts/gtm-wordpress/head/google-tag-manager-head.html +0 -9
  60. package/src/templates/_partials/scripts/visual-website-optimizer.html +0 -5
  61. package/src/templates/index.html +0 -46
  62. /package/{src → public}/favicon.ico +0 -0
package/template.js ADDED
@@ -0,0 +1,801 @@
1
+ /**
2
+ * Site-content that is used
3
+ * inside HTML templates using Handlebars
4
+ */
5
+ export const templateData = () => {
6
+ return {
7
+ page: {
8
+ name: 'walkin-bath-tub',
9
+ themeFile: 'walkinbathtubs',
10
+ headConfig: {
11
+ title: 'Compare Walk-In Tub Prices',
12
+ description: 'Stay Independent & Bathe Safely with a Walk-In Tub.',
13
+ keywords: 'walk in tubs, walk in bathtubs, bathtubs for seniors, elderly shower, step in safety tubs',
14
+ inverseTitle: true,
15
+ useDynamicGtm: true,
16
+ useModAnalytics: true,
17
+ disableOgTags: true,
18
+ noBsBaseStyles: true,
19
+ vwoSetup: {
20
+ vwoPathArray: ['test', 'walkintubs'],
21
+ nogtm: true
22
+ }
23
+ },
24
+ footAssetsConfig: {
25
+ disableBSTransition: true,
26
+ disableProgressBarJS: true,
27
+ disableExpandCollapse: true,
28
+ useNewModForm: true,
29
+ additionalAssets: [
30
+ {
31
+ src: '/shared-components/progress-bar/progress-bar.js',
32
+ defer: true
33
+ },
34
+ {
35
+ src: '/shared-components/expand-collapse/expand-collapse.js',
36
+ defer: true
37
+ }
38
+ ]
39
+ }
40
+ },
41
+ header: {
42
+ includeBackButton: true,
43
+ logo: {
44
+ tag: 'img',
45
+ localSrc: '/images/logos/walkin-bath-tub.svg',
46
+ altText: 'WalkInBathtubs.org'
47
+ },
48
+ additionalLogos: [
49
+ {
50
+ class: 'header__bbb-logo hidden-xs',
51
+ tag: 'img',
52
+ localSrc: '/images/logos/bbb.svg',
53
+ altText: 'BBB Accredited Business'
54
+ }
55
+ ]
56
+ },
57
+ hero: {
58
+ id: 'hero',
59
+ formTemplateInclude: 'src/templates/_partials/form.html',
60
+ titleSubTitleWrapperClass: 'hero__header-container',
61
+ backgroundImage: {
62
+ src: '/images/heros/large/home',
63
+ srcSmallDevices: '/images/heros/small/home'
64
+ },
65
+ title: {
66
+ text: 'Stay Independent & Bathe Safely with a Walk-In Tub',
67
+ extraAttributes: [
68
+ {
69
+ attributeName: 'data-template',
70
+ attributeValue: 'hero-headline'
71
+ }
72
+ ]
73
+ },
74
+ subtitle: {
75
+ text: ' ',
76
+ extraAttributes: [
77
+ {
78
+ attributeName: 'data-template',
79
+ attributeValue: 'hero-p'
80
+ }
81
+ ]
82
+ },
83
+ valueProps: {
84
+ items: [
85
+ {
86
+ imageIcon: '/images/icons/value_props/outward-opening-door.svg',
87
+ description: 'Outward Opening Door'
88
+ },
89
+ {
90
+ imageIcon: '/images/icons/value_props/fast-draining-technology.svg',
91
+ description: 'Fast Draining Technology'
92
+ },
93
+ {
94
+ imageIcon: '/images/icons/value_props/enhanced-therapeutic-features.svg',
95
+ description: 'Enhanced Therapeutic Features'
96
+ },
97
+ {
98
+ imageIcon: '/images/icons/value_props/built-in-safety.svg',
99
+ description: 'Built-In Safety'
100
+ }
101
+ ]
102
+ }
103
+ },
104
+ progressbar: {
105
+ includePercentage: 'fill'
106
+ },
107
+ qsSteps: {
108
+ template: 'src/shared-components/steps/steps.html',
109
+ carouselOptions: {
110
+ swiperId: 'swiperForm',
111
+ additionalSwiperClass: 'swiper--form swiper--dynamic-step-height',
112
+ hasNavigation: false,
113
+ hasPagination: false,
114
+ hasScrollbar: false
115
+ },
116
+ items: [
117
+ {
118
+ stepName: 'zip',
119
+ stepHeader: {
120
+ supertitle: 'Get Competing Offers<br> From <b><i>Top Brands!</i></b>',
121
+ title: 'What is your zipcode?',
122
+ supertitleAttributes: 'data-template="form-title"'
123
+ },
124
+ stepClassName: 'step--zip',
125
+ stepInnerClass: 'step-inner--zip',
126
+ fields: [
127
+ {
128
+ name: 'zip',
129
+ icon: 'icon-stroke-pin'
130
+ }
131
+ ],
132
+ customStepBottomTemplate: 'src/templates/components/step-buttons-tcpa.html',
133
+ button: {
134
+ text: 'Go',
135
+ class: 'btn-primary btn--zip'
136
+ }
137
+ },
138
+ {
139
+ stepName: 'Interest',
140
+ stepHeader: {
141
+ title: 'What\'s the biggest reason you are considering a walk-in tub?'
142
+ },
143
+ fields: [
144
+ {
145
+ fieldType: 'radio',
146
+ name: 'Interest',
147
+ radioOptionType: 'checkmark',
148
+ options: [
149
+ {
150
+ text: 'For Safety',
151
+ value: 'Safety'
152
+ },
153
+ {
154
+ text: 'For Therapeutic Reasons',
155
+ value: 'Therapeutic'
156
+ },
157
+ {
158
+ text: 'Other Reasons',
159
+ value: 'Other'
160
+ }
161
+ ]
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ stepName: 'OwnHome',
167
+ stepHeader: {
168
+ title: 'Do you own your home?'
169
+ },
170
+ fields: [
171
+ {
172
+ fieldType: 'radio',
173
+ name: 'OwnHome',
174
+ radioOptionType: 'checkmark',
175
+ options: [
176
+ {
177
+ text: 'Yes',
178
+ value: 'Yes'
179
+ },
180
+ {
181
+ text: 'No, but I can make <br>improvements',
182
+ value: 'Authorized',
183
+ class: 'radio__button--small'
184
+ },
185
+ {
186
+ text: 'No',
187
+ value: 'No'
188
+ }
189
+ ]
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ stepName: 'PersonalInfo',
195
+ stepHeader: {
196
+ title: 'Almost Done!',
197
+ mobileTitle: 'We&apos;ve found walk-in tub<br> dealers in <b><span class="user-location"></span></b>'
198
+ },
199
+ stepClassName: 'step--personalInfo',
200
+ fields: [
201
+ {
202
+ name: 'firstName'
203
+ },
204
+ {
205
+ name: 'lastName'
206
+ },
207
+ {
208
+ name: 'address',
209
+ placeholder: 'Street Address'
210
+ },
211
+ {
212
+ wrapper: {
213
+ id: 'zip-row',
214
+ class: 'zip-control-content',
215
+ style: 'display: none;',
216
+ label: 'Zip'
217
+ },
218
+ name: 'zip1'
219
+ },
220
+ {
221
+ fieldType: 'zip-control'
222
+ }
223
+ ],
224
+ customStepBottomTemplate: 'src/templates/components/step-buttons-tcpa.html',
225
+ button: {
226
+ text: 'Next',
227
+ class: 'btn-primary'
228
+ }
229
+ },
230
+ {
231
+ stepName: 'ContactInfo',
232
+ stepHeader: {
233
+ title: 'The Last Step!',
234
+ mobileTitle: 'The Last Step!',
235
+ subtitle: {
236
+ text: 'How can we contact you with pricing?'
237
+ }
238
+ },
239
+ stepClassName: 'step--contactInfo',
240
+ fields: [
241
+ {
242
+ name: 'homePhone'
243
+ },
244
+ {
245
+ name: 'email'
246
+ },
247
+ {
248
+ fieldType: 'input',
249
+ name: 'service',
250
+ type: 'hidden',
251
+ value: 'WALK_IN_TUBS'
252
+ },
253
+ {
254
+ fieldType: 'input',
255
+ name: 'site',
256
+ type: 'hidden',
257
+ value: 'WALKINBATHTUBS.ORG'
258
+ },
259
+ {
260
+ fieldType: 'input',
261
+ name: 'siteName',
262
+ type: 'hidden',
263
+ value: 'walkinbathtubs.org'
264
+ }
265
+ ],
266
+ tcpa: {
267
+ company: 'QuinStreet',
268
+ url: 'qs-companies',
269
+ text: 'We respect your privacy and want to make you aware of a few things. By submitting, you authorize QuinStreet and up to <a href="https://hs.leadpost.net/clientList.jsp?c_level=default&amp;aff=108809344" target="_blank" id="clientList" style="color: inherit !important;">four home improvement service companies</a> to call you on the phone number provided to discuss your project. You understand that some may use automated dialing, prerecorded messages or SMS messages to contact you and that you are in no way required to purchase any products or services from them. It\'s entirely your choice.'
270
+ },
271
+ customStepBottomTemplate: 'src/templates/components/step-buttons-tcpa.html',
272
+ button: {
273
+ text: 'Compare Prices',
274
+ class: 'btn-primary'
275
+ }
276
+ }
277
+ ]
278
+ },
279
+ partners: {
280
+ title: 'Get Competing Offers from<br><b>Top Brands!</b>',
281
+ subTitle: 'Actual company matches are dependent on local availability & other factors',
282
+ companies: [
283
+ {
284
+ name: 'american-standard',
285
+ alt: 'American Standard Walk-In Tubs',
286
+ fallbackImgExtension: 'png'
287
+ },
288
+ {
289
+ name: 'independent-home',
290
+ alt: 'Independent Home Walk-In Baths',
291
+ fallbackImgExtension: 'png'
292
+ }
293
+ ],
294
+ additionalBrands: {
295
+ icon: 'add',
296
+ text: 'Many <br> More Brands'
297
+ }
298
+ },
299
+ guarantee: {
300
+ includeContainerWrapper: true,
301
+ columns: [
302
+ {
303
+ class: 'col-sm-5',
304
+ title: {
305
+ class: 'visible-xs',
306
+ text: 'Compare Multiple Walk-In Tub Price Quotes in One Place!',
307
+ extraAttributes: [
308
+ {
309
+ attributeName: 'data-template',
310
+ attributeValue: 'supplemental-headline'
311
+ }
312
+ ]
313
+ },
314
+ image: {
315
+ tag: 'picture',
316
+ localSrc: '/images/illustrations/houses/bath-tubs.jpg',
317
+ localSrcset: '/images/illustrations/houses/bath-tubs.webp',
318
+ pictureSourceAttributes: 'type="image/webp"',
319
+ altText: '',
320
+ lazyload: true
321
+ }
322
+ },
323
+ {
324
+ class: 'col-sm-7 featured-block__content--right',
325
+ title: {
326
+ class: 'hidden-xs',
327
+ text: 'Compare Multiple Walk-In Tub Price Quotes in One Place!',
328
+ extraAttributes: [
329
+ {
330
+ attributeName: 'data-template',
331
+ attributeValue: 'guarantee-headline'
332
+ }
333
+ ]
334
+ },
335
+ description: {
336
+ text: 'When you fill out our short form, you will unlock personalized offers for your walk-in tub project! Simply answer basic question about your home to be connected to local, licensed providers who are eager to start your installation.',
337
+ extraAttributes: [
338
+ {
339
+ attributeName: 'data-template',
340
+ attributeValue: 'guarantee-p-desktop'
341
+ }
342
+ ]
343
+ },
344
+ button: {
345
+ href: '#hero',
346
+ text: 'Get Started Now',
347
+ extraAttributes: [
348
+ {
349
+ attributeName: 'data-template',
350
+ attributeValue: 'guarantee-cta-desktop'
351
+ }
352
+ ]
353
+ }
354
+ }
355
+ ]
356
+ },
357
+ information: {
358
+ title: 'Bath Tub Information',
359
+ expandCollapse: {
360
+ label: {
361
+ collapsed: 'Show more info',
362
+ expanded: 'Show less info'
363
+ },
364
+ icon: {
365
+ collapsed: 'icon-add',
366
+ expanded: 'icon-subtract'
367
+ },
368
+ id: 'btn-expand',
369
+ targetId: 'information-content',
370
+ collapsedByDefault: true,
371
+ scrollToTop: true
372
+ },
373
+ details: [
374
+ {
375
+ title: 'Get a More Bang-for-Your-Buck Tub',
376
+ text: [
377
+ 'Shopping for the perfect walk-in tub can be a grueling task, especially when you have hundreds of providers to choose from. Thanks to WalkInBathtubs.org, you can compare multiple local providers with a click of a button.',
378
+ 'Not only can you find the most cost-efficient provider, you are also able to compare amongst different brands and models to find the tub that best suits your needs with our service!'
379
+ ]
380
+ },
381
+ {
382
+ title: 'The Benefits of Walk-In Tubs',
383
+ IsParentChildInformation: 'yes',
384
+ text: [
385
+ '1. <b>Safety</b> - According to data collected by the CDC, the bathroom can be a dangerous place, specifically for seniors. The daily task of showering or bathing can quickly become life-threatening for those who have trouble with balance. Luckily, walk-in tubs are a great solution to this problem, thanks to numerous safety features like: non-slip floors, stability hand bars, elevated seating, and convenient door configurations.',
386
+ '2. <b>Health & Wellbeing</b> - Studies have previously suggested that daily hydrotherapy has connections to relieving sore muscles, joints, and arthritic pain; reducing stress and anxiety; promoting better circulation, and even lowering blood pressure.',
387
+ '3. <b>Quality of Life</b> - Whether you\'re shopping for yourself or a loved one, maintaining an independent lifestyle is important. If bathroom safety has been put into question, consider implementing a walk-in tub to ensure a safe and serene experience.'
388
+ ]
389
+ }
390
+ ]
391
+ },
392
+ footer: {
393
+ links: [
394
+ {
395
+ name: 'About',
396
+ url: '/about/',
397
+ modal: true
398
+ },
399
+ {
400
+ name: 'Privacy Notice',
401
+ url: '/privacy/',
402
+ modal: true
403
+ },
404
+ {
405
+ name: 'Affiliates',
406
+ url: 'https://www.unitedhomeimprovement.com/for_publishers/?source=walkinbathtubs',
407
+ modal: false
408
+ },
409
+ {
410
+ name: 'Terms of Use',
411
+ url: '/terms/',
412
+ modal: true
413
+ },
414
+ {
415
+ name: 'Contact Us',
416
+ url: '/contact-us/',
417
+ modal: true
418
+ },
419
+ {
420
+ name: 'California - Do not sell my info',
421
+ url: 'https://privacy-central.securiti.ai/#/dsr/983cfd4b-c36a-4601-89e9-b651e5a05708',
422
+ modal: false
423
+ }
424
+ ],
425
+ copyright: 'QuinStreet, Inc. All Rights Reserved.'
426
+ },
427
+ unmatched: {
428
+ title: 'Hey <span class="user-name"></span>,<br> we weren\'t able to match you just yet.',
429
+ subtitle: 'We\'re still working behind the scenes at <b>WalkinBathTubs.org</b> to help you with your walk in bath tubs project. <b>A project specialist may reach out to you soon</b> to confirm your details.',
430
+ secureText: '<b>Your information is secure</b>',
431
+ imgPath: 'illustrations/misc/unmatched/UnmatchedAnimation.svg'
432
+ },
433
+ matched: {
434
+ title: 'Congratulations <span class="user-name"></span>,',
435
+ subtitle: 'We found the following matches for you:',
436
+ stepsTitle: 'What Happens Next?',
437
+ steps: [
438
+ {
439
+ imgPath: 'illustrations/misc/agent',
440
+ fallbackImgExtension: 'png',
441
+ text: 'You&apos;ll receive a call from each of the above companies very soon.'
442
+ },
443
+ {
444
+ imgPath: 'illustrations/misc/phone',
445
+ fallbackImgExtension: 'png',
446
+ text: 'Be sure to answer your phone and be ready to discuss your walk-in tub.'
447
+ },
448
+ {
449
+ imgPath: 'illustrations/misc/bathtub',
450
+ fallbackImgExtension: 'png',
451
+ text: 'Select the company that is right for you!'
452
+ }
453
+ ]
454
+ },
455
+ abandonment: {
456
+ headerTitle: 'Get Pricing from our Preferred Partners in <br><span class="modal-user-location"></span>',
457
+ clientList: [
458
+ {
459
+ clientName: 'American Standard',
460
+ altText: 'American Standard',
461
+ isRibbonPresent: 'yes',
462
+ ribbonOfferText: 'Special Offer',
463
+ clientImage: {
464
+ name: 'as_logo',
465
+ fallbackImgExtension: 'png'
466
+ },
467
+ clientOfferList: [
468
+ '$1,500 in Savings Including a Free RightHeight&reg; Toilet',
469
+ 'Best In-Class Limited Lifetime Warranty on Tub & Install',
470
+ 'Revitajet&trade; Hydrotherapy System with 44 Massaging Jets',
471
+ 'Drain Your Bath in Less Than 2 Minutes with Quick&nbsp;Drain&reg;'
472
+ ],
473
+ getPriceQuotesBtn: {
474
+ btnText: 'Get Price Quotes',
475
+ btnLink: 'https://www.americanstandardwalkinbaths.com/?LBOX=walkintubs_aband&quadlink=https://o1.qnsr.com/cgi/r?;n=203;c=1669262;s=26393;x=7936;f=201912201332120;u=j;z=TIMESTAMP;&default=yes',
476
+ staticId: 'as-price-quotes'
477
+ },
478
+ callNowBtn: {
479
+ btnText: 'Call: (866) 863-6881',
480
+ btnLink: 'tel:866-863-6881'
481
+ }
482
+ },
483
+ {
484
+ clientName: 'KOHLER<span>®</span> Walk-In Bath',
485
+ altText: 'KOHLER Walk-In Bath',
486
+ isRibbonPresent: 'no',
487
+ clientImage: {
488
+ name: 'kohler_logo_black',
489
+ fallbackImgExtension: 'png'
490
+ },
491
+ clientOfferList: [
492
+ 'Industry-Leading Lowest Step-In at 3" for Safe, Secure Entry',
493
+ 'Kohler\'s Exclusive Hydrotherapy and Fast-Drain Technology',
494
+ 'Backed by a Limited Lifetime Warranty and 140+ Years of Expertise',
495
+ '$500 off KOHLER&reg; LuxStone&trade; Bath Walls with Your Bath'
496
+ ],
497
+ getPriceQuotesBtn: {
498
+ btnText: 'Get Price Quotes',
499
+ btnLink: 'http://o1.qnsr.com/cgi/r?;n=203;c=1656357;s=3086;x=7936;f=201807171659370;u=j;z=TIMESTAMP;'
500
+ },
501
+ callNowBtn: {
502
+ btnText: 'Call: (866) 858-7669',
503
+ btnLink: 'tel:866-858-7669'
504
+ }
505
+ }
506
+ ]
507
+ },
508
+ siteData: {
509
+ trade: 'walk-in-tubs'
510
+ },
511
+ walkintubs: {
512
+ page: {
513
+ headConfig: {
514
+ title: 'Compare Walk-In Tub Prices',
515
+ description: 'Stay Independent & Bathe Safely with a Walk-In Tub.',
516
+ keywords: 'walk in tubs, walk in bathtubs, bathtubs for seniors, elderly shower, step in safety tubs',
517
+ faviconPath: '/favicon.ico',
518
+ inverseTitle: true,
519
+ useDynamicGtm: true,
520
+ useModAnalytics: true,
521
+ disableOgTags: true,
522
+ vwoSetup: {
523
+ vwoPathArray: ['none'],
524
+ nogtm: true,
525
+ noheap: true
526
+ },
527
+ deferModAnalytics: true,
528
+ preConnect: [
529
+ {
530
+ href: 'https://fonts.googleapis.com/css?family=Open+Sans:400,500,700&display=swap',
531
+ rel: 'preload',
532
+ fetchPriority: 'high',
533
+ as: 'font'
534
+ },
535
+ {
536
+ href: '/images/walkintubs/heros/hero-poster.jpg',
537
+ rel: 'preload',
538
+ fetchPriority: 'high',
539
+ as: 'image',
540
+ type: "image/jpg"
541
+ },
542
+ {
543
+ href: '/styles/vendor/bootstrap-base.css',
544
+ rel: 'preload',
545
+ fetchPriority: 'low',
546
+ as: 'style',
547
+ },
548
+ {
549
+ href: '/styles/walkintubs.css',
550
+ rel: 'preload',
551
+ fetchPriority: 'low',
552
+ as: 'style',
553
+ }
554
+ ]
555
+ },
556
+ footAssetsConfig: {
557
+ disableBSTransition: true,
558
+ disableQsForm: true,
559
+ disableFormJs: true,
560
+ disableProgressBarJS: true,
561
+ disableExpandCollapse: true,
562
+ disableModForm: true,
563
+ disableJquery: true,
564
+ disableModCarousel: true,
565
+ additionalAssets: [
566
+ {
567
+ src: '/resources/scripts/helpers/initNumericOnlyFields.min.js',
568
+ defer: true
569
+ },
570
+ {
571
+ src: '/resources/scripts/helpers/isZipCodeValid.min.js',
572
+ defer: true
573
+ }
574
+ ],
575
+ deferModUtils: true
576
+ }
577
+ },
578
+ header: {
579
+ logo: {
580
+ path: '/images/logos/walkin-bath-tub',
581
+ alt: 'WalkIn Bath tubs'
582
+ }
583
+ },
584
+ hero: {
585
+ title: 'See How <span class="highlight">This All-In-One Home Spa Solution</span> Has Helped Relieve The Aches And Pains Of Over 100,000 Americans',
586
+ subtitle: 'Has a therapeutic effect on diseases like arthritis, diabetes, insomnia and more.',
587
+ video: {
588
+ path: '/videos/hero.mp4',
589
+ poster: '/images/walkintubs/heros/hero-poster.jpg'
590
+ }
591
+ },
592
+ whatYouGet: {
593
+ title: 'What You Get',
594
+ blocks: [
595
+ {
596
+ video: {
597
+ path: '',
598
+ poster: '/images/walkintubs/illustrations/poster/what-you-get.jpg'
599
+ },
600
+ props: [
601
+ '<h4>01. Body hydrotherapy jet system</h4><div>Built-in air and water jets help improve circulation, alleviate lower back pain, and reduce the recurrence of symptoms associated with arthritis and sciatica.</div>',
602
+ '<h4>02. Dual massage system</h4><div>Relaxing water massage provides symptomatic relief for a vast number of conditions.</div>',
603
+ '<h4>03. Heated seat</h4><div>The surface-mounted heating system gently warms your tub\'s seat and back while you enjoy your bath and even while waiting for the water to drain.</div>',
604
+ '<h4>04. Chromo & aroma therapy</h4><div>7-color light & aroma therapy systems help to enhance mood, minimize stress, calm the nerves and get a good night of sleep.</div>',
605
+ '<h4>05. Air therapy system</h4><div>A complete restorative solution for gentle exfoliation, hydration, and deep cleaning for people suffering from dry, damaged or depleted skin.</div>',
606
+ '<h4>06. Electronic keypad</h4><div>A complete restorative solution for gentle exfoliation, hydration, and deep cleaning for people suffering from dry, damaged or depleted skin.</div>'
607
+ ]
608
+ }
609
+ ]
610
+ },
611
+ formSection: {
612
+ backgroundImage: 'form-background.jpg',
613
+ headerTitle: 'You\'ll be surprised how affordable it is!',
614
+ formTitle: 'See how much it will cost in your area',
615
+ formSubtitle: 'Enter zip code to compare prices today',
616
+ zipcode: {
617
+ text: 'What is your zip code?',
618
+ field: {
619
+ fieldType: 'input',
620
+ name: 'zip',
621
+ type: 'tel',
622
+ id: '',
623
+ placeholder: 'Enter Zip Code',
624
+ required: 'zip',
625
+ maxLength: '5',
626
+ errorMessage: 'Please enter a valid zip code.',
627
+ class: 'form-input--zip'
628
+ }
629
+ },
630
+ ctaText: 'Estimate Cost'
631
+ },
632
+ banner: {
633
+ title: 'Compare offers from brands like:',
634
+ logos: [
635
+ {
636
+ path: '/images/logos/partners/american-standard.webp',
637
+ alt: 'American Standard',
638
+ classPrefix: 'americanstandard'
639
+ },
640
+ {
641
+ path: '/images/logos/partners/independent-home.webp',
642
+ alt: 'independent-home',
643
+ classPrefix: 'independent-home'
644
+ }
645
+ ]
646
+ },
647
+ photoGallery: {
648
+ title: 'Helped Over 100,000 Households Nationwide',
649
+ images: [
650
+ '/images/walkintubs/illustrations/gallery/image-1.jpg',
651
+ '/images/walkintubs/illustrations/gallery/image-2.jpg',
652
+ '/images/walkintubs/illustrations/gallery/image-3.jpg'
653
+ ]
654
+ },
655
+ reviews: {
656
+ title: 'See What Our Customers Say',
657
+ items: [
658
+ {
659
+ starRating: '50',
660
+ reviewText: 'Very professional and did a great job installing.',
661
+ authorName: 'Gerard D.'
662
+ },
663
+ {
664
+ starRating: '45',
665
+ reviewText: 'On time professional installers. Excellent customer service; no high pressure sales tactics.',
666
+ authorName: 'Susan H.'
667
+ },
668
+ {
669
+ starRating: '50',
670
+ reviewText: 'The quote was honest and straightforward. They offered discounts and quick financing options. Can\'t wait to see the project completed!',
671
+ authorName: 'Mel R.'
672
+ },
673
+ {
674
+ starRating: '45',
675
+ reviewText: 'Very knowledgeable! Very friendly and actually a fun experience!',
676
+ authorName: 'Rob W.'
677
+ },
678
+ {
679
+ starRating: '50',
680
+ reviewText: 'Great work! The whole crew was helpful and did a great job from manufacturing to installation.',
681
+ authorName: 'Jason B.'
682
+ },
683
+ {
684
+ starRating: '45',
685
+ reviewText: 'They were very professional and courteous. They listened to what I was requesting and worked diligently to match my requests.',
686
+ authorName: 'Jerry B.'
687
+ },
688
+ {
689
+ starRating: '50',
690
+ reviewText: 'Best price and best warranty.',
691
+ authorName: 'David P.'
692
+ },
693
+ {
694
+ starRating: '45',
695
+ reviewText: 'On time, clean, explained the installation in detail. Great crew!',
696
+ authorName: 'Katie H.'
697
+ }
698
+ ]
699
+ },
700
+ howItWorks: {
701
+ title: 'How It Works',
702
+ blocks: [
703
+ {
704
+ video: {
705
+ path: '',
706
+ poster: '/images/walkintubs/illustrations/poster/shower-conversion.jpg'
707
+ },
708
+ header: {
709
+ title: 'Highest Quality Craftsmanship'
710
+ },
711
+ description: 'The combination of skilled workers and precise machinery craft the tub\'s specifications down to the millimeter. A 14-Point Quality Control Inspection on every tub guarantees they meet our industry-leading standards.'
712
+ },
713
+ {
714
+ video: {
715
+ path: '',
716
+ poster: '/images/walkintubs/illustrations/poster/shower-replacement.jpg'
717
+ },
718
+ header: {
719
+ title: 'Hassle-Free Site Preparation'
720
+ },
721
+ description: 'The old tub or shower is disassembled, as well as any remaining parts of the enclosure, down to the bare wall. The debris is either discarded or recycled by the installation crew, so there\'s no clean-up involved after the job has been completed.'
722
+ },
723
+ {
724
+ video: {
725
+ path: '',
726
+ poster: '/images/walkintubs/illustrations/poster/shower-installation.jpg'
727
+ },
728
+ header: {
729
+ title: 'Expert Installation'
730
+ },
731
+ description: 'New electrical and plumbing connections are made, blocking supports erected, and new drywall is put in place. Your new walk-in tub is hooked up, and everything is properly sealed to ensure waterproofing. After a final test run, your new, safer, therapeutic bath is all yours!'
732
+ }
733
+ ]
734
+ },
735
+ statsInfo: {
736
+ header: 'Stats Show Bathroom Slips And Falls Are the Top Causes Of Injuries For The Elderly',
737
+ info: 'Researchers determined that more than a third of seniors over the age of 65 slip and fall each year – 80 percent of those falls occur in the bathroom.*',
738
+ impInfo: 'Every year 4,075,622 older adults seek emergency care for fall-related injuries. In addition to losing their independence, research has shown that seniors 65 and older have a 25% chance of dying within 6 months to a year if they fall and break a hip.**',
739
+ image: '/images/walkintubs/illustrations/stats-info.jpg'
740
+ },
741
+ benefits: {
742
+ heading: 'Conditions That May Benefit From Using A Walk-In Tub',
743
+ subHeading: 'Walk-In Tubs have several built-in benefits and advantages that may help ease aches and pains, alleviate tension, help improve circulation and offer a multitude of therapeutic advancements to provide relief for symptoms of:',
744
+ bannerImagesPath: '/images/walkintubs/illustrations/',
745
+ bannerImages: [
746
+ 'knee-pain.jpg',
747
+ 'blood-test.jpg'
748
+ ],
749
+ cards: [
750
+ {
751
+ title: 'Arthritis',
752
+ details: 'If you’re one of the millions of people living with arthritis, bathing in a walk-in tub has been known to reduce stiffness, pain, and swelling.',
753
+ icon: '/images/walkintubs/icons/benefits/health-arthritis.svg'
754
+ },
755
+ {
756
+ title: 'Sleep Apnea',
757
+ details: 'The steam from a walk-in tub may help serve as a decongestant, promote better sleep, and even improve breathing conditions like sleep apnea.',
758
+ icon: '/images/walkintubs/icons/benefits/health-apnea.svg'
759
+ },
760
+ {
761
+ title: 'Joint Pain',
762
+ details: 'Full-body immersion in a walk-in tub reduces body weight while bathing, which may help relieve pressure from your joints and promote cartilage healing.',
763
+ icon: '/images/walkintubs/icons/benefits/health-joint.svg'
764
+ },
765
+ {
766
+ title: 'Insomnia',
767
+ details: 'The rest and relaxation that many have experienced using walk-in tubs have been credited with allowing the mind and muscles to unwind and help you get better sleep.',
768
+ icon: '/images/walkintubs/icons/benefits/health-insomnia.svg'
769
+ },
770
+ {
771
+ title: 'Diabetes',
772
+ details: 'Diabetes patients have been known to feel benefits from using a walk-in tub, such as improved circulation, decreased blood sugar levels, and faster metabolism.',
773
+ icon: '/images/walkintubs/icons/benefits/health-diabetes.svg'
774
+ },
775
+ {
776
+ title: 'Hydrotherapy',
777
+ details: 'If you experience stiff or aching muscles, a walk-in tub’s hydro-therapeutic qualities are trusted by millions around the globe to help them relax and relieve their pain.',
778
+ icon: '/images/walkintubs/icons/benefits/health-therapy.svg'
779
+ },
780
+ {
781
+ title: 'Fibromyalgia',
782
+ details: 'There is evidence that the pain and fatigue associated with fibromyalgia can be, in combination with other therapies, managed and soothed with hydrotherapy.',
783
+ icon: '/images/walkintubs/icons/benefits/health-fibro.svg'
784
+ },
785
+ {
786
+ title: 'Poor Circulation',
787
+ details: 'Walk-in tub bathing has been linked to the stimulation of blood circulation in legs and feet, which makes people feel refreshed and rejuvenated.',
788
+ icon: '/images/walkintubs/icons/benefits/health-circulation.svg'
789
+ }
790
+ ]
791
+ },
792
+ footer: {
793
+ info: '* - According to <a href="https://www.nia.nih.gov/health/falls-and-fractures-older-adults-causes-and-prevention" target="_blank">The National Institute on Aging</a> ** - According to <a href="https://pubmed.ncbi.nlm.nih.gov/26016287/" target="_blank">NLM</a> and <a href="https://www.cdc.gov/injury/wisqars/LeadingCauses.html" target="_blank">CDC</a>'
794
+ },
795
+ siteData: {
796
+ trade: 'walk-in-tubs'
797
+ }
798
+ }
799
+ }
800
+ };
801
+