flems embed in url

Flems.io is a single-file, embeddable Web sandbox. It keeps all its state in the URL, so just make your changes, copy the URL from the address bar, and send it wherever you please. Most popular link shorteners handle at least 4000 characters, which is enough for most examples.

Flems is easily embedded in your own pages, either in an iframe or using the JS API. To use the JS API simply do:

Official Intro Flem

Lets see if i can run this locally (304k of html to embed)

Flems Test

Works ok, just is missing the height on the main tabs.

Adding the script tags to the head breaks it. Adding it to the body makes the height too small. Adding it just before the html end tag.

You have to add a body height to this otherwise it gets all squished. so just add body { height:100vh; }

Do i frames ignore # fragments, i guess they do. I think its an issue with the local embed as it seems to work ok from the official site

Try this example

I'll try it as an index and see if that works.

Example without the .html file

It seems to work ok, just cant read the # fragment when running a local copy only from the https://flems.io/ site. Might be a bug.

Hacker News Clone


Flems Reddit Thread

Other Items in js
Page Views

This page has been viewed 29389 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote
For a long time it had seemed to me that life was about to begin - real life. But there was always some obstacle in the way, something to be gotten through first, some unfinished business, time still to be served, or a debt to be paid. Then life would begin. At last it dawned on me that these obstacles were my life.
Alfred D. Souza