Commit b87b5b02 authored by Siong-Ui Te's avatar Siong-Ui Te

use button for transliteration

parent 444042de
......@@ -43,8 +43,9 @@ func xmlAction(t lib.Tree) {
mainview.QuerySelector("div.content").AppendChild(fragment)
everyword.MarkEveryWord("#mainview > div.content", wordClickedHandler)
r2t := Document.CreateElement("div")
r2t := Document.CreateElement("button")
r2t.ClassList().Add("toThai")
r2t.ClassList().Add("button")
r2t.SetInnerHTML("To Thai Script (experimental)")
r2t.AddEventListener("click", func(e Event) {
r2t.SetInnerHTML("Transliterating")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment