diff options
| author | Jake Mannens <jake@asger.xyz> | 2024-09-20 16:21:09 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2024-10-29 11:42:54 +1100 |
| commit | e8e3c4cba8ffa0056e984c113cfbb75319e00022 (patch) | |
| tree | 8336315e61f9e77207276d478b25fe5dc7c3d06c /Pages/JobCounter/Index.cshtml | |
| parent | 0e21907c76dbefed11f382bcf949143f0716567f (diff) | |
v0.4-rc1v0.4-rc1
Diffstat (limited to 'Pages/JobCounter/Index.cshtml')
| -rw-r--r-- | Pages/JobCounter/Index.cshtml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Pages/JobCounter/Index.cshtml b/Pages/JobCounter/Index.cshtml new file mode 100644 index 0000000..22f3a95 --- /dev/null +++ b/Pages/JobCounter/Index.cshtml @@ -0,0 +1,17 @@ +@page "{PageDestination}" +@model IndexModel + +<link rel="stylesheet" type="text/css" href="@(nameof(PagerParser)).styles.css"/> + +<script type="text/javascript"> + window.onload = () => { + var refreshInterval = @Html.Raw(Model.RefreshInterval); + if(refreshInterval != 0) { + setTimeout(() => window.location.reload(), refreshInterval * 1000); + } + } +</script> + +<div> + <h1>@Model.TotalJobs</h1> +</div> |
