mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 08:23:12 +09:00
1 parent
3f699e7ab5
commit
8967189fd2
2 files changed
+9
-5
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
(function (){
|
(function (){
|
||||||
ensureSetting("Display offline slaves", "boolean", false);
|
ensureSetting("Display offline slaves", "boolean", false);
|
||||||
|
ensureSetting("Enable production graphs", "boolean", true);
|
||||||
}())
|
}())
|
||||||
|
|
||||||
function ensureSetting(setting, type, defaultSetting) {
|
function ensureSetting(setting, type, defaultSetting) {
|
||||||
|
|||||||
@@ -27,11 +27,14 @@ setTimeout(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
document.querySelector("#slaves > #display").innerHTML = HTML
|
document.querySelector("#slaves > #display").innerHTML = HTML
|
||||||
let graphs = document.querySelectorAll(".productionGraph");
|
|
||||||
for(let i = 0; i < graphs.length; i++) {
|
if(JSON.parse(localStorage.settings)["Enable production graphs"]) {
|
||||||
// execute functions to make graphs
|
let graphs = document.querySelectorAll(".productionGraph");
|
||||||
// ID of slave, ID of canvasjs div without #
|
for(let i = 0; i < graphs.length; i++) {
|
||||||
makeGraph(graphs[i].id, graphs[i].id)
|
// execute functions to make graphs
|
||||||
|
// ID of slave, ID of canvasjs div without #
|
||||||
|
makeGraph(graphs[i].id, graphs[i].id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user