-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (87 loc) · 3.97 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title> QA Assignment </title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/brython.min.js"></script>
</head>
<body onload="brython()">
<div class="jumbotron mb-0">
<h1> Software Testing and Quality Assurance Assignment </h1>
</div>
<div class="container">
<div class="row">
<div class="card my-4 text-center mx-auto">
<h4 class="card-header"> Calculate BMI </h4>
<div class="card-body">
<div class="card-text">
<label class="mb-0"> Height </label>
<div class="card text-left mx-auto col-8">
<div class="card-body">
<label id="feetLabel" class="mb-0"> Feet: </label>
<input id="feet" type="range" class="custom-range" min="1" max="8" step="1">
<label id="inchesLabel" class="mt-3 mb-0"> Inches: </label>
<input id="inches" type="range" class="custom-range" min="0" max="11" step="0.1">
</div>
</div>
<label class="mb-0 mt-3"> Weight </label>
<div class="card text-left mx-auto col-8">
<div class="card-body pb-0">
<label class="mb-0"> Pounds: </label>
<input id="weight" type="text" class="form-control">
<label id="weightWarning" class="text-danger"></label>
</div>
</div>
</div>
<hr>
<button id="calculateBMI" class="btn btn-primary">Run calculation</button>
<br>
<label id="bmiResult" class="mt-3"></label>
</div>
</div>
<div class="card my-4 text-center mx-auto">
<h4 class="card-header"> Retirment Calculator </h4>
<div class="card-body">
<div class="card-text">
<label class="mb-0"> Age </label>
<div class="card text-left mx-auto col-8">
<div class="card-body">
<label id="currentAgeLabel" class="mb-0"> Current age: </label>
<input id="currentAge" type="range" class="custom-range" min="1" max="99" step="1" >
</div>
</div>
<label class="mb-0 mt-3"> Salary </label>
<div class="card text-left mx-auto col-8">
<div class="card-body pb-0">
<label class="mb-0"> Annual earnings: </label>
<input id="salary" type="text" class="form-control">
<label id="salaryWarning" class="text-danger"></label>
</div>
</div>
<label class="mb-0 mt-3"> Savings </label>
<div class="card text-left mx-auto col-8">
<div class="card-body pb-0">
<label id="percentSavedLabel" class="mb-0"> Percent Saved (%): </label>
<input id="percentSaved" type="range" class="custom-range" min="1" max="99" step="0.5">
<label class="mb-0"> Save Goal ($): </label>
<input id="saveGoal" type="text" class="form-control">
<label id="saveGoalWarning" class="text-danger"></label>
</div>
</div>
</div>
<hr>
<button id="calculateRetirement" class="btn btn-primary">Run calculation</button>
<br>
<label id="retirementResult" class="mt-3"></label>
</div>
</div>
</div>
</div>
<script type="text/python">
import index
index.setup_events()
</script>
</body>
</html>