Example #1
0
func helloWorldHandler(document *nadeshiko.Document) {
	document.JQuery(css.Body).HTML(html.H1().Text("Hello World !!!"))
}
Example #2
0
func AddMap(document *nadeshiko.Document) {
	document.JQuery(css.Body).Append(svgElement)
}
Example #3
0
func (train Train) RemoveFromPage(document nadeshiko.Document) {
	document.JQuery(train).Remove()
}
Example #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))
}
Example #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")
}