1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:26:37 -04:00

use standard twemoji module from NPM

This commit is contained in:
2021-07-01 09:16:53 -04:00
parent 8da27cba81
commit 1687ea4dfa
3 changed files with 9 additions and 558 deletions

View File

@ -1,5 +1,5 @@
import "./src/counter.js";
import "./src/projects.js";
import "./vendor/twemoji.js";
import "./src/emoji.js";
export default () => {};

8
assets/js/src/emoji.js Normal file
View File

@ -0,0 +1,8 @@
import twemoji from "twemoji";
twemoji.parse(document.body, {
callback: function (icon, options) {
// simpler relative URIs
return "/assets/emoji/" + icon + ".svg";
},
});

File diff suppressed because one or more lines are too long