generated from nathanwoodburn/go-webserver-template
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Go HTML Template</title>
|
||||
<link rel="stylesheet" href="/assets/css/index.css">
|
||||
<link rel="icon" href="/assets/img/favicon.png">
|
||||
</head>
|
||||
<body>
|
||||
<h1>About page</h1>
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,17 +8,17 @@
|
||||
<link rel="icon" href="/assets/img/favicon.png">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, World!</h1>
|
||||
{{if .envMessage }}
|
||||
<p>{{.envMessage}}</p>
|
||||
<h1>HNSDoH Node Status</h1>
|
||||
{{ if .logContent}}
|
||||
<h2>Log Output</h2>
|
||||
<pre>{{.logContent}}</pre>
|
||||
{{end}}
|
||||
|
||||
{{if .message}}
|
||||
<p>{{.message}}</p>
|
||||
{{end}}
|
||||
<form action="/" method="post">
|
||||
<input type="text" name="message" placeholder="Enter your message">
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
<!-- Reload automatically every 30 seconds -->
|
||||
<script>
|
||||
setTimeout(function(){
|
||||
window.location.reload(1);
|
||||
}, 30000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user