This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const statesList = [ | |
{ | |
value: 'AL', | |
label: 'Alabama' | |
}, | |
{ | |
value: 'AK', | |
label: 'Alaska' | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var styledLink = document.querySelectorAll('.button-link'), | |
i; | |
for (i = 0; i < styledLink.length; ++i) { | |
styledLink[i].addEventListener('touchend', function(e) { | |
window.location = this.attr('href'); | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (place.toString().substr(-1) === '1' && place !== 11) { | |
place = place + 'st' | |
} | |
else if (place.toString().substr(-1) === '2' && place !== 12) { | |
place = place + 'nd' | |
} | |
else if (place.toString().substr(-1) === '3' && place !== 13) { | |
place = place + 'rd' | |
} | |
else { |