aboutsummaryrefslogtreecommitdiff
path: root/Pages/JobCounter/Index.cshtml
blob: 22f3a95fd6c975c3bb6a3bfcccf46011264af49b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>