22 lines
613 B
HTML
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>
|