Repository navigation
Conversation
?embed strips the page chrome and reports the content height to the parent window via postMessage so the host iframe can auto-size.
Keep embed on static and error pages, bump asset versions, restrict framing to same origin, drop embed when not framed, and open external links in the top window without breaking in-page anchors.
Hide only the intro, circles and account buttons; PG links point at /pg/:pid, and on mobile the picker stacks below the content.
Article keeps its white background and padding so the content reads as a card on the host page's background.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an
?embedmode so pages can be iframed seamlessly into Parallel Squared (e.g./secret/6-11-maths-years).?embedhides the header, footer, beta banner, welcome and privacy modals (also on static and error pages)/secret/:pid); on mobile it stacks below the contentembed.jsposts the content height to the parent (parallel:embed:height) on resize, content changes, image/font load; skips0so submit reloads don't collapse the frameframe-ancestors 'self' http://localhost:*; loading?embedoutside a frame redirects to the normal page (so the privacy modal can't be skipped)embedsurvivesinsideIframedetection now adds a class instead of overwritingbody.classNameNo effect on normal page loads. Should deploy before the Parallel Squared
/secretroute.