Put your Glitch projects everywhere. Stretch and squeeze them to be juuust right. We hope you’ll put them in more places – we know we will.
You can generate an embed from Share → Embed Project
- ^ horizontal split view (becomes vertical on small screens)
- header-less design is more space efficient, less noisy
Hot new querystring customizations :
previewFirsttoggle showing the preview window before your code
attributionHiddenHiding attribution for orgs that want to keep things real corporate
sidebarCollapsedThe sidebar is open by default now (just like the regular editor), collapsing it in the preview lets it be that way in your embed (nice for single file examples)
embedPreviewSizeyou can drag to customize the size (width or height) of your preview window. It’s proportional so no matter what you do so it’ll always display properly on all screen sizes.
Glitch embeds now also have Embedly support. So you can embed your project into a blog post by just pasting the editor URL. Further customization can be done with the same url params. (still debugging this so YMMV for a bit)
If you’re currently using an embed in the wild it should continue to work, but I’d recommend creating a new embed code from the editor for the new features.