-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (46 loc) · 2.42 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!-- File: index.html -->
<!-- GUI Assignment: Create a multiplication table using the given input from user. -->
<!-- Ishan Patel, Umass Lowell Computer Science, -->
<!-- [email protected] -->
<!-- Copyright (c) 2021 by Ishan. All rights reserved. May be freely copied or excerpted for educational -->
<!-- purposes with credit to Ishan. -->
<!-- Updated on Oct 25, 2021 at 4:25pm -->
<!-- -->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Boiler plate code -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title> Interactive Dynamic Table </title>
</head>
<body>
<h1 id="heading"> Interactive Dynamic Table </h1>
<!-- Input form for user to enter the 4 required numbers. Also create label on top of each input to specify the data required -->
<form id="form-input">
<div class="">
<label for="minColVal" id="input-text"> Enter minimum column value</label>
<input type="number" align="center" class="form-control " id="minColVal" onkeydown="return event.keyCode !== 69" placeholder="Range: [-50, 50]">
<label for="maxColVal" id="input-text"> Enter maximum column value</label>
<input type="number" class="form-control" id="maxColVal" onkeydown="return event.keyCode !== 69" placeholder="Range: [-50, 50]">
<label for="minColVal" id="input-text"> Enter minimum row value</label>
<input type="number" class="form-control" id="minRowVal" onkeydown="return event.keyCode !== 69" placeholder="Range: [-50, 50]">
<label for="minColVal" id="input-text"> Enter maximum row value</label>
<input type="number" class="form-control" id="maxRowVal" onkeydown="return event.keyCode !== 69" placeholder="Range: [-50, 50]">
</div>
</form>
<button id="submitButton" class ="btn-success" type="button" value="plot" onclick="submitPressed();"> Calculate </button>
<!-- Header to show errors -->
<h4 id="errorHeader"></h4>
<!-- Create a slider and put the table inside -->
<div class="slider-tab" id="scroller">
<table id="table-elm"> </table>
</div>
</div>
<script src="index.js"></script>
</body>
</html>