|
@@ -19,6 +19,7 @@ func generateBoard(w http.ResponseWriter, r *http.Request) {
|
|
|
height, _ := strconv.Atoi(r.FormValue("height"))
|
|
height, _ := strconv.Atoi(r.FormValue("height"))
|
|
|
totalWidth, _ := strconv.Atoi(r.FormValue("totalWidth"))
|
|
totalWidth, _ := strconv.Atoi(r.FormValue("totalWidth"))
|
|
|
totalHeight, _ := strconv.Atoi(r.FormValue("totalHeight"))
|
|
totalHeight, _ := strconv.Atoi(r.FormValue("totalHeight"))
|
|
|
|
|
+ log.Printf("Creating partial x=%v, y=%v, width=%v, height=%v, totalWidth=%v, totalHeight=%v", x, y, width, height, totalWidth, totalHeight)
|
|
|
b := board.NewPartial(x, y, width, height, totalWidth, totalHeight)
|
|
b := board.NewPartial(x, y, width, height, totalWidth, totalHeight)
|
|
|
b.WriteData(w)
|
|
b.WriteData(w)
|
|
|
}
|
|
}
|