Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed as wireframe ? #3

Open
tucq88 opened this issue Apr 10, 2018 · 5 comments
Open

Embed as wireframe ? #3

tucq88 opened this issue Apr 10, 2018 · 5 comments

Comments

@tucq88
Copy link

tucq88 commented Apr 10, 2018

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

@imbhargav5
Copy link
Member

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

@tucq88
Copy link
Author

tucq88 commented Apr 10, 2018

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

@imbhargav5
Copy link
Member

imbhargav5 commented Apr 11, 2018

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/

@tucq88
Copy link
Author

tucq88 commented Apr 11, 2018

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.

@imbhargav5
Copy link
Member

Awesome. :D Thank you!! 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants