-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (42 loc) · 1.31 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<p>"google.com" should be green (at the time of this writing):</p>
<green-check hostname="google.com">
<img
src="https://cdn.jsdelivr.net/npm/@vnphanquang/green-check/dist/fallback.svg"
width="200"
height="95"
alt="fallback blank greencheck badge from The Green Web Foundation"
/>
</green-check>
<p>"github.com" should not be green (at the time of this writing):</p>
<green-check hostname="github.com">
<img
src="https://cdn.jsdelivr.net/npm/@vnphanquang/green-check/dist/fallback.svg"
width="200"
height="95"
alt="fallback blank greencheck badge from The Green Web Foundation"
/>
</green-check>
<p>If "hostname" attribute is not provide:</p>
<green-check>
<img
src="https://cdn.jsdelivr.net/npm/@vnphanquang/green-check/dist/fallback.svg"
width="200"
height="95"
alt="fallback blank greencheck badge from The Green Web Foundation"
/>
</green-check>
<script type="module">
import { GreenCheck } from './src/index.js';
customElements.define('green-check', GreenCheck);
</script>
</body>
</html>