ninjacat everywhere v0.88.48 - Emoji polyfill support for old Windows, iOS, Android and other devices
Do you dream you can use ninjacat emojis in all your sites but windows 10 systems only have able to display? With this plugin you can spread all around the world your ninjacat passion! 🦄🐱❤️
Not too seriuos, project made only for fun
NPM
npm i ninjacat.everywhere
JS/CSS
Include in your page css and js script:
<link rel="stylesheet" href="ninjacat.everywhere.css">
<script src="ninjacat.everywhere.js"></script>
Wrap every text content with a class to make the magic 🌈
<h2 class="we-all-love-ninjacat">🐱👤 🐱💻 🐱🏍️ 🐱🚀 🐱👓 🐱🐉</h2>
Run parse method at ready event
$(function () {
$(".we-all-love-ninjacat").each(function(){
var el = $(this);
ninjacateverywhere.parse(el);
})
});
Parse content to add support for ninjacat emojis:
ninjacateverywhere.parse(<DOMElement>);
Check browser support:
ninjacateverywhere.support(); // return boolean
Force using polyfill in all browsers:
ninjacateverywhere.legacymode();
You can add custom <any>
cats (check the example page)
ninjacateverywhere.addcustom("🦄"); // one custom cat or many
Please report any bugs to: https://github.com/inuyaksa/ninjacat.everywhere/issues
Licensed under the MIT License: https://opensource.org/licenses/MIT
- Inspired by Dillon de Voor, code from http://crocodillon.com/blog/parsing-emoji-unicode-in-javascript
- and by danalloway, code from https://github.com/danalloway/detect-emoji-support/blob/master/src/index.js
- thanks to Emojipedia for images https://emojipedia.org/
- thanks to Microsoft for ninjacat emojis and Visual Studio Code