-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (49 loc) · 1.4 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
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Counting Number Testpage</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body { font-size: 2rem; }
h1 { text-align: center; }
main {
text-align: center;
inline-size: max(75%, 20rem);
margin: auto;
}
counting-number { font-variant-numeric: tabular-nums; }
.spacer { min-block-size: 200vh; }
</style>
</head>
<body>
<h1>Counting Numbers Test</h1>
<main>
<p>
<counting-number value="1500.02" lang="da" duration="1000">1.500</counting-number>
</p>
<p>
<counting-number value="1000" delay="1500">1.000</counting-number>
</p>
<div class="spacer">
(Content to make the page extra long)
</div>
<div lang="en">
<p>English: <counting-number delay="200" value="1234.5">1,234.5</counting-number></p>
<p>Danish: <counting-number delay="1000" value="1234.5" lang="da">1.234,5</counting-number></p>
<p>Norwegian: <counting-number delay="2000" value="1234.5" lang="no">1 234,5</counting-number></p>
</div>
<p>
<counting-number duration="2000" delay="500">33</counting-number>
</p>
<p>
We have <counting-number duration="2000" delay="200">12.00</counting-number>% more content!
</p>
</main>
<script src="./dist/counting-number-browser.min.js"></script>
<!-- <script type="module">
import registerElement from './src/counting-number.js'
registerElement()
</script> -->
</body>
</html>