p'lisp

Embed an app

For: App makers, bloggers and teachers who want a running app on their own page.

You can put any built-in app, or any program you shared, on another site. Visitors play it right there, on the real calculator simulator. It is one <iframe>, and any site may use it.

Get the code

Choose what to show, press Copy, and paste the code into your page.

The code

This is the code the Embed button gives for Tally:

<iframe src="https://playplisp.com/embed/tally" width="430" height="447" title="Tally on p'lisp calc" style="border:0;max-width:100%;color-scheme:normal" loading="lazy" allow="autoplay"></iframe>

The same app with the screen alone:

<iframe src="https://playplisp.com/embed/tally?view=screen" width="480" height="248" title="Tally on p'lisp calc" style="border:0;max-width:100%;color-scheme:normal" loading="lazy" allow="autoplay"></iframe>

The address is https://playplisp.com/embed/ and then one of these:

Options

Add these to the address, after a ?, and join two with &.

viewShowsSize in the code
face (the default)The whole calculator430 by 447
screenThe screen alone480 by 248

theme picks the colours: midnight, vapor-sunset, vapor-arcade, ocean, forest, coal. Without it the page uses vapor-arcade. For example https://playplisp.com/embed/snake?view=screen&theme=ocean.

Size. The width and height in the code fit the view you chose. The calculator keeps its shape in whatever size you give it, at the top and centred across, and max-width:100% lets it shrink on a phone.

Sound. The app starts with the sound off. A visitor turns it on with SHIFT then 0. Keep allow="autoplay" in the code so the sound can play.

The built-in apps

AppIts id
Snakesnake
Paddlepaddle
Runnerrunner
Flameballflameball
Rock Paper Scissorsrps
Flapflap
Slipstreamslipstream
Deep divedeepdive
Resistorresistor
Tallytally
Timertimer
Converterconverter
Bitsbits
Plotplot
Stepssteps
Beambeam

What visitors get

Controlling it from your page

Not yet. Your page can show the embed but can't send it keys or read its screen. Only playplisp.com's own pages can do that.