rxjs-playground.github.io icon indicating copy to clipboard operation
rxjs-playground.github.io copied to clipboard

Embed as wireframe ?

Open tucq88 opened this issue 6 years ago • 5 comments

Is it possible ? It's more easier to people to interact with playground right on their website/article rather than redirect to playground website.

tucq88 avatar Apr 10 '18 07:04 tucq88

Definitely. It can be done. Would you like to attempt it?

imbhargav5 avatar Apr 10 '18 07:04 imbhargav5

Tried to embed with Medium but seems no luck T_T I'll try with simpler approach. But I think we should support medium :P

tucq88 avatar Apr 10 '18 15:04 tucq88

So perhaps we need to create a page which has a different layout that is easier to embed? It is embeddable but hard to work with. https://jsfiddle.net/17naowzm/

imbhargav5 avatar Apr 11 '18 06:04 imbhargav5

Yeah, I think just need to work out with the stye for keeping things simple. I think we

  • need to detect if page is loaded inside a iframe or not
  • if yes, load some extra appropriate styles that display better in an iframe

https://stackoverflow.com/questions/326069/how-to-identify-if-a-webpage-is-being-loaded-inside-an-iframe-or-directly-into-t

Just some idea, maybe I'll try this weekend.

tucq88 avatar Apr 11 '18 09:04 tucq88

Awesome. :D Thank you!! 💯

imbhargav5 avatar Apr 11 '18 10:04 imbhargav5