Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Shit</title>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
- <style>
- #results {
- background-color: #FFFFFF;
- display: flex;
- flex-direction: column;
- text-align: center;
- }
- #results tr {
- background-color: #AAAAAA;
- padding: 5vh;
- font-size: 1.5vw;
- }
- #results tr:nth-child(odd) {
- background-color: #808080;
- }
- #results tr:first-child {
- background-color: #000000;
- color: #FFFFFF;
- font-weight: bold;
- font-size: 2vw;
- }
- #results tr th {
- padding: 1vw;
- }
- #results tr td {
- padding: 1vw;
- transition: font-size 0.2s;
- }
- #results tr:not(:first-child):hover {
- background-color: #F0F8FF;
- color: #000000;
- font-size: 2.25vw;
- }
- input {
- display: block;
- }
- fieldset{
- display: inline-table;
- }
- </style>
- </head>
- <body>
- <table id="results">
- <tr>
- <th>ID</th>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Faculty Number</th>
- <th>Grade</th>
- <th>Action</th>
- </tr>
- </table>
- <br />
- <fieldset>
- <legend>Create Students</legend>
- <label for="studentID">studentId</label>
- <input type="number" id="studentID">
- <label for="firstName">firstName</label>
- <input type="text" id="firstName">
- <label for="lastName">lastName</label>
- <input type="text" id="lastName">
- <label for="facultyNumber">facultyNumber</label>
- <input type="text" id="facultyNumber">
- <label for="grade">grade</label>
- <input type="number" id="grade">
- </fieldset>
- <br>
- <br>
- <button id="createStudents">Create Students</button>
- <script src="students.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement