@@ -65,8 +65,8 @@ function dynamicValidation() {
6565}
6666
6767//Carries over number values when toggling between type of mobile and home
68- var phoneCarryover ;
69- var newPhoneType ;
68+ let phoneCarryover ;
69+ let newPhoneType ;
7070
7171function phoneTypeToggle ( phoneType ) {
7272 let phones = document . querySelectorAll ( 'input[id$=mobile], input[id$=phone]' ) ;
@@ -94,8 +94,8 @@ async function recaptcha() {
9494}
9595
9696function checkForm ( ) {
97- var error_count = 0 ;
98- var emailReg = / ^ ( [ a - z A - Z 0 - 9 _ . \- . ' . + ] ) + @ ( ( [ a - z A - Z 0 - 9 \- ] ) + \. ) + ( [ a - z A - Z 0 - 9 ] { 2 , 4 } ) + $ / ;
97+ let error_count = 0 ;
98+ let emailReg = / ^ ( [ a - z A - Z 0 - 9 _ . \- . ' . + ] ) + @ ( ( [ a - z A - Z 0 - 9 \- ] ) + \. ) + ( [ a - z A - Z 0 - 9 ] { 2 , 4 } ) + $ / ;
9999
100100 document . querySelectorAll ( ".slds-is-required .slds-input, .slds-is-required .slds-textarea, .slds-is-required .slds-select" ) . forEach ( item => {
101101 let inputWrap = item . closest ( '.slds-form-element' ) ;
@@ -274,7 +274,7 @@ function validYear() {
274274 } ) ;
275275}
276276
277- var RFIStates = {
277+ let RFIStates = {
278278 'AL' : 'Alabama' ,
279279 'AK' : 'Alaska' ,
280280 'AZ' : 'Arizona' ,
@@ -346,10 +346,10 @@ var RFIStates = {
346346} ;
347347
348348function createCookie ( name , value , days ) {
349- var expires ;
349+ let expires ;
350350
351351 if ( days ) {
352- var date = new Date ( ) ;
352+ let date = new Date ( ) ;
353353 date . setTime ( date . getTime ( ) + ( days * 24 * 60 * 60 * 1000 ) ) ;
354354 expires = "; expires=" + date . toGMTString ( ) ;
355355 } else {
@@ -359,9 +359,9 @@ function createCookie(name, value, days) {
359359}
360360
361361function readCookie ( name ) {
362- var nameEQ = encodeURIComponent ( name ) + "=" ;
363- var ca = document . cookie . split ( ';' ) ;
364- for ( var i = 0 ; i < ca . length ; i ++ ) {
362+ let nameEQ = encodeURIComponent ( name ) + "=" ;
363+ let ca = document . cookie . split ( ';' ) ;
364+ for ( let i = 0 ; i < ca . length ; i ++ ) {
365365 var c = ca [ i ] ;
366366 while ( c . charAt ( 0 ) === ' ' ) c = c . substring ( 1 , c . length ) ;
367367 if ( c . indexOf ( nameEQ ) === 0 ) return decodeURIComponent ( c . substring ( nameEQ . length , c . length ) ) ;
@@ -374,7 +374,7 @@ function eraseCookie(name) {
374374}
375375
376376var getUrlParameter = function getUrlParameter ( sParam ) {
377- var sPageURL = decodeURIComponent ( window . location . search . substring ( 1 ) ) , sURLVariables = sPageURL . split ( '&' ) ,
377+ let sPageURL = decodeURIComponent ( window . location . search . substring ( 1 ) ) , sURLVariables = sPageURL . split ( '&' ) ,
378378 sParameterName , i ;
379379
380380 for ( i = 0 ; i < sURLVariables . length ; i ++ ) {
0 commit comments