-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (44 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
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en" class="flex justify-center">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Twitter</title>
<script type="module" src="/src/main.js" defer></script>
<script src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js" crossorigin="anonymous"></script>
</head>
<body class="w-full max-w-[79.063rem] h-auto h-auto bg-white">
<div id="app"></div>
<script>
twemoji.parse(document.body);
const emoji = "📮"
/*twemoji.parse(emoji, {
callback: (icon, options) => {
console.log(icon, options)
}
})
function constructTwemojiURL(icon, options) {
return ''.concat(
options.base,
options.size,
'/',
icon,
options.ext
);
}
twemoji.parse(emoji, {
callback: (icon, options) => {
// create the image tag
const img = document.createElement('img');
// assign the image source
img.src = constructTwemojiURL(icon, options)
img.alt = "Twemoji"
// append the tag to our document body
document.body.append(img)
}
})*/
</script>
</body>
</html>
<!---->