2020-10-27 11:35:57 +00:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
|
|
<TITLE>WRP {{.URL}}</TITLE>
|
|
|
|
</HEAD>
|
2020-10-31 15:51:20 +00:00
|
|
|
<BODY BGCOLOR="{{.BgColor}}">
|
2020-10-27 11:35:57 +00:00
|
|
|
<FORM ACTION="/" METHOD="POST">
|
|
|
|
<INPUT TYPE="TEXT" NAME="url" VALUE="{{.URL}}" SIZE="20">
|
|
|
|
<INPUT TYPE="SUBMIT" VALUE="Go">
|
2024-07-03 12:24:56 +00:00
|
|
|
{{ if eq .WrpMode "ismap" }}
|
2020-10-27 11:35:57 +00:00
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="Bk">
|
2021-03-08 12:41:13 +00:00
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="St">
|
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="Re">
|
2023-10-18 22:30:40 +00:00
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="Up">
|
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="Dn">
|
2020-10-27 11:35:57 +00:00
|
|
|
W <INPUT TYPE="TEXT" NAME="w" VALUE="{{.Width}}" SIZE="4">
|
|
|
|
H <INPUT TYPE="TEXT" NAME="h" VALUE="{{.Height}}" SIZE="4">
|
2024-07-03 12:24:56 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if eq .WrpMode "html" }}
|
|
|
|
S <INPUT TYPE="TEXT" NAME="s" VALUE="{{.MaxSize}}" SIZE="4">
|
|
|
|
{{ end }}
|
|
|
|
{{ if eq .WrpMode "ismap" }}
|
2021-03-08 13:02:22 +00:00
|
|
|
Z <SELECT NAME="z">
|
2024-07-03 12:24:56 +00:00
|
|
|
<OPTION DISABLED>Zoom</OPTION>
|
2021-03-08 13:02:22 +00:00
|
|
|
<OPTION VALUE="0.7" {{ if eq .Zoom 0.7}}SELECTED{{end}}>0.7 x</OPTION>
|
|
|
|
<OPTION VALUE="0.8" {{ if eq .Zoom 0.8}}SELECTED{{end}}>0.8 x</OPTION>
|
|
|
|
<OPTION VALUE="0.9" {{ if eq .Zoom 0.9}}SELECTED{{end}}>0.9 x</OPTION>
|
|
|
|
<OPTION VALUE="1.0" {{ if eq .Zoom 1.0}}SELECTED{{end}}>1.0 x</OPTION>
|
|
|
|
<OPTION VALUE="1.1" {{ if eq .Zoom 1.1}}SELECTED{{end}}>1.1 x</OPTION>
|
|
|
|
<OPTION VALUE="1.2" {{ if eq .Zoom 1.2}}SELECTED{{end}}>1.2 x</OPTION>
|
|
|
|
<OPTION VALUE="1.3" {{ if eq .Zoom 1.3}}SELECTED{{end}}>1.3 x</OPTION>
|
2020-10-31 15:36:14 +00:00
|
|
|
</SELECT>
|
2024-06-21 08:04:30 +00:00
|
|
|
{{ end }}
|
2024-07-03 12:24:56 +00:00
|
|
|
M <SELECT NAME="m">
|
|
|
|
<OPTION DISABLED>Mode</OPTION>
|
|
|
|
<OPTION VALUE="ismap" {{ if eq .WrpMode "ismap"}}SELECTED{{end}}>ISMAP</OPTION>
|
|
|
|
<OPTION VALUE="html" {{ if eq .WrpMode "html"}}SELECTED{{end}}>HTML</OPTION>
|
|
|
|
</SELECT>
|
2020-10-27 11:35:57 +00:00
|
|
|
T <SELECT NAME="t">
|
2024-07-03 12:24:56 +00:00
|
|
|
<OPTION DISABLED>Type</OPTION>
|
2020-10-27 11:35:57 +00:00
|
|
|
<OPTION VALUE="png" {{ if eq .ImgType "png"}}SELECTED{{end}}>PNG</OPTION>
|
2022-12-08 08:55:56 +00:00
|
|
|
<OPTION VALUE="gif" {{ if eq .ImgType "gif"}}SELECTED{{end}}>GIF</OPTION>
|
|
|
|
<OPTION VALUE="jpg" {{ if eq .ImgType "jpg"}}SELECTED{{end}}>JPG</OPTION>
|
2020-10-27 11:35:57 +00:00
|
|
|
</SELECT>
|
2024-07-09 08:45:03 +00:00
|
|
|
{{ if eq .ImgType "gif" }}
|
2020-10-31 15:36:14 +00:00
|
|
|
C <SELECT NAME="c">
|
2024-07-03 12:24:56 +00:00
|
|
|
<OPTION DISABLED>Ncol</OPTION>
|
2020-10-31 15:36:14 +00:00
|
|
|
<OPTION VALUE="256" {{ if eq .NColors 256}}SELECTED{{end}}>256</OPTION>
|
2022-11-29 13:50:17 +00:00
|
|
|
<OPTION VALUE="216" {{ if eq .NColors 216}}SELECTED{{end}}>216</OPTION>
|
2022-11-06 06:36:25 +00:00
|
|
|
<OPTION VALUE="128" {{ if eq .NColors 128}}SELECTED{{end}}>128</OPTION>
|
|
|
|
<OPTION VALUE="64" {{ if eq .NColors 64}}SELECTED{{end}}>64</OPTION>
|
|
|
|
<OPTION VALUE="16" {{ if eq .NColors 16}}SELECTED{{end}}>16</OPTION>
|
|
|
|
<OPTION VALUE="2" {{ if eq .NColors 2}}SELECTED{{end}}>2</OPTION>
|
2020-10-31 15:36:14 +00:00
|
|
|
</SELECT>
|
2024-07-09 08:45:03 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if eq .ImgType "jpg" }}
|
|
|
|
Q <INPUT TYPE="TEXT" NAME="q" VALUE="{{.JQual}}" SIZE="2">%
|
|
|
|
{{ end }}
|
2024-07-03 12:24:56 +00:00
|
|
|
{{ if eq .WrpMode "ismap" }}
|
2020-10-27 11:35:57 +00:00
|
|
|
K <INPUT TYPE="TEXT" NAME="k" VALUE="" SIZE="4">
|
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="Bs">
|
2023-10-18 22:30:40 +00:00
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="Rt">
|
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="All"><!--
|
2020-10-27 11:35:57 +00:00
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="<">
|
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="^">
|
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE="v">
|
2021-03-08 13:14:18 +00:00
|
|
|
<INPUT TYPE="SUBMIT" NAME="Fn" VALUE=">" SIZE="1">-->
|
2024-06-21 08:04:30 +00:00
|
|
|
{{ end }}
|
2020-10-27 11:35:57 +00:00
|
|
|
</FORM>
|
|
|
|
<BR>
|
2020-10-31 15:51:20 +00:00
|
|
|
{{if .ImgURL}}
|
|
|
|
<A HREF="{{.MapURL}}">
|
|
|
|
<IMG SRC="{{.ImgURL}}" BORDER="0" ALT="Url: {{.URL}}, Size: {{.ImgSize}} PageHeight: {{.PageHeight}}" WIDTH="{{.ImgWidth}}" HEIGHT="{{.ImgHeight}}" ISMAP>
|
2020-10-31 15:36:14 +00:00
|
|
|
</A>
|
2020-10-27 11:35:57 +00:00
|
|
|
<P>
|
|
|
|
{{end}}
|
2024-06-20 06:37:44 +00:00
|
|
|
{{.TeXT}}
|
2020-10-27 11:35:57 +00:00
|
|
|
<FONT SIZE="-2">
|
2021-03-08 13:02:22 +00:00
|
|
|
<A HREF="/?url=https://github.com/tenox7/wrp/&w={{.Width}}&h={{.Height}}&s={{printf "%.1f" .Zoom}}&c={{.NColors}}&t={{.ImgType}}">Web Rendering Proxy {{.Version}}</A> |
|
2020-10-27 11:35:57 +00:00
|
|
|
<A HREF="/shutdown/">Shutdown WRP</A> |
|
2024-07-14 21:54:31 +00:00
|
|
|
{{ if eq .WrpMode "ismap" }}
|
2020-10-27 11:35:57 +00:00
|
|
|
<A HREF="/">Page Height: {{.PageHeight}}</A> |
|
|
|
|
<A HREF="/">Img Size: {{.ImgSize}}</A>
|
2024-06-22 22:33:27 +00:00
|
|
|
{{end}}
|
|
|
|
</FONT>
|
2020-10-27 11:35:57 +00:00
|
|
|
</BODY>
|
2024-06-22 22:33:27 +00:00
|
|
|
</HTML>
|