From d07c384015e886bec39000fa492fc5bf1329d603 Mon Sep 17 00:00:00 2001 From: HW Computer Date: Wed, 19 Apr 2023 13:06:30 -0500 Subject: [PATCH] Empty input handling --- index.html | 40 ++++++++++++++++++++++------------------ main.js | 9 ++++----- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/index.html b/index.html index a7a1c8a..f647c4f 100644 --- a/index.html +++ b/index.html @@ -30,25 +30,29 @@ official course name as possible

- - -

- -

- -

- -

-
- - -

+ + + + +

+ + +

+ +

+

+ + + + +

+
- diff --git a/main.js b/main.js index 26d1669..c5ea964 100644 --- a/main.js +++ b/main.js @@ -11,12 +11,11 @@ function parseName() { alert("Invalid Department"); return; } - if(className == '' && department == '') { - alert("At least fill out the form..."); - return; - } + // if(className == '' && department == '') { + // alert("At least fill out the form..."); + // return; + // } if(className == '' || department == '') { - alert("Missing something?"); return; } console.log(department, 0, className);