Commit 444042de authored by Siong-Ui Te's avatar Siong-Ui Te

better UI for transliterating to Thai script

parent 749e2d0f
......@@ -40,15 +40,18 @@ func xmlAction(t lib.Tree) {
fragment := xslt.GetXSLTProcessor().TransformToFragment(xmlDoc, Document)
mainview.QuerySelector("div.content").RemoveAllChildNodes()
mainview.QuerySelector("div.content").AppendChild(fragment)
everyword.MarkEveryWord("#mainview > div.content", wordClickedHandler)
r2t := Document.CreateElement("div")
r2t.ClassList().Add("toThai")
r2t.SetInnerHTML("To Thai Script (experimental)")
r2t.AddEventListener("click", func(e Event) {
r2t.SetInnerHTML("Transliterating")
toThai()
r2t.SetInnerHTML("Done!")
})
mainview.QuerySelector("div.content").AppendChild(r2t)
mainview.QuerySelector("div.content").AppendChild(fragment)
everyword.MarkEveryWord("#mainview > div.content", wordClickedHandler)
mainview.QuerySelector("div.content").Call("prepend", r2t)
ToggleMobileTreeview()
}
......
......@@ -12,6 +12,10 @@ span.paliword:hover {
color: red;
}
.toThai {
cursor: pointer;
}
/* change default width of modal */
@media screen and (min-width: 769px), print {
.modal-content,
......
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