mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-24 22:30:58 +00:00
break down footer fprintf to multiple lines
This commit is contained in:
parent
0957fedaee
commit
2e9773f705
19
wrp.go
19
wrp.go
@ -147,9 +147,22 @@ func (w wrpReq) printPage(bgcolor string) {
|
||||
|
||||
// Status bar below captured image
|
||||
func (w wrpReq) printFooter(h string, s string) {
|
||||
fmt.Fprintf(w.out, "\n<P><FONT SIZE=\"-2\"><A HREF=\"/?url=https://github.com/tenox7/wrp/&w=%d&h=%d&s=%1.2f&c=%d&t=%s\">"+
|
||||
"Web Rendering Proxy Version %s</A> | <A HREF=\"/shutdown/\">Shutdown WRP</A> | "+
|
||||
"<A HREF=\"/\">Page Height: %s</A> | <A HREF=\"/\">Img Size: %s</A></FONT></BODY>\n</HTML>\n", w.width, w.height, w.scale, w.colors, w.imgType, version, h, s)
|
||||
fmt.Fprintf(w.out,
|
||||
"\n<P><FONT SIZE=\"-2\">"+
|
||||
"<A HREF=\"/?url=https://github.com/tenox7/wrp/&w=%d&h=%d&s=%1.2f&c=%d&t=%s\">"+
|
||||
"Web Rendering Proxy Version %s</A> | "+
|
||||
"<A HREF=\"/shutdown/\">Shutdown WRP</A> | "+
|
||||
"<A HREF=\"/\">Page Height: %s</A> |"+
|
||||
"<A HREF=\"/\">Img Size: %s</A> "+
|
||||
"</FONT></BODY>\n</HTML>\n",
|
||||
w.width,
|
||||
w.height,
|
||||
w.scale,
|
||||
w.colors,
|
||||
w.imgType,
|
||||
version,
|
||||
h,
|
||||
s)
|
||||
}
|
||||
|
||||
// Process HTTP requests to WRP '/' url
|
||||
|
Loading…
Reference in New Issue
Block a user