Export: PNG SVG Always-Latest-SVG
(The visualization is updated every 5s)
To use, place a URL to an EtherPad in the params of this page. Example: "?https://pad.okfn.org/p/etherplant".
A full working URL would be something like andresmrm.github.io/EtherPlant/src/etherplant.html?https://pad.okfn.org/p/etherplant
You can change the last word in the link to have a new pad. For example:
And you can share your EtherPlant with others sharing the full link.
And this is a test bookmarklet (drag it to your bookmarks, and use it when in a Pad [it's seems to work only in HTTP Pads, because of Cross-site request forgery policies]):EtherPlant
One example of an HTTP pad? http://piratepad.be
As stated by JohnMcLear, one of the main developers of EtherPad-Lite, this code is a bad implementation. Why? It requests the TXT exportation of the current pad every 5s. That's ugly, but the other option is to implement it server-side (this implementation is totally client-side), and host a modified EtherPad that supports integration with PlantServer. That's out of the scope of this project, and has the disadvantage of not allowing you to visualize a pad in any EtherPad server.
The bookmarklet somehow solves this problem. It gets the text directly from the iFrame, and not from the EtherPad server. AFAK this can only be done via bookmarklet, because of CSRF...
(Anyway, the current EtherPlant code is actually quite messed up... Feel free to submit patches, or rewrite it. =] )
(JohnMcLear seems to have implemented a plug-in for the server-side solution.)
HTTPS Everywhere enforces HTTPS on GitHub, and so, on this page, hosted on GitHub. The current PlantServer allows only HTTP. So you'll have half of the page in HTTPS and half in HTTP, what won't work. To solve this you can try to: use the Bookmarklet in a HTTP Pad or host this code in a HTTP website.
The EtherPad used must support "/export/txt" to export the content has text. At least for now...