-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (41 loc) · 1.41 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>BMI</title>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script src="src/person.js"></script>
<script src="src/bmi_calculator.js"></script>
<script src="src/java_script.js"></script>
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
includedLanguages: 'no,it,pl,sv'
}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<h1 id="bmi">BMI Calculator</h1>
<div class="container">
<button class="button active" id="imperial">Imperial</button>
<button class="button" id="metric">Metric</button>
<form class="test">
<input class="display active" type="text" id="weight" placeholder="Weight, lbs">
<input class="display active" type="text" id="height" placeholder="Height, inches">
<input type="button" id="calculate" value="Calculate">
</form>
<div>
<div class="result">
<span id="display_value"></span>
<span id="display_message"></span>
</div>
</div>
</div>
</body>
</html>