aboutsummaryrefslogtreecommitdiff
path: root/public/assets
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets')
-rw-r--r--public/assets/plurality.js25
-rw-r--r--public/assets/servers.js4
2 files changed, 27 insertions, 2 deletions
diff --git a/public/assets/plurality.js b/public/assets/plurality.js
new file mode 100644
index 0000000..745e149
--- /dev/null
+++ b/public/assets/plurality.js
@@ -0,0 +1,25 @@
+/*
+ * MIT License
+ *
+ * Copyright (c) 2022- Equestria.dev Developers
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
diff --git a/public/assets/servers.js b/public/assets/servers.js
index 566acde..6099eee 100644
--- a/public/assets/servers.js
+++ b/public/assets/servers.js
@@ -62,7 +62,7 @@ function iterateAndSetData(data, previous, element, server) {
if(isObject(data[key])) {
// Call self again but with this object as the input
console.log("iterateAndSetData: Calling self!")
- newPrevious = previous.join("-").split("-");
+ let newPrevious = previous.join("-").split("-");
newPrevious.push(key);
console.log(newPrevious.join("-"));
@@ -115,7 +115,7 @@ function a() {
.then(data => data = data.json())
.then(data => {
console.log(data);
- for(var server in data) {
+ for(let server in data) {
if(data[server] == null) {
document.getElementById(server).getElementsByClassName("category-container")[0].remove();
document.getElementById(server).getElementsByTagName("p")[0].innerHTML = "Server Offline";