Development Environment:
- Ubuntu 16.04 (
Chromium 50.0.2661.102 Ubuntu 16.04 (64-bit)
)- Go 1.6.2
If you need to add tooltip to every word via AngularJS, see [2].
Install GopherJS and this package:
$ go get -u github.com/gopherjs/gopherjs
$ go get -u github.com/siongui/gopherjs-tooltip-every-word
See example directory. Also see Demo.
Released in public domain. See UNLICENSE.
[1] | GopherJS - A compiler from Go to JavaScript (GitHub, GopherJS Playground, ) |
[2] | [AngularJS] Add Tooltip to Every Word GitHub - siongui/gopherjs-tooltip: Tooltip in Go. Compiled to JavaScript via GopherJS |
[3] |
[Golang] querySelectorAll and querySelector Example by GopherJS |
[4] | javascript - Converting HTML string into DOM elements? - Stack Overflow ajax - How to parse HTML from JavaScript in Firefox? - Stack Overflow |
[5] | [Golang] Wrap Pāli Words in Span Element |
[6] | [GopherJS] getElementsByTagName |