Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need 3 SEPARATE files (HTML, CSS, and Javascript) to create the below class cata

ID: 3799758 • Letter: N

Question

Need 3 SEPARATE files (HTML, CSS, and Javascript) to create the below class catalog maintenance application:

What this application should do

This application will build a list of classes that are offered by the GIT department. It will accept the user entries that are shown under the “Add a class” heading in the interface above.

Then, when the user clicks the Add button, a class will be added to the table that’s under the “Classes” heading. The data in this table will also be stored in local web storage. As a result, the class data will be displayed when the user restarts the application.

Of course, the data should be validated before it is added to the Classes table and local storage. At the least, the application should check that an entry has been made in each input and select control and that the start date is a valid date in the future. But it would also be good to check whether a class with a duplicate number is already in the table.

What you need to do

Build this application from scratch with separate files for the HTML, CSS, and JavaScript.

Development notes

Be creative: Try to create a user interface that’s more pleasing and user friendly than the one above. For instance, you might want to put the Classes table below the form for the class entries.

You decide what options should be offered in the three select controls (drop-down lists).

The form must be centered and formatted using CSS. An HTML table is only allowed for the Classes data.

You may not use jQuery Bootstrap or any type of WSYWIG to develop this app. And you may not rely on HTML5 attributes and CSS3 selectors for data validation. In other words, this assignment must be completely hand coded.

In the JavaScript, add appropriate comments to each function that you create.

Technical note

The starting html for the Classes table must have both a thead and tbody element. Otherwise, the th elements for the column headings may get written over by the JavaScript that adds the Class rows to the table.

