-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (34 loc) · 1.03 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS (dev)</title>
<link rel="stylesheet" href="/src/css/style.css">
</head>
<body>
<section>
<div class="d-flex">
<div class="card m-1">
<h2 class="card-header">btuCalculator</h2>
<div class="card-body">
<div id="btuCalculator"></div>
</div>
</div>
<div class="card m-1">
<h2 class="card-header">currencyRates</h2>
<div class="card-body">
<div id="currencyRates"></div>
</div>
</div>
</div>
</section>
<script type="module" src="/src/main.ts"></script>
<script>
window.addEventListener('load', (event) => {
window.webtools.btuCalculator.create('#btuCalculator');
window.webtools.currencyRates.create('#currencyRates', 'USD', ['CNY', 'EUR', 'CLP', 'GBP', 'GTQ', 'NIO']);
});
</script>
</body>
</html>