-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdev.html
29 lines (29 loc) · 1.11 KB
/
dev.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="https://depay.com/favicon.png"/>
<title>Development</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="dist/umd/index.js"></script>
</head>
<body>
<div class="container">
<div class="row pt-5">
<div class="col">
<h1>Local Currency</h1>
<div id="timezone"></div>
<div id="currency"></div>
</div>
</div>
</div>
<script>
let currency = new LocalCurrency.Currency({ amount: 1 })
window.addEventListener("load", (event) => {
document.getElementById('timezone').innerHTML = `Your timezone is <b>${currency.timeZone}</b>`
document.getElementById('currency').innerHTML = `Your currency code is <b>${currency.code}</b>`
});
</script>
</body>
</html>