Added stat placeholder box

This commit is contained in:
2023-07-21 22:27:42 +01:00
parent 4a375149f6
commit 20da46a8d7
3 changed files with 27 additions and 3 deletions

View File

@@ -16,7 +16,6 @@
height: 85%;
width: 100%;
padding: 5%;
overflow: auto;
}
#menu {
@@ -40,4 +39,19 @@
#taskButton {
padding-left: 0;
}
#historyContent {
height: 75%;
overflow: scroll;
width: 100%;
}
#stats {
height: 25%;
width: 100%;
}
#tasks {
overflow: scroll;
}

View File

@@ -29,7 +29,17 @@
<div id="mainPage" style="display: none;">
<div id="content">
<div id="tasks" class="screen flex two demo" style=""></div>
<div id="history" class="screen" style="display: none;"></div>
<div id="history" class="screen" style="display: none;">
<div id="stats">
<article class="card">
<header>
<h1>Stats</h1>
<pre id="statData"></pre>
</header>
</article>
</div>
<div id="historyContent"></div>
</div>
<div id="addTask" class="screen" style="display: none;">Add Task</div>
</div>
<div id="menu" class="flex three demo">

View File

@@ -54,7 +54,7 @@ async function populateScreen() {
let tasks = tasksRaw.tasks;
// get historical data
let historyPage = document.getElementById("history");
let historyPage = document.getElementById("historyContent");
historyPage.innerHTML = "";
response = await fetch("/getHistory");
let historyRaw = await response.json();