This commit is contained in:
2020-07-28 04:44:28 +00:00
parent 53783025e2
commit 78b916c3a7
2 changed files with 10 additions and 12 deletions
+6 -5
View File
@@ -430,9 +430,9 @@
<script src="./dist/js/tabler.min.js"></script>
<script>
$.get("/stat", function (data) {
// @formatter:off
document.addEventListener("DOMContentLoaded", function () {
var load_stat = function(){
$.getJSON("/stat", function (data) {
// @formatter:off
window.ApexCharts && (new ApexCharts(document.getElementById('chart-mentions'), {
chart: {
type: "line",
@@ -516,9 +516,10 @@
},
},
})).render();
});
// @formatter:on
});
};
load_stat();
</script>
@@ -601,4 +602,4 @@
</script>
</body>
</html>
</html>