@mkody/twitch-emoticons 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/codeql/codeql-config.yml +5 -0
- package/.github/workflows/codeql.yml +50 -0
- package/.github/workflows/eslint.yml +51 -0
- package/.github/workflows/yarn-test.yml +0 -1
- package/docs/BTTVEmote.html +1241 -1241
- package/docs/Channel.html +823 -823
- package/docs/Collection.html +797 -797
- package/docs/Emote.html +801 -801
- package/docs/EmoteParser.html +811 -811
- package/docs/FFZEmote.html +1317 -1317
- package/docs/TwitchEmote.html +1237 -1237
- package/docs/index.html +1 -1
- package/docs/scripts/collapse.js +38 -38
- package/docs/scripts/commonNav.js +28 -28
- package/docs/scripts/search.js +98 -98
- package/docs/struct_BTTVEmote.js.html +72 -72
- package/docs/struct_Channel.js.html +72 -72
- package/docs/struct_Emote.js.html +72 -72
- package/docs/struct_EmoteParser.js.html +72 -72
- package/docs/struct_FFZEmote.js.html +72 -72
- package/docs/struct_TwitchEmote.js.html +72 -72
- package/docs/styles/jsdoc.css +776 -776
- package/docs/styles/prettify.css +80 -80
- package/docs/util_Collection.js.html +72 -72
- package/package.json +1 -1
- package/src/struct/EmoteFetcher.js +1 -1
package/docs/index.html
CHANGED
package/docs/scripts/collapse.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
function hideAllButCurrent(){
|
|
2
|
-
//by default all submenut items are hidden
|
|
3
|
-
//but we need to rehide them for search
|
|
4
|
-
document.querySelectorAll("nav > ul").forEach(function(parent) {
|
|
5
|
-
if (parent.className.indexOf("collapse_top") !== -1) {
|
|
6
|
-
parent.style.display = "none";
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) {
|
|
10
|
-
parent.style.display = "none";
|
|
11
|
-
});
|
|
12
|
-
document.querySelectorAll("nav > h3").forEach(function(section) {
|
|
13
|
-
if (section.className.indexOf("collapsed_header") !== -1) {
|
|
14
|
-
section.addEventListener("click", function(){
|
|
15
|
-
if (section.nextSibling.style.display === "none") {
|
|
16
|
-
section.nextSibling.style.display = "block";
|
|
17
|
-
} else {
|
|
18
|
-
section.nextSibling.style.display = "none";
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
//only current page (if it exists) should be opened
|
|
25
|
-
var file = window.location.pathname.split("/").pop().replace(/\.html/, '');
|
|
26
|
-
document.querySelectorAll("nav > ul > li > a").forEach(function(parent) {
|
|
27
|
-
var href = parent.attributes.href.value.replace(/\.html/, '');
|
|
28
|
-
if (file === href) {
|
|
29
|
-
if (parent.parentNode.parentNode.className.indexOf("collapse_top") !== -1) {
|
|
30
|
-
parent.parentNode.parentNode.style.display = "block";
|
|
31
|
-
}
|
|
32
|
-
parent.parentNode.querySelectorAll("ul li").forEach(function(elem) {
|
|
33
|
-
elem.style.display = "block";
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
1
|
+
function hideAllButCurrent(){
|
|
2
|
+
//by default all submenut items are hidden
|
|
3
|
+
//but we need to rehide them for search
|
|
4
|
+
document.querySelectorAll("nav > ul").forEach(function(parent) {
|
|
5
|
+
if (parent.className.indexOf("collapse_top") !== -1) {
|
|
6
|
+
parent.style.display = "none";
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) {
|
|
10
|
+
parent.style.display = "none";
|
|
11
|
+
});
|
|
12
|
+
document.querySelectorAll("nav > h3").forEach(function(section) {
|
|
13
|
+
if (section.className.indexOf("collapsed_header") !== -1) {
|
|
14
|
+
section.addEventListener("click", function(){
|
|
15
|
+
if (section.nextSibling.style.display === "none") {
|
|
16
|
+
section.nextSibling.style.display = "block";
|
|
17
|
+
} else {
|
|
18
|
+
section.nextSibling.style.display = "none";
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//only current page (if it exists) should be opened
|
|
25
|
+
var file = window.location.pathname.split("/").pop().replace(/\.html/, '');
|
|
26
|
+
document.querySelectorAll("nav > ul > li > a").forEach(function(parent) {
|
|
27
|
+
var href = parent.attributes.href.value.replace(/\.html/, '');
|
|
28
|
+
if (file === href) {
|
|
29
|
+
if (parent.parentNode.parentNode.className.indexOf("collapse_top") !== -1) {
|
|
30
|
+
parent.parentNode.parentNode.style.display = "block";
|
|
31
|
+
}
|
|
32
|
+
parent.parentNode.querySelectorAll("ul li").forEach(function(elem) {
|
|
33
|
+
elem.style.display = "block";
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
39
|
hideAllButCurrent();
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
if (typeof fetch === 'function') {
|
|
2
|
-
const init = () => {
|
|
3
|
-
if (typeof scrollToNavItem !== 'function') return false
|
|
4
|
-
scrollToNavItem()
|
|
5
|
-
// hideAllButCurrent not always loaded
|
|
6
|
-
if (typeof hideAllButCurrent === 'function') hideAllButCurrent()
|
|
7
|
-
return true
|
|
8
|
-
}
|
|
9
|
-
fetch('./nav.inc.html')
|
|
10
|
-
.then(response => response.ok ? response.text() : `${response.url} => ${response.status} ${response.statusText}`)
|
|
11
|
-
.then(body => {
|
|
12
|
-
document.querySelector('nav').innerHTML += body
|
|
13
|
-
// nav.js should be quicker to load than nav.inc.html, a fallback just in case
|
|
14
|
-
return init()
|
|
15
|
-
})
|
|
16
|
-
.then(done => {
|
|
17
|
-
if (done) return
|
|
18
|
-
let i = 0
|
|
19
|
-
;(function waitUntilNavJs () {
|
|
20
|
-
if (init()) return
|
|
21
|
-
if (i++ < 100) return setTimeout(waitUntilNavJs, 300)
|
|
22
|
-
console.error(Error('nav.js not loaded after 30s waiting for it'))
|
|
23
|
-
})()
|
|
24
|
-
})
|
|
25
|
-
.catch(error => console.error(error))
|
|
26
|
-
} else {
|
|
27
|
-
console.error(Error('Browser too old to display commonNav (remove commonNav docdash option)'))
|
|
28
|
-
}
|
|
1
|
+
if (typeof fetch === 'function') {
|
|
2
|
+
const init = () => {
|
|
3
|
+
if (typeof scrollToNavItem !== 'function') return false
|
|
4
|
+
scrollToNavItem()
|
|
5
|
+
// hideAllButCurrent not always loaded
|
|
6
|
+
if (typeof hideAllButCurrent === 'function') hideAllButCurrent()
|
|
7
|
+
return true
|
|
8
|
+
}
|
|
9
|
+
fetch('./nav.inc.html')
|
|
10
|
+
.then(response => response.ok ? response.text() : `${response.url} => ${response.status} ${response.statusText}`)
|
|
11
|
+
.then(body => {
|
|
12
|
+
document.querySelector('nav').innerHTML += body
|
|
13
|
+
// nav.js should be quicker to load than nav.inc.html, a fallback just in case
|
|
14
|
+
return init()
|
|
15
|
+
})
|
|
16
|
+
.then(done => {
|
|
17
|
+
if (done) return
|
|
18
|
+
let i = 0
|
|
19
|
+
;(function waitUntilNavJs () {
|
|
20
|
+
if (init()) return
|
|
21
|
+
if (i++ < 100) return setTimeout(waitUntilNavJs, 300)
|
|
22
|
+
console.error(Error('nav.js not loaded after 30s waiting for it'))
|
|
23
|
+
})()
|
|
24
|
+
})
|
|
25
|
+
.catch(error => console.error(error))
|
|
26
|
+
} else {
|
|
27
|
+
console.error(Error('Browser too old to display commonNav (remove commonNav docdash option)'))
|
|
28
|
+
}
|
package/docs/scripts/search.js
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
|
|
2
|
-
var searchAttr = 'data-search-mode';
|
|
3
|
-
function contains(a,m){
|
|
4
|
-
return (a.textContent || a.innerText || "").toUpperCase().indexOf(m) !== -1;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
//on search
|
|
8
|
-
document.getElementById("nav-search").addEventListener("keyup", function(event) {
|
|
9
|
-
var search = this.value.toUpperCase();
|
|
10
|
-
|
|
11
|
-
if (!search) {
|
|
12
|
-
//no search, show all results
|
|
13
|
-
document.documentElement.removeAttribute(searchAttr);
|
|
14
|
-
|
|
15
|
-
document.querySelectorAll("nav > ul > li:not(.level-hide)").forEach(function(elem) {
|
|
16
|
-
elem.style.display = "block";
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
if (typeof hideAllButCurrent === "function"){
|
|
20
|
-
//let's do what ever collapse wants to do
|
|
21
|
-
hideAllButCurrent();
|
|
22
|
-
} else {
|
|
23
|
-
//menu by default should be opened
|
|
24
|
-
document.querySelectorAll("nav > ul > li > ul li").forEach(function(elem) {
|
|
25
|
-
elem.style.display = "block";
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
} else {
|
|
29
|
-
//we are searching
|
|
30
|
-
document.documentElement.setAttribute(searchAttr, '');
|
|
31
|
-
|
|
32
|
-
//show all parents
|
|
33
|
-
document.querySelectorAll("nav > ul > li").forEach(function(elem) {
|
|
34
|
-
elem.style.display = "block";
|
|
35
|
-
});
|
|
36
|
-
document.querySelectorAll("nav > ul").forEach(function(elem) {
|
|
37
|
-
elem.style.display = "block";
|
|
38
|
-
});
|
|
39
|
-
//hide all results
|
|
40
|
-
document.querySelectorAll("nav > ul > li > ul li").forEach(function(elem) {
|
|
41
|
-
elem.style.display = "none";
|
|
42
|
-
});
|
|
43
|
-
//show results matching filter
|
|
44
|
-
document.querySelectorAll("nav > ul > li > ul a").forEach(function(elem) {
|
|
45
|
-
if (!contains(elem.parentNode, search)) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
elem.parentNode.style.display = "block";
|
|
49
|
-
});
|
|
50
|
-
//hide parents without children
|
|
51
|
-
document.querySelectorAll("nav > ul > li").forEach(function(parent) {
|
|
52
|
-
var countSearchA = 0;
|
|
53
|
-
parent.querySelectorAll("a").forEach(function(elem) {
|
|
54
|
-
if (contains(elem, search)) {
|
|
55
|
-
countSearchA++;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
var countUl = 0;
|
|
60
|
-
var countUlVisible = 0;
|
|
61
|
-
parent.querySelectorAll("ul").forEach(function(ulP) {
|
|
62
|
-
// count all elements that match the search
|
|
63
|
-
if (contains(ulP, search)) {
|
|
64
|
-
countUl++;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// count all visible elements
|
|
68
|
-
var children = ulP.children
|
|
69
|
-
for (i=0; i<children.length; i++) {
|
|
70
|
-
var elem = children[i];
|
|
71
|
-
if (elem.style.display != "none") {
|
|
72
|
-
countUlVisible++;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
if (countSearchA == 0 && countUl === 0){
|
|
78
|
-
//has no child at all and does not contain text
|
|
79
|
-
parent.style.display = "none";
|
|
80
|
-
} else if(countSearchA == 0 && countUlVisible == 0){
|
|
81
|
-
//has no visible child and does not contain text
|
|
82
|
-
parent.style.display = "none";
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
document.querySelectorAll("nav > ul.collapse_top").forEach(function(parent) {
|
|
86
|
-
var countVisible = 0;
|
|
87
|
-
parent.querySelectorAll("li").forEach(function(elem) {
|
|
88
|
-
if (elem.style.display !== "none") {
|
|
89
|
-
countVisible++;
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
if (countVisible == 0) {
|
|
94
|
-
//has no child at all and does not contain text
|
|
95
|
-
parent.style.display = "none";
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
1
|
+
|
|
2
|
+
var searchAttr = 'data-search-mode';
|
|
3
|
+
function contains(a,m){
|
|
4
|
+
return (a.textContent || a.innerText || "").toUpperCase().indexOf(m) !== -1;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
//on search
|
|
8
|
+
document.getElementById("nav-search").addEventListener("keyup", function(event) {
|
|
9
|
+
var search = this.value.toUpperCase();
|
|
10
|
+
|
|
11
|
+
if (!search) {
|
|
12
|
+
//no search, show all results
|
|
13
|
+
document.documentElement.removeAttribute(searchAttr);
|
|
14
|
+
|
|
15
|
+
document.querySelectorAll("nav > ul > li:not(.level-hide)").forEach(function(elem) {
|
|
16
|
+
elem.style.display = "block";
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
if (typeof hideAllButCurrent === "function"){
|
|
20
|
+
//let's do what ever collapse wants to do
|
|
21
|
+
hideAllButCurrent();
|
|
22
|
+
} else {
|
|
23
|
+
//menu by default should be opened
|
|
24
|
+
document.querySelectorAll("nav > ul > li > ul li").forEach(function(elem) {
|
|
25
|
+
elem.style.display = "block";
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
//we are searching
|
|
30
|
+
document.documentElement.setAttribute(searchAttr, '');
|
|
31
|
+
|
|
32
|
+
//show all parents
|
|
33
|
+
document.querySelectorAll("nav > ul > li").forEach(function(elem) {
|
|
34
|
+
elem.style.display = "block";
|
|
35
|
+
});
|
|
36
|
+
document.querySelectorAll("nav > ul").forEach(function(elem) {
|
|
37
|
+
elem.style.display = "block";
|
|
38
|
+
});
|
|
39
|
+
//hide all results
|
|
40
|
+
document.querySelectorAll("nav > ul > li > ul li").forEach(function(elem) {
|
|
41
|
+
elem.style.display = "none";
|
|
42
|
+
});
|
|
43
|
+
//show results matching filter
|
|
44
|
+
document.querySelectorAll("nav > ul > li > ul a").forEach(function(elem) {
|
|
45
|
+
if (!contains(elem.parentNode, search)) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
elem.parentNode.style.display = "block";
|
|
49
|
+
});
|
|
50
|
+
//hide parents without children
|
|
51
|
+
document.querySelectorAll("nav > ul > li").forEach(function(parent) {
|
|
52
|
+
var countSearchA = 0;
|
|
53
|
+
parent.querySelectorAll("a").forEach(function(elem) {
|
|
54
|
+
if (contains(elem, search)) {
|
|
55
|
+
countSearchA++;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
var countUl = 0;
|
|
60
|
+
var countUlVisible = 0;
|
|
61
|
+
parent.querySelectorAll("ul").forEach(function(ulP) {
|
|
62
|
+
// count all elements that match the search
|
|
63
|
+
if (contains(ulP, search)) {
|
|
64
|
+
countUl++;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// count all visible elements
|
|
68
|
+
var children = ulP.children
|
|
69
|
+
for (i=0; i<children.length; i++) {
|
|
70
|
+
var elem = children[i];
|
|
71
|
+
if (elem.style.display != "none") {
|
|
72
|
+
countUlVisible++;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
if (countSearchA == 0 && countUl === 0){
|
|
78
|
+
//has no child at all and does not contain text
|
|
79
|
+
parent.style.display = "none";
|
|
80
|
+
} else if(countSearchA == 0 && countUlVisible == 0){
|
|
81
|
+
//has no visible child and does not contain text
|
|
82
|
+
parent.style.display = "none";
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
document.querySelectorAll("nav > ul.collapse_top").forEach(function(parent) {
|
|
86
|
+
var countVisible = 0;
|
|
87
|
+
parent.querySelectorAll("li").forEach(function(elem) {
|
|
88
|
+
if (elem.style.display !== "none") {
|
|
89
|
+
countVisible++;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
if (countVisible == 0) {
|
|
94
|
+
//has no child at all and does not contain text
|
|
95
|
+
parent.style.display = "none";
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
99
|
});
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<title>struct/BTTVEmote.js - Documentation</title>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<script src="scripts/prettify/prettify.js"></script>
|
|
10
|
-
<script src="scripts/prettify/lang-css.js"></script>
|
|
11
|
-
<!--[if lt IE 9]>
|
|
12
|
-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
13
|
-
<![endif]-->
|
|
14
|
-
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
|
-
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
|
-
<script src="scripts/nav.js" defer></script>
|
|
17
|
-
|
|
18
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
-
</head>
|
|
20
|
-
<body>
|
|
21
|
-
|
|
22
|
-
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
23
|
-
<label for="nav-trigger" class="navicon-button x">
|
|
24
|
-
<div class="navicon"></div>
|
|
25
|
-
</label>
|
|
26
|
-
|
|
27
|
-
<label for="nav-trigger" class="overlay"></label>
|
|
28
|
-
|
|
29
|
-
<nav >
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BTTVEmote.html">BTTVEmote</a><ul class='methods'><li data-type='method'><a href="BTTVEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="BTTVEmote.html#.toString#toString">toString</a></li></ul></li><li><a href="Channel.html">Channel</a><ul class='methods'><li data-type='method'><a href="Channel.html#.fetchBTTVEmotes#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="Channel.html#.fetchFFZEmotes#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="Channel.html#.fetchSevenTVEmotes#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li></ul></li><li><a href="Collection.html">Collection</a><ul class='methods'><li data-type='method'><a href="Collection.html#.filter#filter">filter</a></li><li data-type='method'><a href="Collection.html#.find#find">find</a></li><li data-type='method'><a href="Collection.html#.map#map">map</a></li></ul></li><li><a href="Emote.html">Emote</a><ul class='methods'><li data-type='method'><a href="Emote.html#.toString#toString">toString</a></li></ul></li><li><a href="EmoteFetcher.html">EmoteFetcher</a><ul class='methods'><li data-type='method'><a href="EmoteFetcher.html#._cacheBTTVEmote#_cacheBTTVEmote">_cacheBTTVEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._cacheFFZEmote#_cacheFFZEmote">_cacheFFZEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._cacheSevenTVEmote#_cacheSevenTVEmote">_cacheSevenTVEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._cacheTwitchEmote#_cacheTwitchEmote">_cacheTwitchEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawBTTVEmotes#_getRawBTTVEmotes">_getRawBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawFFZEmotes#_getRawFFZEmotes">_getRawFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawSevenTVEmotes#_getRawSevenTVEmotes">_getRawSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawTwitchEmotes#_getRawTwitchEmotes">_getRawTwitchEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchBTTVEmotes#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchFFZEmotes#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchSevenTVEmotes#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchTwitchEmotes#fetchTwitchEmotes">fetchTwitchEmotes</a></li></ul></li><li><a href="EmoteParser.html">EmoteParser</a><ul class='methods'><li data-type='method'><a href="EmoteParser.html#.parse#parse">parse</a></li></ul></li><li><a href="FFZEmote.html">FFZEmote</a><ul class='methods'><li data-type='method'><a href="FFZEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="FFZEmote.html#.toString#toString">toString</a></li></ul></li><li><a href="SevenTVEmote.html">SevenTVEmote</a><ul class='methods'><li data-type='method'><a href="SevenTVEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="SevenTVEmote.html#.toString#toString">toString</a></li></ul></li><li><a href="TwitchEmote.html">TwitchEmote</a><ul class='methods'><li data-type='method'><a href="TwitchEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="TwitchEmote.html#.toString#toString">toString</a></li></ul></li></ul>
|
|
33
|
-
|
|
34
|
-
</nav>
|
|
35
|
-
|
|
36
|
-
<div id="main">
|
|
37
|
-
|
|
38
|
-
<h1 class="page-title">struct/BTTVEmote.js</h1>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<section>
|
|
47
|
-
<article>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>struct/BTTVEmote.js - Documentation</title>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<script src="scripts/prettify/prettify.js"></script>
|
|
10
|
+
<script src="scripts/prettify/lang-css.js"></script>
|
|
11
|
+
<!--[if lt IE 9]>
|
|
12
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
13
|
+
<![endif]-->
|
|
14
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
|
+
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
|
+
<script src="scripts/nav.js" defer></script>
|
|
17
|
+
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
|
|
22
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
23
|
+
<label for="nav-trigger" class="navicon-button x">
|
|
24
|
+
<div class="navicon"></div>
|
|
25
|
+
</label>
|
|
26
|
+
|
|
27
|
+
<label for="nav-trigger" class="overlay"></label>
|
|
28
|
+
|
|
29
|
+
<nav >
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BTTVEmote.html">BTTVEmote</a><ul class='methods'><li data-type='method'><a href="BTTVEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="BTTVEmote.html#.toString#toString">toString</a></li></ul></li><li><a href="Channel.html">Channel</a><ul class='methods'><li data-type='method'><a href="Channel.html#.fetchBTTVEmotes#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="Channel.html#.fetchFFZEmotes#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="Channel.html#.fetchSevenTVEmotes#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li></ul></li><li><a href="Collection.html">Collection</a><ul class='methods'><li data-type='method'><a href="Collection.html#.filter#filter">filter</a></li><li data-type='method'><a href="Collection.html#.find#find">find</a></li><li data-type='method'><a href="Collection.html#.map#map">map</a></li></ul></li><li><a href="Emote.html">Emote</a><ul class='methods'><li data-type='method'><a href="Emote.html#.toString#toString">toString</a></li></ul></li><li><a href="EmoteFetcher.html">EmoteFetcher</a><ul class='methods'><li data-type='method'><a href="EmoteFetcher.html#._cacheBTTVEmote#_cacheBTTVEmote">_cacheBTTVEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._cacheFFZEmote#_cacheFFZEmote">_cacheFFZEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._cacheSevenTVEmote#_cacheSevenTVEmote">_cacheSevenTVEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._cacheTwitchEmote#_cacheTwitchEmote">_cacheTwitchEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawBTTVEmotes#_getRawBTTVEmotes">_getRawBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawFFZEmotes#_getRawFFZEmotes">_getRawFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawSevenTVEmotes#_getRawSevenTVEmotes">_getRawSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawTwitchEmotes#_getRawTwitchEmotes">_getRawTwitchEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchBTTVEmotes#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchFFZEmotes#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchSevenTVEmotes#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchTwitchEmotes#fetchTwitchEmotes">fetchTwitchEmotes</a></li></ul></li><li><a href="EmoteParser.html">EmoteParser</a><ul class='methods'><li data-type='method'><a href="EmoteParser.html#.parse#parse">parse</a></li></ul></li><li><a href="FFZEmote.html">FFZEmote</a><ul class='methods'><li data-type='method'><a href="FFZEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="FFZEmote.html#.toString#toString">toString</a></li></ul></li><li><a href="SevenTVEmote.html">SevenTVEmote</a><ul class='methods'><li data-type='method'><a href="SevenTVEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="SevenTVEmote.html#.toString#toString">toString</a></li></ul></li><li><a href="TwitchEmote.html">TwitchEmote</a><ul class='methods'><li data-type='method'><a href="TwitchEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="TwitchEmote.html#.toString#toString">toString</a></li></ul></li></ul>
|
|
33
|
+
|
|
34
|
+
</nav>
|
|
35
|
+
|
|
36
|
+
<div id="main">
|
|
37
|
+
|
|
38
|
+
<h1 class="page-title">struct/BTTVEmote.js</h1>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<section>
|
|
47
|
+
<article>
|
|
48
48
|
<pre class="prettyprint source linenums"><code>const Emote = require('./Emote');
|
|
49
49
|
const Constants = require('../util/Constants');
|
|
50
50
|
|
|
@@ -99,28 +99,28 @@ class BTTVEmote extends Emote {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
module.exports = BTTVEmote;
|
|
102
|
-
</code></pre>
|
|
103
|
-
</article>
|
|
104
|
-
</section>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</div>
|
|
112
|
-
|
|
113
|
-
<br class="clear">
|
|
114
|
-
|
|
115
|
-
<footer>
|
|
116
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.0</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
117
|
-
</footer>
|
|
118
|
-
|
|
119
|
-
<script>prettyPrint();</script>
|
|
120
|
-
<script src="scripts/polyfill.js"></script>
|
|
121
|
-
<script src="scripts/linenumber.js"></script>
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</body>
|
|
126
|
-
</html>
|
|
102
|
+
</code></pre>
|
|
103
|
+
</article>
|
|
104
|
+
</section>
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<br class="clear">
|
|
114
|
+
|
|
115
|
+
<footer>
|
|
116
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.0</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
117
|
+
</footer>
|
|
118
|
+
|
|
119
|
+
<script>prettyPrint();</script>
|
|
120
|
+
<script src="scripts/polyfill.js"></script>
|
|
121
|
+
<script src="scripts/linenumber.js"></script>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
</body>
|
|
126
|
+
</html>
|