-
Notifications
You must be signed in to change notification settings - Fork 0
/
grams.html
179 lines (127 loc) · 4.45 KB
/
grams.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<link rel="stylesheet" href="grams.css">
<link href="https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Holtwood+One+SC&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Monoton&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz:wght@600&display=swap" rel="stylesheet">
<script src="grams.js"></script>
</head>
<body>
<div class="header">
calcMaster.com
</div>
<!-- NAVIGATION BAR -->
<nav>
<div class="nav">
<ul class="items">
<li class="item">
<button class="btn" id="home">Home</button>
</li>
<li class="item">
<a href="about.html">
<button class="btn">About</button>
</a>
</li>
<li class="item">
<a href="services.html">
<button class="btn">Services</button>
</a>
</li>
<!-- contact button is still disabled -->
<!-- <li class="item" type="button">
<a href="contact.html">
<button class="btn" type="button">Contact Us</button>
</a>
</li> -->
</ul>
</div>
</nav>
<!-- NAVIGATION BAR COMPLETED -->
<!-- SOME INFO -->
<div class="onwc">
<div class="onl">
ONLINE
</div>
<hr color="grey">
<div class="wc">
WEIGHT CONVERTER
</div>
</div>
<!-- INFO COMPLETED -->
<!-- MAIN CONTENT -->
<div class="maincontent">
<span class="head"><strong>Convert From:</strong></span>
<ul class="mcontent">
<li class="weigh">
<a href="index.html">
<button class="wbtn" id="kg">Kilograms</button>
</a>
</li>
<li class="weigh">
<button class="wbtn" id="g">Grams</button>
</li>
<li class="weigh">
<a href="pounds.html">
<button class="wbtn" id="p">Pounds</button>
</a>
</li>
<li class="weigh">
<a href="ounces.html">
<button class="wbtn" id="o">Ounces</button>
</a>
</li>
<li class="weigh">
<a href="stones.html">
<button class="wbtn" id="s">Stones</button>
</a>
</li>
</ul>
</div>
<!-- MAIN CONTENT COMPLETED -->
<!-- CALCULATION -->
<form>
<div class="calculation">
<p class="calc">
<label> Grams(g)*:</label>
<input id="inputGrams" type="number" onkeypress="return event.charCode>=48" min="0"
placeholder=" Grams" oninput="weightConverter(this.value)">
</p>
<hr color="red">
<p class="calc">
<label>Pounds(lb):<span id="outputPounds"></span></label>
</p>
<p class="calc">
<label>Ounces(oz):<span id="outputOunces"></span></label>
</p>
<p class="calc">
<label>Stones(st):<span id="outputStones"></span></label>
</p>
<p class="calc">
<label>Kilograms(kg):<span id="outputKilorams"></span></label>
</p>
<hr color="red">
<div>
<!-- 10.RESET TAG -->
<input type="reset" value="Reset Now*" class="resetbtn">
</div>
<hr color="red">
</div>
</form>
<!-- THANK YOU -->
<footer class="footer">
<div class="thba">
<div class="owc">
THANK YOU FOR VISITING !!!
</div>
</div>
<br>
<p class="message">STAY TUNED FOR MORE UPDATES AND SERVICES<br><hr color="gray"><span class="msg">Hope you like our converter</span></p>
</footer>
<!-- THANK YOU COMPLETED -->
</body>
</html>