func mainView() html.Node { return html.Div().Children( html.Div().Children( html.Div().Id(clock), html.Div().Id(memoryUsage), html.Div().Id(lookupSize), html.Button().Id(exampleButton).Text("Example"), html.Textarea().Id(textInput), html.Button().Id(processButton).Text("Process"), html.P().Id(results).Class(lead), ), ) }
func (train Train) AppendToPage(document nadeshiko.Document) { document.JQuery(css.Body).Append(html.P().Id(train.Id).Text(")")) document.JQuery(train).SetCSS("position", "absolute") }