Skip to content

Commit

Permalink
rm refreshtime
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGruber committed Sep 21, 2024
1 parent 714f189 commit dafed96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 1 addition & 5 deletions html.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ func copyFile(src, dst string) error {
}

func genHtml() {
data := struct {
RefreshTimeMs uint32
}{
RefreshTimeMs: REFRESH_TIME*1000 + 60000,
}
data := struct{}{}

tmpl, err := os.ReadFile("./template.html")
if err != nil {
Expand Down
8 changes: 3 additions & 5 deletions template.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ <h1>H1emu Charts</h1>

<div class="container">
<div class="chart-container">
<p>Welcome to H1emu Charts. Please select a chart from the menu above.</p>
<p>
Welcome to H1emu Charts. Please select a chart from the menu above.
</p>
</div>
</div>

<script>
setTimeout(()=>location.reload(),{{.RefreshTimeMs}})
</script>
</body>
</html>

0 comments on commit dafed96

Please sign in to comment.