-
Notifications
You must be signed in to change notification settings - Fork 0
/
coordinate-convertor.html
58 lines (53 loc) · 2.21 KB
/
coordinate-convertor.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Coordinate Convertor</title>
<link rel="stylesheet" href="/css/coordinate-convertor.css">
</head>
<body>
<div class="institute-logo">
<img src="img/diu_logo-removebg-preview.png" alt="Institute-Logo" id="insti-img" onclick="returnhome()">
</div>
<div class="logo-img">
<img src="img/logo-bg.png" alt="Logo" id="grp-img">
</div>
<div class="wrapper">
<div class="container">
<div class="gui-name">
<h1>Coordinate Convertor</h1>
</div>
<div class="card">
<form name="convertor" id="convertor">
<div class="form-group">
<label for="num">Enter Number</label>
</div>
<div class="coordinate-input">
<input type="text" id="num1" />
<input type="text" id="num2" />
<input type="text" id="num3" />
</div>
<div class="form-group">
<button type="button" onclick="calculate('1')">Cartesian to Cylindrical</button>
<button type="button" onclick="calculate('2')">Cartesian to Spherical</button>
<button type="button" onclick="calculate('3')">Cylindrical to Cartesian</button>
<button type="button" onclick="calculate('4')">Cylindrical to Spherical</button>
<button type="button" onclick="calculate('5')">Spherical to Cartesian</button>
<button type="button" onclick="calculate('6')">Spherical to Cylindrical</button>
</div>
<div class="out">
<output name="result" id="result"></output>
</div>
</form>
</div>
</div>
</div>
<!-- <script src="./js/coordinate.js"></script> -->
<script src="./js/coordinate.js"></script>
<script>
function returnhome(){
window.location.href = "index.html";
}
</script>
</body>
</html>