1
mirror of https://github.com/jakejarvis/npqueue.git synced 2025-04-26 12:58:26 -04:00

slower refresh

This commit is contained in:
Jake Jarvis 2019-06-24 17:12:21 -04:00
parent c01ce95f6a
commit a9f902ba30
No known key found for this signature in database
GPG Key ID: D36CB66F4002B25B
3 changed files with 12 additions and 3 deletions

View File

@ -13,8 +13,8 @@ async function fetchData() {
function updateData() {
fetchData().then(data => updateTable(data)).catch(data => console.log(data));
// Re-fetch data every 15 seconds
setTimeout(updateData, 15000);
// Re-fetch data every 1 minute
setTimeout(updateData, 60000);
}
function updateTable(data) {

View File

@ -30,7 +30,7 @@
</tbody>
</table>
<p>Updates every 15 seconds.</p>
<p>Updates every 1 minute.</p>
<script src="fetch.js"></script>
</body>
</html>

View File

@ -7,6 +7,15 @@ body {
text-align: center;
}
a {
color: #59289b;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1 {
font-size: 2.4em;
}