-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
69 lines (51 loc) · 2.27 KB
/
test.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
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<!-- THIS FILE IS DEPENDANT ON THE TEST.JS FILE -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Services Calculator</title>
<!-- Bootstrap-->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- Jquery -->
<script src="http://code.jquery.com/jquery.min.js"></script>
<!-- JavaScript Include -->
<script src="test.js"></script>
<!-- When the DOM is loaded, the current rate value will be printed onto the screen -->
<body onload="CurrentRate()">
<!-- Div container used to house text input fields and buttons -->
<div>
<h3 class = "navbar-text"> Enter Your Service: </h3>
<input type="text" name="mytext1" id = "1" > <span id = "00"> </span>
<br>
<h3 class = "navbar-text"> Enter Your Rate: </h3>
<input type="text" name="mytext2" id = "2" > <span id = "01"> </span>
<br>
<!-- When clicked, button will attempt to store the values of the job in the services and rates arrays (in the test.js file) -->
<button onclick="Store()" class = "btn btn-success">Submit</button>
<!--When clicked, button will clear both the services and rates arrays (in the test.js file) -->
<button onclick ="ClearRates()" class = "btn btn-danger">Start Over</button>
<hr>
<!-- Table used to display the starting rate (of $200) and the newly generated rate -->
<table>
<tr>
<td> Starting Rate is:$ </td>
<td id = "Oldrate"> </td>
</tr>
<tr>
<td> Current Rate is:$ </td>
<td id = "Newrate"> </td>
</tr>
</table>
<br>
</div>
<!--Table used to display the services offered, their prices, and the option to remove or add service -->
<table>
<tr>
<div class= "wrap"> </div> </td>
</tr>
</table>
</body>
</html>