-
Notifications
You must be signed in to change notification settings - Fork 0
/
calc.html
220 lines (150 loc) · 6.69 KB
/
calc.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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap-material-design.min.css" integrity="sha384-wXznGJNEXNG1NFsbm0ugrLFMQPWswR3lds2VeinahP8N0zJw9VWSopbjv2x7WCvX" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/umd/popper.js" integrity="sha384-fA23ZRQ3G/J53mElWqVJEGJzU0sTs+SvzG8fXVWP+kJQ1lwFAOkcUOysnlKJC33U" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/js/bootstrap-material-design.js" integrity="sha384-CauSuKpEqAFajSpkdjv3z9t8E7RlpJ1UP0lKM/+NdtSarroVKu069AlsRPKkFBz9" crossorigin="anonymous"></script>
<script>$(document).ready(function() { $('body').bootstrapMaterialDesign(); });</script>
<SCRIPT language=JavaScript>
<!--
//Script by Tom Richardson Jr.
//If you have any questions, e-mail me at [email protected]
//or visit mt web site at http://home.rmci.net/gooftroop
//For this script and more, visit http://javascriptkit.com
function perc1() {
a = document.form1.a.value/100;
b = a*document.form1.b.value;
document.form1.total1.value = b
}
function perc2() {
a = document.form1.c.value;
b = document.form1.d.value;
c = a/b;
d = c*100;
document.form1.total2.value = d
}
//-->
</SCRIPT>
<style>
a{
font-weight: thin;
color:#006064;
}
#column-in-center{
float: none;
margin: 0 auto;
}
.currencyinput {
border: 2px #ccc;
}
.currencyinput input {
border: 2;
}
hr {
border: solid;
color: #006064;
background-color: #006064;
/* Set the hr color */
/* old IE */
}
input[type="number"],select {
background-color : #E9ECEF;
width: 15%;
text-align: center;
border: none;
border-color: transparent;
outline:none;
}
input[type="number"]:focus, textarea {
background-color :white;
width: 15%;
text-align: center;
}
input[type="email"] {
color: #006064;
}
#divshadow{
box-shadow: 0 4px 8px 0 #006064, 0 6px 20px 0 #006064;
text-align: center;
}
#glass{
}
mark{
background-color: yellow;
color:#006064;
}
</style>
</head>
<body>
<script>document.addEventListener('contextmenu', event => event.preventDefault());</script>
<div class="jumbotron text-center">
<h1 style="color: #006064
">Percentage Calculator</h1>
<p style="color: #006064">made with love and bootsrtap material design</p>
<hr width="40%">
<div class="row" >
<div class="col-md-2"></div>
<div class="col-md-8" id="divshadow">
<center>
<table class="table">
<tbody>
<tr>
<td><a style="font-weight: bold;color: #006064">How many are</a> <span class="input-group-addon"></span> <INPUT type="number" placeholder="10" size=5 name=c style="color: #880E4F;font-weight: bold"> <a style="font-weight: bold;color: #006064">% of</a> <INPUT type="number" placeholder="75" size=5 name=c style="border:2px solid #006064;color: #880E4F;font-weight: bold"> <a style="font-weight: bold;color: #006064">?</a></td>
<td>
<input type="email" class="form-control" id="inputEmail4" placeholder="Answer" readonly>
</div></td>
</tr>
<tr>
<td><INPUT type="number" placeholder="50" size=5 name=c style="border:2px solid #006064;color: #01579B;font-weight: bold"> <a style="font-weight: bold;color: #006064">is what percent of</a> <INPUT type="number" placeholder="500" size=5 name=c style="border:2px solid #006064;color: #01579B;font-weight: bold" > <a style="font-weight: bold;color: #006064" >?</a></td>
<td>
<input type="email" class="form-control" id="inputEmail4" placeholder="Answer" readonly>
</div></td>
</tr>
<tr>
<td><INPUT type="number"size=5 placeholder="20" name=c style="border:2px solid #006064;color: #1B5E20;font-weight: bold"> <a style="font-weight: bold;color: #006064">are</a> <INPUT type="number" size=5 name=c placeholder="50" style="border:2px solid #006064;color: #1B5E20;font-weight: bold"><a style="font-weight: bold;color: #006064"> % from how much ?</a></td>
<td>
<input type="email" class="form-control" id="inputEmail4" placeholder="Answer" readonly>
</div></td>
</tr>
<tr>
<td style="font-weight: thin;color: #006064"><mark>What is the percentage increase / decrease ...</mark></td>
</tr>
<tr>
<td> <a style="font-weight: bold;color: #006064">from</a> <INPUT type="number" placeholder="100" size=5 name=c style="border:2px solid #006064; color: #FF6D00;font-weight: bold"> <a style="font-weight: bold;color: #006064">to</a> <INPUT type="number" size=5 name=c placeholder="200" style="border:2px solid #006064;color: #FF6D00;font-weight: bold"> <a style="font-weight: bold;color: #006064">?</a></td>
<td>
<input type="email" class="form-control" id="inputEmail4" placeholder="Answer" readonly>
</div></td>
</tr>
<tr>
<td style="font-weight: thin;color: #006064"><mark>increase / decrease to one value:</mark> </td>
</tr>
<tr>
<td><INPUT type="number" size=5 name=c placeholder="40" style="border:2px solid #006064;color: #263238;font-weight: bold"> <select name="value" style="border:2px solid #006064;color: #006064">
<option value="volvo"> increase</option>
<option value="saab"> Decrease</option>
</select> <INPUT type="number" placeholder="19" size=5 name=c style="border:2px solid #006064;color: #263238;font-weight: bold"><a style="font-weight: bold;color: #006064"> % ?</a></td>
<td>
<input type="email" class="form-control" id="inputEmail4" placeholder="Answer" readonly>
</div></td>
</tr>
<tr>
<th>
</th>
<TD><INPUT type="button" onclick="perc1()" class="btn btn-primary" value="calculating" ></TD>
</tr>
</tbody>
</table>
</center>
</div>
</div>
<br>
<br>
<a style="font-weight: thick;color: #006064">Hoopla Developer 2018.</a>
</div>
</div>
</body>
</html>