mirror of
https://github.com/twitter/twemoji.git
synced 2024-06-15 03:35:16 +00:00
added benchmark in version 1 too
This commit is contained in:
parent
fef8f6de06
commit
7d3de547c0
@ -691,6 +691,8 @@
|
||||
<li>😾</li>
|
||||
<li>😿</li>
|
||||
<li>🙀</li>
|
||||
<li>🙁</li>
|
||||
<li>🙂</li>
|
||||
<li>🙅</li>
|
||||
<li>🙆</li>
|
||||
<li>🙇</li>
|
||||
@ -903,7 +905,15 @@
|
||||
<li></li>
|
||||
</ul>
|
||||
<script>
|
||||
twemoji.parse(document.getElementsByTagName('ul')[0], {"folder":"svg","ext":".svg","base":""});
|
||||
var ul = document.getElementsByTagName('ul')[0];
|
||||
var total = ul.getElementsByTagName('li').length;
|
||||
var elapsed = +new Date;
|
||||
twemoji.parse(ul, {"folder":"svg","ext":".svg","base":""});
|
||||
elapsed = (+new Date) - elapsed;
|
||||
document.body.insertBefore(
|
||||
document.createTextNode(total + ' emoji parsed in ' + elapsed + 'ms'),
|
||||
document.body.firstChild
|
||||
);
|
||||
(function (img, metaKey, i) {
|
||||
function copyToClipboard(e) {
|
||||
prompt('Copy to clipboard via ' + metaKey + '+C and Enter', this.alt);
|
||||
|
@ -32,7 +32,15 @@
|
||||
{{emoji-list}}
|
||||
</ul>
|
||||
<script>
|
||||
twemoji.parse(document.getElementsByTagName('ul')[0], {{emoji-options}});
|
||||
var ul = document.getElementsByTagName('ul')[0];
|
||||
var total = ul.getElementsByTagName('li').length;
|
||||
var elapsed = +new Date;
|
||||
twemoji.parse(ul, {{emoji-options}});
|
||||
elapsed = (+new Date) - elapsed;
|
||||
document.body.insertBefore(
|
||||
document.createTextNode(total + ' emoji parsed in ' + elapsed + 'ms'),
|
||||
document.body.firstChild
|
||||
);
|
||||
(function (img, metaKey, i) {
|
||||
function copyToClipboard(e) {
|
||||
prompt('Copy to clipboard via ' + metaKey + '+C and Enter', this.alt);
|
||||
|
12
preview.html
12
preview.html
@ -691,6 +691,8 @@
|
||||
<li>😾</li>
|
||||
<li>😿</li>
|
||||
<li>🙀</li>
|
||||
<li>🙁</li>
|
||||
<li>🙂</li>
|
||||
<li>🙅</li>
|
||||
<li>🙆</li>
|
||||
<li>🙇</li>
|
||||
@ -903,7 +905,15 @@
|
||||
<li></li>
|
||||
</ul>
|
||||
<script>
|
||||
twemoji.parse(document.getElementsByTagName('ul')[0], {"size":72});
|
||||
var ul = document.getElementsByTagName('ul')[0];
|
||||
var total = ul.getElementsByTagName('li').length;
|
||||
var elapsed = +new Date;
|
||||
twemoji.parse(ul, {"size":72});
|
||||
elapsed = (+new Date) - elapsed;
|
||||
document.body.insertBefore(
|
||||
document.createTextNode(total + ' emoji parsed in ' + elapsed + 'ms'),
|
||||
document.body.firstChild
|
||||
);
|
||||
(function (img, metaKey, i) {
|
||||
function copyToClipboard(e) {
|
||||
prompt('Copy to clipboard via ' + metaKey + '+C and Enter', this.alt);
|
||||
|
Loading…
Reference in New Issue
Block a user