Added stats page

This commit is contained in:
Simon
2018-06-18 19:56:25 -04:00
parent 7923647ea3
commit 8768e39f08
10 changed files with 289 additions and 38 deletions

View File

@@ -43,4 +43,21 @@
</div>
</div>
</div>
<script>
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState === 4 && this.status === 200) {
var rData = this.responseText;
drawChart(JSON.parse(rData));
fillWebsiteTable(JSON.parse(rData));
document.getElementById("loading-text").innerHTML = "";
}
};
xhttp.open("GET", "./json_chart", true);
xhttp.send();
</script>
{% endblock body %}