-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvolume.html
189 lines (162 loc) · 7.91 KB
/
volume.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
<!DOCTYPE html>
<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">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>Convert units - Converters-online.com</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css?version=1" rel="stylesheet">
<script src="js/ie-emulation-modes-warning.js"></script>
<!-- Custom styles for this template -->
<link href="css/stylesheet.css?version=1" rel="stylesheet">
<!-- Google analytics -->
<script src="js/google_analytics.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">converters-online.com</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="purple-background active"><a href="length.html">
<span class="glyphicon glyphicon-resize-full" aria-hidden="true"></span> Length</a></li>
<li class="blue-background"><a href="weight.html">
<span class="glyphicon glyphicon-scale" aria-hidden="true"></span> Weight</a></li>
<li class="yellow-background"><a href="cooking.html">
<span class="glyphicon glyphicon-cutlery" aria-hidden="true"></span> Cooking</a></li>
<li class="red-background"><a href="temperature.html">
<span class="glyphicon glyphicon-cloud" aria-hidden="true"></span> Temperature</a></li>
<li class="lightblue-background"><a href="time.html">
<span class="glyphicon glyphicon-time" aria-hidden="true"></span> Time</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<ol class="breadcrumb">
<li><a href="index.html">Home</a></li>
<li><a href="converters.html">All converters</a></li>
<li class="active">Length converter</li>
</ol><!-- /.breadcrumb -->
<div class="container">
<div class="convert-units-header">
<h1>Length converter</h1>
<hr>
</div>
<div class="convert-units">
<table align="center" width="100%">
<tr>
<td>
<div class="convert-units-box">
<div class="convert-units-border">
<select class="form-control" id="convFrom" name="convertFrom" onchange="getFirstUnit();">
<option id="liter">Liter</option>
<option id="gallon">Gallon</option>
<option id="cup">Cup</option>
<option id="centiliter">Centiliter</option>
<option id="deciliter">Deciliter</option>
<option id="teaspoon">Teaspoon</option>
<option id="tablespoon">Tablespoon</option>
</select>
<br>
<div class="form-group">
<input class="form-control" type="text" id="convertFirstUnit" placeholder="Enter value" onkeyup="getFirstUnit();" onchange="getFirstUnit();">
</div>
<button type="submit" class="btn btn-default" onclick="resetUnit();">Reset</button>
</div><!-- /.first box -->
</div>
</td>
<td>
<div class="convert-units-equal">
<img src="img/equals.png" height="24" width="24"></img>
</div>
</td><!-- /.equal sign picture -->
<td>
<div class="convert-units-box">
<div class="convert-units-border">
<select class="form-control" id="convTo" name="convertTo" onchange="getFirstUnit();">
<option id="liter">Liter</option>
<option id="gallon">Gallon</option>
<option id="cup">Cup</option>
<option id="centiliter">Centiliter</option>
<option id="deciliter">Deciliter</option>
<option id="teaspoon">Teaspoon</option>
<option id="tablespoon">Tablespoon</option>
</select>
<br>
<div class="form-group">
<input class="form-control" type="text" id="convertSecondUnit" placeholder="Enter value" onkeyup="getSecondUnit();" onchange="getSecondUnit();">
</div>
</div><!-- /.second box -->
</div>
</td>
</tr>
</table>
<div class="units-table">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><b>Result</b></h3>
</div>
<div class="panel-body">
<p id="convert-result"></p>
</div>
<div class="panel-heading">
<h3 class="panel-title"><b>Definition</b></h3>
</div>
<div class="panel-body">
<p>In geometric measurements, length is the longest dimension of an object. In the International System of Quantities, length is any quantity with dimension distance. In other contexts "length" is the measured dimension of an object. For example it is possible to cut a length of a wire which is shorter than wire thickness. <i>Source: <a href="http://en.wikipedia.org/wiki/Length">en.wikipedia.org/wiki/Length</a></i></p>
</div>
<div class="panel-heading">
<h3 class="panel-title"><b>Length conversion cheat sheet</b></h3>
</div>
<div class="panel-body">
<h4>Metric to U.S</h4>
<p>1 centimeter = 0.3937 inch
<br>1 meter = 39.37 inches
<br>1 meter = 1.0936 yards
<br>1 kilometer = 0.6214 mile</p>
<h4>U.S to Metric</h4>
<p>1 inch = 2.54 centimeters
<br>1 foot = 30.48 centimeters
<br>1 foot = 0.3048 meters
<br>1 yard = 0.9144 meters
<br>1 rod = 5.029 meters
<br>1 mile = 1.6093 kilometer</p>
</div>
</div>
</div><!-- /.units-table -->
</div><!-- /.convert-units -->
</div><!-- /.container -->
<footer class="footer">
<p class="text-muted">© 2016 converters-online.com
<a href="how-to-use.html">How to use</a>
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
</p>
</footer><!-- /.footer -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="js/bootstrap.min.js?version=1"></script>
<script src="js/units.js?version=1"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>