Empty space on image pages is now clickable, and returns a new random image
This commit is contained in:
parent
97e3b47b19
commit
ad6d7e2cd3
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Version = "0.20.3"
|
var Version = "0.20.4"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(versionCmd)
|
rootCmd.AddCommand(versionCmd)
|
||||||
|
|
|
@ -162,8 +162,11 @@ func serveHtml(w http.ResponseWriter, r *http.Request, filePath, dimensions stri
|
||||||
|
|
||||||
htmlBody := `<html lang="en">
|
htmlBody := `<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<style>img{max-width:100%;max-height:97vh;height:auto;}</style>
|
<style>
|
||||||
<title>`
|
a{display:block;height:100%;width:100%;text-decoration:none}
|
||||||
|
img{max-width:100%;max-height:97vh;height:auto;}
|
||||||
|
</style>
|
||||||
|
<title>`
|
||||||
htmlBody += fmt.Sprintf("%v (%v)", fileName, dimensions)
|
htmlBody += fmt.Sprintf("%v (%v)", fileName, dimensions)
|
||||||
htmlBody += `</title>
|
htmlBody += `</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in New Issue