diff --git a/.gitignore b/.gitignore index e32cbad..b3ea892 100644 --- a/.gitignore +++ b/.gitignore @@ -133,3 +133,8 @@ dist .yarn/install-state.gz .pnp.* + + + + +edits.txt diff --git a/src/assets/ITThermal.js b/src/assets/ITThermal.js index 59fd277..6239892 100644 --- a/src/assets/ITThermal.js +++ b/src/assets/ITThermal.js @@ -31,6 +31,9 @@ const standard = new FontInfo('Helvetica', 12); const standardBold = new FontInfo('Helvetica', 12, 'Bold'); /** @type {FontInfo} */ const monospace = new FontInfo('Courier', 16, 'Bold'); +/** @type {FontInfo} */ +const smallBold = new FontInfo('Courier', 12, 'Bold'); + // ############################################################# // Strings to use generating the PDF @@ -82,9 +85,16 @@ function setVersionNumber() { function tempPasswordHandler() { // Grab the form values - const username = document.getElementById('tempPwUsername').value; + let username = document.getElementById('tempPwUsername').value; const password = document.getElementById('tempPwPassword').value; + + //Going to test and see if having @mainecc.edu auto added is better or if pasting the full email instead is better. + + + + + if (password.trim() === '') { alert('Please enter a temporary password.'); return; @@ -163,7 +173,7 @@ function prepTempPassword(password, username) { if (username) { if (!(username.toLowerCase().endsWith(strings.global.domain))) username += strings.global.domain; lineArray.push(new LineItem(s.unLabel.text, s.unLabel.fontInfo, false)); - lineArray.push(new LineItem(username, monospace, true)); + lineArray.push(new LineItem(username, smallBold, true)); } lineArray.push(new LineItem(s.pwLabel.text, s.pwLabel.fontInfo, false)); diff --git a/src/index.html b/src/index.html index 44e8254..550faf2 100644 --- a/src/index.html +++ b/src/index.html @@ -1,164 +1,170 @@ - - -
- - -
-
+
+