add link to stats from main page
This commit is contained in:
parent
84a69f25b4
commit
f29c2d32f6
@ -68,7 +68,7 @@ func main() {
|
||||
fmt.Printf("Error counting events: %v\n", err)
|
||||
}
|
||||
|
||||
// Improved HTML content
|
||||
// Improved HTML content with link to stats page
|
||||
fmt.Fprintf(w, `
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@ -99,6 +99,14 @@ func main() {
|
||||
}
|
||||
p {
|
||||
color: #666;
|
||||
margin: 10px 0;
|
||||
}
|
||||
a {
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@ -106,6 +114,7 @@ func main() {
|
||||
<div class="container">
|
||||
<h1>Welcome to Scrapestr!</h1>
|
||||
<p>Number of events stored: %d</p>
|
||||
<p><a href="/stats">View Event Stats</a></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user