The user interface should look something like this: Class Catalog Maintenance Classes Number Start Length Weekday Time Description Name MWF Web Design I IT 101 9/1/2016 10 10:00 HTML5 and CSS3 Web Design II IT 102 1/1/2017 10 MWF 14:00 JavaScript, jQuery, jQuery UI, and Bootstrap Add a class Class Name: Class Number: Start Date Class Length (in weeks Weekday and Time: Class Description Add Clear

Explanation / Answer

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<body>
<script>
var rowNumber = 1;
   function doSubmit(){
       var className = document.getElementById("className").value;
       var classNumber   = document.getElementById("classNumber").value;
       var startDate = document.getElementById("startDate").value;
       var classLength =   document.getElementById("classLength").value;
       var Weekdays = document.getElementById("Weekdays").value;
       var   time = document.getElementById("time").value;
       var classDescription = document.getElementById("classDescription").value;
       var htmlString = "<tr><td>"+className+"</td>"+"<td>"+classNumber+"</td>"+"<td>"+startDate+"</td>"+"<td>"+classLength+"</td>"+"<td>"+Weekdays+"</td>"+"<td>"+time+"</td><td>"+classDescription+"</td></tr>";
       alert(htmlString);
       var table = document.getElementById("displayTable");
       var row = table.insertRow(rowNumber);
      
       var cell1 = row.insertCell(0);
       var cell2 = row.insertCell(1);
       var cell3 = row.insertCell(2);
       var cell4 = row.insertCell(3);
       var cell5 = row.insertCell(4);
       var cell6 = row.insertCell(5);
       var cell7 = row.insertCell(6);

       // Add some text to the new cells:
       cell1.innerHTML = className;
       cell2.innerHTML = classNumber;
       cell3.innerHTML = startDate;
       cell4.innerHTML = classLength;
       cell5.innerHTML = Weekdays;
       cell6.innerHTML = time;
       cell7.innerHTML = classDescription;
      
       rowNumber++;
      
   }
</script>
<table >
<tr>
   <td>
       <font size="4" color="blue"><b>Class Catalog Maintenance</font>
   </td>
</tr>
<tr>
   <td>
       <table>
       <tr>
           <td><b>Classes</td>
       </tr>
       <tr>
           <td >
               <table id="displayTable">
                   <tr>
                       <td>Name<tab></tab></td>
                       <td>Number<tab></td>
                       <td>Start<tab></td>
                       <td>Length<tab></td>
                       <td>Weekday<tab></td>
                       <td>Time<tab></td>
                       <td>Description<tab></td>
                   </tr>
               </table>
           </td>
       </tr>
       <tr><td>&nbsp;</td></tr>
       <tr>
           <td>
               <table>
               <tr>
                   <td><b>Add a Class</td>
               </tr>
               <tr>
                   <td>
                       <table id="formTable">
                       <tr>
                           <td><input type="label" value="Class Name:" /></td>
                           <td><input id = "className" type="text" value="" /></td>
                           <td>&nbsp;</td>
                       </tr>
                       <tr>
                           <td><input type="label" value="Class Number:" /></td>
                           <td><input id = "classNumber" type="text" value="" /></td>
                           <td>&nbsp;</td>
                       </tr>
                       <tr>
                           <td><input type="label" value="Start Date:" /></td>
                           <td><input id = "startDate" type="text" value="" /></td>
                           <td>&nbsp;</td>
                       </tr>
                       <tr>
                           <td><input type="label" value="Class length:" /></td>
                           <td><input id = "classLength" type="text" value="" /></td>
                           <td>&nbsp;</td>
                       </tr>
                       <tr>
                           <td><input type="label" value="Weekday and Time:" /></td>
                           <td>
                               <select id = "Weekdays" >
                                   <option value="volvo"></option>  
                                   <option value="volvo">M</option>
                                   <option value="saab">T</option>
                                   <option value="mercedes">W</option>
                                   <option value="audi">T</option>
                                   <option value="volvo">F</option>
                                   <option value="saab">S</option>
                                   <option value="mercedes">Su</option>
                               </select>
                           </td>
                           <td>
                               <select id = "time" >
                                   <option value="volvo"></option>  
                                   <option value="volvo">01</option>
                                   <option value="saab">02</option>
                                   <option value="mercedes">03</option>
                                   <option value="audi">04</option>
                                   <option value="volvo">05</option>
                                   <option value="saab">06</option>
                                   <option value="mercedes">07</option>
                                   <option value="audi">08</option>
                                   <option value="volvo">09</option>
                                   <option value="saab">10</option>
                                   <option value="mercedes">11</option>
                                   <option value="audi">12</option>
                                   <option value="saab">13</option>
                                   <option value="mercedes">14</option>
                                   <option value="audi">15</option>
                                   <option value="saab">16</option>
                                   <option value="mercedes">17</option>
                                   <option value="audi">18</option>
                                   <option value="saab">19</option>
                                   <option value="mercedes">20</option>
                                   <option value="audi">21</option>
                                   <option value="audi">22</option>
                                   <option value="audi">23</option>
                               </select>
                           </td>
                       </tr>
                       </table>
                   </td>
               </tr>
               <tr>
                   <table>
                           <tr>
                               <td><input type="label" value="Class Description:" /></td>
                           </tr>
                           <tr>
                               <td>
                                   <table>
                                   <tr>
                                       <td><input id="classDescription" type="text" value="" /></td>
                                   </tr>
                                   </table>
                               </td>
                           </tr>
                           <tr>
                               <table>
                               <tr>
                                   <td><input type="button" value="Add"/></td>
                                   <td><input type="button" value="Clear" /></td>
                               </tr>
                               </table>
                           </tr>
                           </table>
                       </tr>
               </table>
           </td>
       </tr>
       </table>
   </td>
</tr>
</table>
</body>
</html>

description: Just we need to put the script part into .js file and that .js file should be imported into above HTML.Here i am putting all the code into one file so that we can run and test it. Please let me know if you face any issue with above code.

CSS is missing just beacuse i am not able to find exact front of the text which is mentioned in blue color in baove screen shot. if you have exact front type then please share the same so that i can apply the same and submit the updated code again. Thanks

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote