iafan / goplayspace

Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more
https://goplay.space
Other
981 stars 63 forks source link

Support setting config through query strings #38

Open andrewmunro opened 4 years ago

andrewmunro commented 4 years ago

I'm trying to embed https://goplay.space in an interactive training course and due to the "ShowSidebar" option being enabled by default, it doesn't render very nice until the user configures it within the iframe.

Would it be possible to support query strings for setting the config?

iafan commented 4 years ago

goplay.space is hosted on a personal server with a limited capacity, so if you plan to embed multiple instances of it on your web page, I strongly recommend hosting your own instance of this tool, which you can tweak to your liking: remove unnecessary UI elements / headers / footers, set the color scheme, and so on.