mirror of
https://github.com/twitter/twemoji.git
synced 2024-06-15 03:35:16 +00:00
twitter/twemoji -> jdecked/twemoji
This commit is contained in:
parent
720b6a175f
commit
628b3f2377
@ -37,7 +37,7 @@ have good reasons for rejecting.
|
||||
|
||||
If you'd like to test and/or contribute please follow these instructions.
|
||||
|
||||
[Fork this repo on GitHub](https://github.com/twitter/twemoji.git/fork)
|
||||
[Fork this repo on GitHub](https://github.com/jdecked/twemoji.git/fork)
|
||||
|
||||
### Setup
|
||||
|
||||
|
14
README.md
14
README.md
@ -37,9 +37,9 @@ Following are all the methods exposed in the `twemoji` namespace.
|
||||
|
||||
This is the main parsing utility and has 3 overloads per parsing type.
|
||||
|
||||
Although there are two kinds of parsing supported by this utility, we recommend you use [DOM parsing](https://github.com/twitter/twemoji#dom-parsing), explained below. Each type of parsing accepts a callback to generate an image source or an options object with parsing info.
|
||||
Although there are two kinds of parsing supported by this utility, we recommend you use [DOM parsing](https://github.com/jdecked/twemoji#dom-parsing), explained below. Each type of parsing accepts a callback to generate an image source or an options object with parsing info.
|
||||
|
||||
The second kind of parsing is string parsing, explained in the legacy documentation [here](https://github.com/twitter/twemoji/blob/master/LEGACY.md#string-parsing). This is unrecommended because this method does not sanitize the string or otherwise prevent malicious code from being executed; such sanitization is out of scope.
|
||||
The second kind of parsing is string parsing, explained in the legacy documentation [here](https://github.com/jdecked/twemoji/blob/master/LEGACY.md#string-parsing). This is unrecommended because this method does not sanitize the string or otherwise prevent malicious code from being executed; such sanitization is out of scope.
|
||||
|
||||
#### DOM parsing
|
||||
|
||||
@ -59,7 +59,7 @@ var img = div.querySelector('img');
|
||||
// note the div is preserved
|
||||
img.parentNode === div; // true
|
||||
|
||||
img.src; // https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/72x72/2764.png
|
||||
img.src; // https://cdn.jsdelivr.net/gh/jdecked/twemoji@latest/assets/72x72/2764.png
|
||||
img.alt; // \u2764\uFE0F
|
||||
img.className; // emoji
|
||||
img.draggable; // false
|
||||
@ -134,7 +134,7 @@ twemoji.parse(genericNode, {
|
||||
});
|
||||
```
|
||||
|
||||
This will generate urls such `https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/2764.svg` instead of using a specific size based image.
|
||||
This will generate urls such `https://cdn.jsdelivr.net/gh/jdecked/twemoji@latest/assets/svg/2764.svg` instead of using a specific size based image.
|
||||
|
||||
## Utilities
|
||||
|
||||
@ -206,11 +206,11 @@ twemoji.parse(document.body, {
|
||||
|
||||
## Legacy API (V1)
|
||||
|
||||
If you're still using our V1 API, you can read our legacy documentation [here](https://github.com/twitter/twemoji/tree/master/LEGACY.md).
|
||||
If you're still using our V1 API, you can read our legacy documentation [here](https://github.com/jdecked/twemoji/tree/master/LEGACY.md).
|
||||
|
||||
## Contributing
|
||||
|
||||
The contributing documentation can be found [here](https://github.com/twitter/twemoji/tree/master/CONTRIBUTING.md).
|
||||
The contributing documentation can be found [here](https://github.com/jdecked/twemoji/tree/master/CONTRIBUTING.md).
|
||||
|
||||
## Attribution Requirements
|
||||
|
||||
@ -253,7 +253,7 @@ The goal of this project is to simply provide emoji for everyone. We definitely
|
||||
|
||||
The rules for contributing are available in the `CONTRIBUTING.md` file.
|
||||
|
||||
Thank you to all of our [contributors](https://github.com/twitter/twemoji/graphs/contributors).
|
||||
Thank you to all of our [contributors](https://github.com/jdecked/twemoji/graphs/contributors).
|
||||
|
||||
## License
|
||||
|
||||
|
@ -12,8 +12,8 @@
|
||||
"!LICENSE",
|
||||
"!README.md"
|
||||
],
|
||||
"twemoji": "git://github.com/twitter/twemoji.git#gh-pages",
|
||||
"homepage": "https://github.com/twitter/twemoji",
|
||||
"twemoji": "git://github.com/jdecked/twemoji.git#gh-pages",
|
||||
"homepage": "https://github.com/jdecked/twemoji",
|
||||
"authors": [
|
||||
"Twitter, Inc."
|
||||
],
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "twemoji",
|
||||
"license": ["MIT", "CC-BY-4.0"],
|
||||
"description": "A Unicode standard based way to implement emoji across all platforms.",
|
||||
"homepage": "https://github.com/twitter/twemoji",
|
||||
"homepage": "https://github.com/jdecked/twemoji",
|
||||
"keywords": [
|
||||
"emoji",
|
||||
"DOM",
|
||||
|
@ -35,7 +35,7 @@
|
||||
<h1>Twem❤ji</h1>
|
||||
<p>Sharing Twitter emoji <a href="v/latest/preview-svg.html">everywhere</a></p>
|
||||
<p><strong>Version 14.0 Is Out!</strong></p>
|
||||
<p><a href="https://github.com/twitter/twemoji">Grab me on GitHub ↗</a></p>
|
||||
<p><a href="https://github.com/jdecked/twemoji">Grab me on GitHub ↗</a></p>
|
||||
<p>
|
||||
<a href="https://twitter.com/intent/tweet?button_hashtag=TwemojiParty&text=thank%20you%20Twitter%20for%20the%20emoji" class="twitter-hashtag-button" data-size="large" data-related="twitteross" data-url="http://twitter.github.io/twemoji/">Tweet #TwemojiParty</a>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
||||
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||
*/
|
||||
|
||||
// dependencies
|
||||
@ -24,7 +24,7 @@ function createTwemoji() {
|
||||
'var twemoji = (' +
|
||||
function (
|
||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
||||
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||
*/
|
||||
|
||||
// WARNING: this file is generated automatically via
|
||||
@ -47,7 +47,7 @@ function createTwemoji() {
|
||||
/////////////////////////
|
||||
|
||||
// default assets url, by default will be jsDelivr CDN
|
||||
base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@$VERSION/assets/',
|
||||
base: 'https://cdn.jsdelivr.net/gh/jdecked/twemoji@$VERSION/assets/',
|
||||
|
||||
// default assets file extensions, by default '.png'
|
||||
ext: '.png',
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
||||
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||
*/
|
||||
|
||||
const fs = require('fs-extra');
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
||||
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||
*/
|
||||
|
||||
// dependencies
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*! Copyright Twitter Inc. and other contributors. Licensed under MIT *//*
|
||||
https://github.com/twitter/twemoji/blob/gh-pages/LICENSE
|
||||
https://github.com/jdecked/twemoji/blob/gh-pages/LICENSE
|
||||
*/
|
||||
var base = twemoji.base;
|
||||
wru.test([{
|
||||
|
Loading…
Reference in New Issue
Block a user