Add formvalue
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Steven Polley 2019-03-03 14:38:06 -07:00
parent 8c1e447286
commit b2c2ba5c42
1 changed files with 4 additions and 2 deletions

6
web.go
View File

@ -13,6 +13,8 @@ func init() {
return
}
r.ParseForm()
fmt.Fprintf(w, `<!DOCTYPE html>
<html>
<head>
@ -29,7 +31,7 @@ func init() {
<script>
var mandelbrotTypeOptions = {
getTileUrl: function(coord, zoom) {
return '/mandelbrot/' + zoom + '/' + coord.x + '/' + coord.y + '.png';
return '/mandelbrot/' + zoom + '/' + coord.x + '/' + coord.y + '.png?label=%s';
},
tileSize: new google.maps.Size(128, 128),
maxZoom: (1<<16),
@ -67,6 +69,6 @@ function initialize() {
<body onload="initialize()">
<div id="map_canvas"></div>
</body>
</html>`)
</html>`, r.FormValue("label"))
})
}