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

WIP: Embedded Playground #4421

Open
wants to merge 4 commits into
base: 1.5.x
Choose a base branch
from
Open

WIP: Embedded Playground #4421

wants to merge 4 commits into from

Conversation

f3l1x
Copy link
Contributor

@f3l1x f3l1x commented Jan 24, 2021

According to internal discussion, here is PR with embedded playground.

To-do:

  • Introduce /embed/ page
  • Playground support /embed/ page
  • Button to generate embed link /embed/r/hhhhaaaasssshhhh

Code:

<iframe src="https://phpstan.org/embed/r/hhhhaaaasssshhhh" sandbox="allow-same-origin allow-scripts" style="width: 100%; height: {HEIGHT}px; border: 0; border-radius: 4px; overflow: hidden;"></iframe>

Demo:

Screenshot 2021-01-24 at 16 23 29

Screenshot 2021-01-24 at 17 43 28

Copy link
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woar this looks awesome <3

m=f.getElementsByTagName('script')[0];
o.async=1; o.src=t; o.id='fathom-script';
m.parentNode.insertBefore(o,m)
})(document, window, 'https://cdn.usefathom.com/tracker.js', 'fathom');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What benefits does this tracker bring?

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

Successfully merging this pull request may close these issues.

None yet

3 participants