forked from ded/emojize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.jade
42 lines (40 loc) · 961 Bytes
/
example.jade
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
doctype
html
head
title Example emoji
meta(charset='UTF-8')
link(href='sprite/emoji.css', type='text/css', rel='stylesheet')
style.
body {
font-family: helvetica neue;
width: 600px;
margin: auto;
}
h1 {
font-weight: 300;
}
.emoji {
zoom: 0.5;
position: relative;
top: 8px;
}
p {
text-align: baseline;
font-size: 18px;
}
img._emoji {
width: 32px;
height: 32px;
}
body
h1 Sprite based
p#content
h1 Image based
p#img
script(src='ender.js')
script.
var emoji = require('emojize')
emoji.base('img/')
var html = emoji.emojize('Haay 😜. Just getting ☕️. But maybe 🍻 at 🕘🌜 is that 🆒?')
document.getElementById('content').innerHTML = html
document.getElementById('img').innerHTML = emoji.emojize('😱 it’s a 🌈🌈', true)