diff options
author | CloudburstSys <us@conep.one> | 2022-05-26 10:20:53 +0100 |
---|---|---|
committer | CloudburstSys <us@conep.one> | 2022-05-26 10:20:53 +0100 |
commit | dfd7f291f1d3c14a883cd412aff55f0f525b6dec (patch) | |
tree | dc8c7d395480518d4e89792936319c99d3c42863 /public/assets | |
parent | 006aaff302a0e4027f7daff5f5fa732b2dae686e (diff) | |
download | vaportrail-dfd7f291f1d3c14a883cd412aff55f0f525b6dec.tar.gz vaportrail-dfd7f291f1d3c14a883cd412aff55f0f525b6dec.tar.bz2 vaportrail-dfd7f291f1d3c14a883cd412aff55f0f525b6dec.zip |
Create base for Plurality page.
----------------------------------
Velvet Cascade - Cloudburst System
Diffstat (limited to 'public/assets')
-rw-r--r-- | public/assets/plurality.js | 25 | ||||
-rw-r--r-- | public/assets/servers.js | 4 |
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"; |