53 lines
1.7 KiB
JavaScript
53 lines
1.7 KiB
JavaScript
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 signatureInput = document.getElementById("signatureInput")
|
|
|
|
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 signatureValue = document.getElementById("signature")
|
|
|
|
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)
|
|
}
|
|
signatureInput.oninput = function() {
|
|
signatureValue.innerHTML = 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)
|
|
} |