-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
30 lines (25 loc) · 921 Bytes
/
example.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
<!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.0">
<title>Sun Calc</title>
<script src="js/jquery.1.12.4.min.js"></script>
<script src="js/SunCalc.js"></script>
<script src="js/tz.js"></script>
<script src="js/moment.min.js"></script>
<script src="js/moment-timezone-with-data-1970-2030.min.js"></script>
</head>
<body>
<script>
let lat = -7.8, lng = 110.35,
year = 2022, month = 4, day = 2,
hour = 12, minute = 0, second = 0;
console.log(calculate(lat, lng, year, month, day, hour, minute, second));
console.log(DDtoDMS(-7.8, 110.35));
console.log("Latitude: " + DMStoDD(07, 15, 0, "S"));
console.log("Longitude: " + DMStoDD(112, 45, 0, "E"));
</script>
</body>
</html>