You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
4
+
5
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Kappa.js is a simple jQuery Plugin that can easily find text Twitch emotes and replace them with their respective emoticons.
5
5
6
6
## How does this work?
7
-
Kappa.js is made possible with the use of [Twitch Emotes API v2](http://twitchemotes.com/apidocs). Kappa.js will pull a fresh list of **global emotes**on each browser session. Please note this API is currently in *development*, so features and structure may change without warning.
7
+
Kappa.js is made possible with the use of [Twitch Emotes API v2](http://twitchemotes.com/apidocs). Kappa.js will pull a fresh list of **global emotes**and save in localStorage. Please note this API is currently in *development*, so features and structure may change without warning.
8
8
9
9
## How do I get this?
10
10
Kappa.js can be quickly installed from the public bower registry. Just run...
@@ -28,12 +28,12 @@ To get started include the `kappa.js` file just before the end of your closing `
28
28
```
29
29
Once included use jQuery to select which elements your want `kappa.js` to apply in this manner... `$([selector]).kappa([options]);`
30
30
31
-
In this example `kappa.js` will apply to all elements in the DOM once the page is loaded.
31
+
In this example `kappa.js` will apply to elements with `class="kappa"` in the DOM once the page is loaded.
32
32
```html
33
33
...
34
34
<script>
35
-
$(function() {
36
-
$('*').kappa();
35
+
$(document).ready(function() {
36
+
$('.kappa').kappa();
37
37
});
38
38
</script>
39
39
</body>
@@ -42,16 +42,12 @@ In this example `kappa.js` will apply to all elements in the DOM once the page i
42
42
And that's it! There's nothing else to do. All text emotes will be replaced with their respective Twitch emoticons. But wait, there's more!
43
43
44
44
### Options
45
-
As of now, options are limited to only emoticon size. More to come!
0 commit comments