From 6dabf32d2b9fde8247fcf450719c62d704ecf702 Mon Sep 17 00:00:00 2001 From: Isaac Godin Date: Fri, 9 Jan 2026 10:54:10 -0500 Subject: [PATCH] Minor bug fix for the Skylar Grant redirect site. Also changed the ui slightly for the text boxes --- .gitignore | 5 + src/assets/ITThermal.js | 14 +- src/index.html | 312 ++++++++++++++++++++-------------------- 3 files changed, 176 insertions(+), 155 deletions(-) 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 @@ - - - - - - ITS Thermal Printer - - - - -
- ITS Logo -
- -
-

ITS Thermal Printer


-

v Developed for MCCS by Skylar Grant

-
+ + + + + + ITS Thermal Printer + + + + - -
- -
- -
- -

Temporary Password

- -
- - - - - - -
- -
- -
-
- - -
- -

Custom Note

- -
- - - -
- -
- -
-
+
+ + ITS Logo + +
+ +
+

ITS Thermal Printer


+

v Developed for MCCS by Skylar Grant

- -
- -
- -

Device Tracker

- -
- - - - - - - - -
-
- - - -
-
- - - -
+ + + +
+ +
+ +
+ +

Temporary Password

+ +
+ + + + + +
- - - +
+ +
+ +
- -
- +
+ + +
+ +
+ +

Device Tracker

+ +
+ + + + + + + + +
+
+ + + +
+
+ + + +
+
+ + + +
+ +
+ +
+
+
+ + +
- - - - - - - - - - - - \ No newline at end of file + + + + + + + \ No newline at end of file