Exemplo n.º 1
0
func helloWorldHandler(document *nadeshiko.Document) {
	document.JQuery(css.Body).HTML(html.H1().Text("Hello World !!!"))
}
Exemplo n.º 2
0
func AddMap(document *nadeshiko.Document) {
	document.JQuery(css.Body).Append(svgElement)
}
Exemplo n.º 3
0
func (train Train) RemoveFromPage(document nadeshiko.Document) {
	document.JQuery(train).Remove()
}
Exemplo n.º 4
0
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))
}
Exemplo n.º 5
0
func (train Train) AppendToPage(document nadeshiko.Document) {
	document.JQuery(css.Body).Append(html.P().Id(train.Id).Text(")"))
	document.JQuery(train).SetCSS("position", "absolute")
}