1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-06-15 03:35:16 +00:00
This commit is contained in:
Mathias Bynens 2014-11-08 08:25:31 +00:00
commit 5eef70a961
7 changed files with 11 additions and 14 deletions

View File

@ -9,7 +9,7 @@ The folks over at [MaxCDN](https://www.maxcdn.com) graciously provide CDN suppor
Just use the following in the `<head>` tag of your HTML document(s): Just use the following in the `<head>` tag of your HTML document(s):
```html ```html
<script src="//twemoji.maxcdn.com/twemoji.min.js"></script> <script src="https://twemoji.maxcdn.com/twemoji.min.js"></script>
``` ```
## API ## API

View File

@ -43,7 +43,7 @@
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<p>Code licensed under MIT. Graphics licensed under CC-BY</p> <p>Code licensed under MIT. Graphics licensed under CC-BY</p>
<script src="//twemoji.maxcdn.com/twemoji.min.js"></script> <script src="https://twemoji.maxcdn.com/twemoji.min.js"></script>
<script> <script>
// I \u2764 emoji! // I \u2764 emoji!
twemoji.parse(document.body, {size: 72}); twemoji.parse(document.body, {size: 72});

View File

@ -25,7 +25,7 @@
vertical-align: -0.1em; vertical-align: -0.1em;
} }
</style> </style>
<script src="//twemoji.maxcdn.com/twemoji.min.js"></script> <script src="https://twemoji.maxcdn.com/twemoji.min.js"></script>
</head> </head>
<body> <body>
<ul class="emoji-list"> <ul class="emoji-list">

View File

@ -301,8 +301,7 @@ function createTwemoji(re) {
///////////////////////// /////////////////////////
// default assets url, by default will be Twitter Inc. CDN // default assets url, by default will be Twitter Inc. CDN
base: (location.protocol === 'https:' ? 'https:' : 'http:') + base: 'https://twemoji.maxcdn.com/',
'//twemoji.maxcdn.com/',
// default assets file extensions, by default '.png' // default assets file extensions, by default '.png'
ext: '.png', ext: '.png',

View File

@ -25,8 +25,7 @@ define(function () {
///////////////////////// /////////////////////////
// default assets url, by default will be Twitter Inc. CDN // default assets url, by default will be Twitter Inc. CDN
base: (location.protocol === 'https:' ? 'https:' : 'http:') + base: 'https://twemoji.maxcdn.com/',
'//twemoji.maxcdn.com/',
// default assets file extensions, by default '.png' // default assets file extensions, by default '.png'
ext: '.png', ext: '.png',

View File

@ -24,8 +24,7 @@ var twemoji = (function (
///////////////////////// /////////////////////////
// default assets url, by default will be Twitter Inc. CDN // default assets url, by default will be Twitter Inc. CDN
base: (location.protocol === 'https:' ? 'https:' : 'http:') + base: 'https://twemoji.maxcdn.com/',
'//twemoji.maxcdn.com/',
// default assets file extensions, by default '.png' // default assets file extensions, by default '.png'
ext: '.png', ext: '.png',

2
twemoji.min.js vendored

File diff suppressed because one or more lines are too long