-
-
Notifications
You must be signed in to change notification settings - Fork 1
1. Getting Started
Jared Van Valkengoed edited this page Oct 17, 2024
·
2 revisions
Note: This project needs contributors like you to help improve documentation, usage & more!
To start using Emoji-Fallback.js in your web page or HTML page, simply include the Emoji-Fallback.js library in your HTML. Like the example below!
<!doctype html>
<html>
<head>
<title>Emoji-Fallback.js Basic Example</title>
</head>
<body>
<script type="module">
import { emojiFallback } from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/Emoji-Fallback.js@latest/dist/emoji-fallback.min.js';
emojiFallback();
</script>
</body>
</html>
By default, Emoji-Fallback.js parses the entire document body for emojis & uses the class name of emoji
for & jsdelivr.net
for CDN / emoji image paths.
If you want use your own CDN / image path for emoji images, customize class names & more, see Methods.