-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuptodate.html
More file actions
130 lines (119 loc) · 2.46 KB
/
uptodate.html
File metadata and controls
130 lines (119 loc) · 2.46 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html>
<head><title>Motor Web App</title>
<script type="text/javascript">
function populate(s1,s2)
{
var s1 = document.getElementById(s1);
var s2 = document.getElementById(s2);
s2.innerHTML = "";
if(s1.value == "MX")
{
var optionArray = ["|","1|64","2|150"];
}
else if(s1.value == "AX")
{
var optionArray = ["|","1|12A","2|18A"];
}
for(var op in optionArray)
{
var pair = optionArray[op].split("|");
var newOption = document.createElement("option");
newOption.value = pair[0];
newOption.innerHTML = pair[1];
s2.options.add(newOption);
}
}
</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" type="text/css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<style>
.Contents{
min-height:600px;
margin:auto;
}
.Background_image{
padding-bottom:50px;
text-align:center;
color:#f8f8f8;
background:url(Bg.jpg) no-repeat center;
background-size:cover;
}
.textual_image{
padding-top:12%;
width:80%;
margin:auto;
}
.content{
padding-top:4%;
padding-bottom:4%;
overflow:hidden;
margin-bottom:12%;
background-color:rgba(0,0,0,0.7);
}
#foot{
background-color:black;
min-height:100px;
}
</style>
</head>
<body>
<div class="Contents">
<div class="Background_image">
<div class="container-fluid">
<div class="textual_image">
<div class="content">
<div class="rows">
<div class="col-md-4"></div>
<div class="col-md-4">
<h2>Choose Motor</h2>
<hr/>
Choose Type:
<select id="a" name="Type" required onchange="populate('a','b')">
<option value="">Motor</option>
<option value="MX">MX</option>
<option value="AX">AX</option>
</select>
<hr />
Choose Number:
<select id="b" name="Number" required onselect="populate2('b','c')"></select>
<hr />
<form>
<label for = "ID">Enter ID:</label>
<input type="text" name="IDno" placeholder="ID Number" maxlength="10" required>
</form>
<hr />
</div>
<div class="col-md-4">
</div>
</div>
<div class= "rows">
<div class="col-md-12">
<div class= "container">
<div class="table-responsive">
<table align = "center" class=" table table-bordered ">
<tbody>
<tr >
<td>Model Number</td>
<td>ID Number</td>
<td>Working Status</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>