PageSourceSearch

https://bestautolenders.com/js/appstep_scripts.js

js bestautolenders.com collected 2026-09-26 16:56:11 UTC 3,338 bytes, 103 lines download raw bytes

1function phoneOnKeyUp(i,e) {
2  var tempval = '';
3  tempval = i.value.replace(/[^0-9\-]/g,'');
4  if ( e!=8 && e!=46 ) {
5    if ( tempval.length==3 ) {
6      tempval = tempval + '-';
7    } else if ( tempval.search('-')==3 && tempval.length==7 ) {
8      tempval = tempval + '-';
9    }
10  }
11  if ( tempval.endsWith('-') && tempval.length!=4 && tempval.length!=8 ) {
12    tempval = tempval.slice(0,-1);
13  }
14  if ( e==46 && tempval.length>0 ) {
15    tempval = tempval.replace(/[^0-9]/g,'');
16    if ( tempval.length==3 ) {
17      tempval = tempval + '-';
18    } else if ( tempval.length>3 && tempval.length<6 ) {
19      tempval = tempval.slice(0,3) + '-' + tempval.slice(3);
20    } else if ( tempval.length==6 ) {
21      tempval = tempval.slice(0,3) + '-' + tempval.slice(3,6) + '-';
22    } else if ( tempval.length>6 ) {
23      tempval = tempval.slice(0,3) + '-' + tempval.slice(3,6) + '-' + tempval.slice(6);
24    }
25  }
26  i.value = tempval;
27}
28
29function phoneOnKeyDown(i,e) {
30  var tempval = '';
31  tempval = i.value;
32  if ( tempval.length!=3 && tempval.length!=7 && ( e==109 || e==189 ) ) {
33    return false;
34  } else {
35    if ( ( tempval.length==3 || ( tempval.search('-')==3 && tempval.length==7 ) ) && e!=109 && e!=189 && e!=8 && e!=46 ) {
36      tempval = tempval + '-';
37      i.value = tempval;
38    }
39    return true;
40  }
41}
42
43function ssnOnKeyUp(i,e) {
44  var tempval = '';
45  tempval = i.value.replace(/[^0-9\-]/g,'');
46  if ( e!=8 && e!=46 ) {
47    if ( tempval.length==3 ) {
48      tempval = tempval + '-';
49    } else if ( tempval.search('-')==3 && tempval.length==6 ) {
50      tempval = tempval + '-';
51    }
52  }
53  if ( tempval.endsWith('-') && tempval.length!=4 && tempval.length!=7 ) {
54    tempval = tempval.slice(0,-1);
55  }
56  if ( e==46 && tempval.length>0 ) {
57    tempval = tempval.replace(/[^0-9]/g,'');
58    if ( tempval.length==3 ) {
59      tempval = tempval + '-';
60    } else if ( tempval.length>3 && tempval.length<5 ) {
61      tempval = tempval.slice(0,3) + '-' + tempval.slice(3);
62    } else if ( tempval.length==5 ) {
63      tempval = tempval.slice(0,3) + '-' + tempval.slice(3,5) + '-';
64    } else if ( tempval.length>5 ) {
65      tempval = tempval.slice(0,3) + '-' + tempval.slice(3,5) + '-' + tempval.slice(5);
66    }
67  }
68  i.value = tempval;
69}
70
71function ssnOnKeyDown(i,e) {
72  var tempval = '';
73  tempval = i.value;
74  if ( tempval.length!=3 && tempval.length!=6 && ( e==109 || e==189 ) ) {
75    return false;
76  } else {
77    if ( ( tempval.length==3 || ( tempval.search('-')==3 && tempval.length==6 ) ) && e!=109 && e!=189 && e!=8 && e!=46 ) {
78      tempval = tempval + '-';
79      i.value = tempval;
80    }
81    return true;
82  }
83}
84
85function doResetApp() {
86  if ( confirm("Click OK to reset your application and begin again.") ) {
87    window.location.assign("/secure/resetAppSteps.cfm");
88  } else {
89    return false;
90  }
91};
92
93$(document).ready( function() {
94
95  function disableBack() { var x = document.referrer; if ( x.indexOf("secure") > -1 ) { window.history.forward(); } };
96  window.onload = disableBack();
97  window.onpageshow = function(evt) { if (evt.persisted) disableBack(); };
98
99  window.history.pushState(null, "", window.location.href);
100  window.onpopstate = function() { window.history.pushState(null, "", window.location.href); };
101
102});
103

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.