CURRENT_PAGE = PAGES.LICENSE const authorInput = document.getElementById("authorInput") const createdInput = document.getElementById("createdInput") const expireInput = document.getElementById("expireInput") const identityInput = document.getElementById("identityInput") const sillyInput = document.getElementById("sillyInput") const authorValue = document.getElementById("authorValue") const createdValue = document.getElementById("createdValue") const expireValue = document.getElementById("expireValue") const genderValue = document.getElementById("genderValue") const sillyValue = document.getElementById("sillyValue") const sillyNumberValue = document.getElementById("sillyNumberValue") function prependZero(number) { if (number < 10) return "0" + number else return number } authorInput.oninput = function() { authorValue.innerHTML = this.value } createdInput.oninput = function() { createdValue.innerHTML = this.value } expireInput.oninput = function() { expireValue.innerHTML = this.value } identityInput.oninput = function() { genderValue.innerHTML = this.value } sillyInput.oninput = function() { sillyNumberValue.innerHTML = prependZero(this.value) } function onLoadLicense() { authorValue.innerHTML = prependZero(authorInput.value) createdValue.innerHTML = prependZero(createdInput.value) expireValue.innerHTML = prependZero(expireInput.value) genderValue.innerHTML = prependZero(identityInput.value) sillyNumberValue.innerHTML = prependZero(sillyInput.value) }