mirror of
https://github.com/jakejarvis/npqueue.git
synced 2026-07-26 09:36:03 -04:00
slower refresh
This commit is contained in:
+2
-2
@@ -13,8 +13,8 @@ async function fetchData() {
|
|||||||
function updateData() {
|
function updateData() {
|
||||||
fetchData().then(data => updateTable(data)).catch(data => console.log(data));
|
fetchData().then(data => updateTable(data)).catch(data => console.log(data));
|
||||||
|
|
||||||
// Re-fetch data every 15 seconds
|
// Re-fetch data every 1 minute
|
||||||
setTimeout(updateData, 15000);
|
setTimeout(updateData, 60000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTable(data) {
|
function updateTable(data) {
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p>Updates every 15 seconds.</p>
|
<p>Updates every 1 minute.</p>
|
||||||
<script src="fetch.js"></script>
|
<script src="fetch.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -7,6 +7,15 @@ body {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #59289b;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.4em;
|
font-size: 2.4em;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user