mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-27 00:57:39 +00:00
fixup stats loading
This commit is contained in:
1 parent
8734452f19
commit
7b736f09bf
2 files changed
+3
-2
No files matched your search
@@ -9,7 +9,7 @@ document.addEventListener("DOMContentLoaded", function (event) {
|
||||
});
|
||||
loadGraphBtn.style.display = "none";
|
||||
loadHealthGraph(host_id);
|
||||
//loadStatsGraph();
|
||||
loadStatsGraph(host_id);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="container">
|
||||
<h1>Instance Stats</h1>
|
||||
<p><a href="/admin">Overview</a> <a href="/admin/logout">Logout</a> <a href="/admin/login">Add more instances</a></p>
|
||||
<div><canvas data-host="{{HOST_ID}}" id="graph" width="600" height="200"></canvas><noscript>History feature works only with javascript enabled.</noscript></div>
|
||||
<noscript>History feature works only with javascript enabled.</noscript>
|
||||
<div class="container">
|
||||
<button class="btn btn-primary" id="loadGraphBtn">Show Historical Data Graph (CPU & Network Intense)</button>
|
||||
<div class="row">
|
||||
@@ -40,6 +40,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="/static/dygraph.min.js"></script>
|
||||
<script type="text/javascript" src="/static/stats.js"></script>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user