+
\ No newline at end of file
diff --git a/static/index.html b/static/index.html
deleted file mode 100644
index 4c6789df..00000000
--- a/static/index.html
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
- Clusterio
-
-
-
-
-
-
-
-
-
-
-
-
Clusterio
-
-
-
Storage
-
-
-
-
Slaves
-
-
-
-
-
Storage
-
-
-
-
-
-
Production
-
-
-
-
-
-
-
Slaves
-
-
-
-
-
-
\ No newline at end of file
diff --git a/static/main.js b/static/main.js
index 5c63abe6..0876029d 100644
--- a/static/main.js
+++ b/static/main.js
@@ -29,196 +29,7 @@ function capitalizeFirstLetter(string) {
function hideThis(object) {
object.style.visibility = "hidden";
}
-// function to sort arrays of objects after a keys value
-function sortByKey(array, key) {
- return array.sort(function(a, b) {
- var x = Number(a[key]); var y = Number(b[key]);
- return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- });
-}
-// function to draw data we recieve from ajax requests
-function drawcontents(data) {
- var data = sortByKey(data, "count");
- result = "
"
- }
- }
- document.querySelector("#slaves > #display").innerHTML = HTML
- }
- }
- xmlhttp.open("GET", "slaves", true);
- xmlhttp.send();
-}, 500)
-
// image data
// key is the name of the item in the database, value is the name of the image on wiki.factorio.com/images/*
// this list has to include all entities that doesn't just follow the simple capitalize first letter convention
diff --git a/static/nodes.ejs b/static/nodes.ejs
new file mode 100644
index 00000000..1457ee84
--- /dev/null
+++ b/static/nodes.ejs
@@ -0,0 +1,17 @@
+
+
+ <%- include("head.html") %>
+
+
+
+
+ <%- include("sidebar.html") %>
+
+
+
Slaves
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/sidebar.html b/static/sidebar.html
new file mode 100644
index 00000000..6f542679
--- /dev/null
+++ b/static/sidebar.html
@@ -0,0 +1,17 @@
+