func (l *Log) add(class, text string) {
	l.dom.SetChecked("#hide-log", false)
	clone := l.dom.CloneElement(".log>template")
	cloneChildren := clone.Get("children")
	logItemElement := cloneChildren.Index(0)
	time := l.dom.FormatTime(l.TimeFunc())
	textContent := time + " : " + text
	logItemElement.Set("textContent", textContent)
	logItemElement.Set("className", class)
	logScrollElement := l.dom.QuerySelector(".log>.scroll")
	logScrollElement.Call("appendChild", logItemElement)
	scrollHeight := logScrollElement.Get("scrollHeight")
	clientHeight := logScrollElement.Get("clientHeight")
	scrollTop := scrollHeight.Int() - clientHeight.Int()
	logScrollElement.Set("scrollTop", scrollTop)
}
// add writes a log item with the specified class.
add writes a log item with the specified class.
// add writes a log item with the specified class .
func (l *Log) add(class, text string) {
	l.dom.SetChecked("#hide-log", false)
	clone := l.dom.CloneElement(".log>template")
	cloneChildren := clone.Get("children")
	logItemElement := cloneChildren.Index(0)
	time := l.dom.FormatTime(l.TimeFunc())
	textContent := time + " : " + text
	logItemElement.Set("textContent", textContent)
	logItemElement.Set("className", class)
	logScrollElement := l.dom.QuerySelector(".log>.scroll")
	logScrollElement.Call("appendChild", logItemElement)
	scrollHeight := logScrollElement.Get("scrollHeight")
	clientHeight := logScrollElement.Get("clientHeight")
	scrollTop := scrollHeight.Int() - clientHeight.Int()
	logScrollElement.Set("scrollTop", scrollTop)
}
func ( l * Log ) add ( class , text string ) { l . dom . SetChecked ( " " , false ) clone := l . dom . CloneElement ( " " ) cloneChildren := clone . Get ( " " ) logItemElement := cloneChildren . Index ( 0 ) time := l . dom . FormatTime ( l . TimeFunc ( ) ) textContent := time + " " + text logItemElement . Set ( " " , textContent ) logItemElement . Set ( " " , class ) logScrollElement := l . dom . QuerySelector ( " " ) logScrollElement . Call ( " " , logItemElement ) scrollHeight := logScrollElement . Get ( " " ) clientHeight := logScrollElement . Get ( " " ) scrollTop := scrollHeight . Int ( ) - clientHeight . Int ( ) logScrollElement . Set ( " " , scrollTop ) }
add writes a log item with the specified class.
add writes a log item with the specified class .