Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lautis/emojie-iphone
Emoji images for incompatible browsers using Emojie
https://github.com/lautis/emojie-iphone
Last synced: 21 days ago
JSON representation
Emoji images for incompatible browsers using Emojie
- Host: GitHub
- URL: https://github.com/lautis/emojie-iphone
- Owner: lautis
- Created: 2014-02-23T23:22:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-02-23T23:24:06.000Z (over 10 years ago)
- Last Synced: 2024-05-08T18:31:11.126Z (7 months ago)
- Language: JavaScript
- Size: 3.79 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Emojie iPhone images
Replace emoji unicode code points with Apple emoji images. Depends on
[emojie](https://github.com/lautis/emojie).## Usage
First add emojie.js and emojie-iphone.js to HTML document, make `/images`
available. Then you should be able to```javascript
emojie(document.body);
emojie(document.querySelector(".emoji-content")); // only replace a subtree with images
```Use `Emojie.canRender` to detech when browser can render native colour emoji.
```javascript
Emojie.canRender("\ud83d\ude04") // smiley face emoji
// => returns true on Safari, false on Chrome, FF
```## Hacking
1. bundle install
2. bundle exec rake js
3. bundle exec rake images