aboutsummaryrefslogtreecommitdiff
path: root/Pages/JobCounter/Index.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'Pages/JobCounter/Index.cshtml')
-rw-r--r--Pages/JobCounter/Index.cshtml17
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>