func helloWorldHandler(document *nadeshiko.Document) { document.JQuery(css.Body).HTML(html.H1().Text("Hello World !!!")) }
func AddMap(document *nadeshiko.Document) { document.JQuery(css.Body).Append(svgElement) }
func (train Train) RemoveFromPage(document nadeshiko.Document) { document.JQuery(train).Remove() }
func (train Train) Draw(document nadeshiko.Document) { document.JQuery(train).SetCSS("left", fmt.Sprintf("%fpx", train.Position.X+2)) document.JQuery(train).SetCSS("top", fmt.Sprintf("%fpx", train.Position.Y-17)) }
func (train Train) AppendToPage(document nadeshiko.Document) { document.JQuery(css.Body).Append(html.P().Id(train.Id).Text(")")) document.JQuery(train).SetCSS("position", "absolute") }