mirror of
https://github.com/gen2brain/cam2ip.git
synced 2025-12-16 04:18:39 +00:00
Add some options
This commit is contained in:
@@ -12,11 +12,11 @@ type HTML struct {
|
||||
}
|
||||
|
||||
// NewHTML returns new HTML handler.
|
||||
func NewHTML(width, height float64, nogl bool) *HTML {
|
||||
func NewHTML(width, height float64, noWebGL bool) *HTML {
|
||||
h := &HTML{}
|
||||
|
||||
tpl := htmlWebGL
|
||||
if nogl {
|
||||
if noWebGL {
|
||||
tpl = html
|
||||
}
|
||||
tpl = strings.Replace(tpl, "{WIDTH}", fmt.Sprintf("%.0f", width), -1)
|
||||
|
||||
Reference in New Issue
Block a user