Skip to content

Commit 6850ac4

Browse files
author
Ted Ian Osias
committed
fix: remove public url reference
1 parent 41ab1a7 commit 6850ac4

16 files changed

+320
-11360
lines changed

docs/entry.js

+196-186
Large diffs are not rendered by default.

docs/scripts/app.min.js

+1-79
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/scripts/linenumber.js

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
/*global document */
22

3-
(function () {
4-
var source = document.getElementsByClassName("prettyprint source linenums");
5-
var i = 0;
6-
var lineNumber = 0;
7-
var lineId;
8-
var lines;
9-
var totalLines;
10-
var anchorHash;
3+
(function() {
4+
var source = document.getElementsByClassName('prettyprint source linenums');
5+
var i = 0;
6+
var lineNumber = 0;
7+
var lineId;
8+
var lines;
9+
var totalLines;
10+
var anchorHash;
1111

12-
if (source && source[0]) {
13-
anchorHash = document.location.hash.substring(1);
14-
lines = source[0].getElementsByTagName("li");
15-
totalLines = lines.length;
12+
if (source && source[0]) {
13+
anchorHash = document.location.hash.substring(1);
14+
lines = source[0].getElementsByTagName('li');
15+
totalLines = lines.length;
1616

17-
for (; i < totalLines; i++) {
18-
lineNumber++;
19-
lineId = "line" + lineNumber;
20-
lines[i].id = lineId;
21-
if (lineId === anchorHash) {
22-
lines[i].className += " selected";
23-
}
17+
for (; i < totalLines; i++) {
18+
lineNumber++;
19+
lineId = 'line' + lineNumber;
20+
lines[i].id = lineId;
21+
if (lineId === anchorHash) {
22+
lines[i].className += ' selected';
23+
}
24+
}
2425
}
25-
}
2626
})();

docs/scripts/search.js

+19-22
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,39 @@
1-
(function () {
2-
const input = document.querySelector("#search");
3-
const targets = [...document.querySelectorAll("#sidebarNav li")];
4-
input.addEventListener("keyup", () => {
1+
(function() {
2+
const input = document.querySelector('#search')
3+
const targets = [ ...document.querySelectorAll('#sidebarNav li')]
4+
input.addEventListener('keyup', () => {
55
// loop over each targets and hide the not corresponding ones
6-
targets.forEach((target) => {
6+
targets.forEach(target => {
77
if (!target.innerText.toLowerCase().includes(input.value.toLowerCase())) {
8-
target.style.display = "none";
8+
target.style.display = 'none'
99

1010
/**
1111
* Detects an empty list
1212
* Remove the list and the list's title if the list is not displayed
1313
*/
14-
const list = [...target.parentNode.childNodes].filter(
15-
(elem) => elem.style.display !== "none"
16-
);
14+
const list = [...target.parentNode.childNodes].filter( elem => elem.style.display !== 'none')
1715

1816
if (!list.length) {
19-
target.parentNode.style.display = "none";
20-
target.parentNode.previousSibling.style.display = "none";
17+
target.parentNode.style.display = 'none'
18+
target.parentNode.previousSibling.style.display = 'none'
2119
}
2220

2321
/**
2422
* Detects empty category
2523
* Remove the entire category if no item is displayed
2624
*/
27-
const category = [...target.parentNode.parentNode.childNodes].filter(
28-
(elem) => elem.tagName !== "H2" && elem.style.display !== "none"
29-
);
25+
const category = [...target.parentNode.parentNode.childNodes]
26+
.filter( elem => elem.tagName !== 'H2' && elem.style.display !== 'none')
3027

3128
if (!category.length) {
32-
target.parentNode.parentNode.style.display = "none";
29+
target.parentNode.parentNode.style.display = 'none'
3330
}
3431
} else {
35-
target.parentNode.style.display = "block";
36-
target.parentNode.previousSibling.style.display = "block";
37-
target.parentNode.parentNode.style.display = "block";
38-
target.style.display = "block";
32+
target.parentNode.style.display = 'block'
33+
target.parentNode.previousSibling.style.display = 'block'
34+
target.parentNode.parentNode.style.display = 'block'
35+
target.style.display = 'block'
3936
}
40-
});
41-
});
42-
})();
37+
})
38+
})
39+
})()

0 commit comments

Comments
 (0)