ynab-portfolio-monitor/templates/home.html
Steven Polley 4c904e7196
All checks were successful
continuous-integration/drone/push Build is passing
add web client - future plans for loading screen during refresh
2023-11-13 18:05:20 -07:00

22 lines
613 B
HTML

<html>
<head>
<title>YNAB Portfolio Monitor</title>
<script>
req = new XMLHttpRequest();
req.open("GET", "/status");
req.send();
req.onload = () => {
if (req.readyState == 4 && req.status == 200) {
// redirect to budget when refresh complete signal is received
window.location.href = "https://app.ynab.com/{{ .BudgetID }}"
}
};
// do some fancy preloader stuff
</script>
</head>
<body>
<p>Loading...</p>
</body>
</html>