aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/index.go
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2021-01-09 15:22:27 -0500
committerMitch Riedstra <mitch@riedstra.us>2021-01-09 15:22:27 -0500
commit602790e2ca33ad7f22235bf2ae548cef7db8b814 (patch)
treef79fc9a7f6e019a3f2a774e13d030937b3ae9f86 /cmd/web/index.go
parente31c9168627c040317e5cc8566724f88910439ae (diff)
downloadsteam-export-602790e2ca33ad7f22235bf2ae548cef7db8b814.tar.gz
steam-export-602790e2ca33ad7f22235bf2ae548cef7db8b814.tar.xz
Add a progress bar to the UI for installation via HTTP. Uses polling, but whatever.
Diffstat (limited to 'cmd/web/index.go')
-rw-r--r--cmd/web/index.go19
1 files changed, 9 insertions, 10 deletions
diff --git a/cmd/web/index.go b/cmd/web/index.go
index 6229f71..970810f 100644
--- a/cmd/web/index.go
+++ b/cmd/web/index.go
@@ -18,6 +18,8 @@ var (
<title>Steam Game index</title>
</head>
<body>
+
+
<nav>
<a href="/">Home</a>
{{ if .Local }}
@@ -28,19 +30,16 @@ var (
</nav>
{{ if .Local }}
+<script src="/main.js"></script>
<h2>Library: {{.Lib.Folder}}</h2>
-{{ if .Info.Running }}
-<pre><code>
-Currently Downloading from: {{.Info.Url}}
-</pre></code>
-{{ end }}
+<div id="status">
+ <div id="installBar" class="installBar" style="display: none;">0%</div>
+</div>
-{{ if .Info.Error }}
-<pre><code>
-Error {{.Info.Error}} Downloading from: {{.Info.Url}}
-{{ end }}
-</pre></code>
+<pre><code id="message" style="display: none;">
+</code></pre>
+<br />
<h3>About</h3>
<p>