mumuki / mumuki-laboratory

:microscope: Where students practice and receive automated and human feedback
http://mumuki.io
GNU Affero General Public License v3.0
203 stars 26 forks source link

Microbit Integration #1198

Open flbulgarelli opened 5 years ago

luchotc commented 5 years ago

Microbit only allows to embed a simplified project which can't be edited. (To be fair scratch does the same and i managed to find a workaround). I'll keep working on this one.

In the mean time, it can be tested by including:

<div style=\"position:relative;height:0;padding-bottom:70%;overflow:hidden;\">

<iframe style=\"position:absolute;top:0;left:0;width:100%;height:100%;\" src=\"https://makecode.microbit.org/#pub:_cowgDjPLk8yv\" frameborder=\"0\" sandbox=\"allow-popups allow-forms allow-scripts allow-same-origin\">
</iframe></div>\\n\\n<div style=\"position:relative;height:0;padding-bottom:81.97%;overflow:hidden;\">

<iframe style=\"position:absolute;top:0;left:0;width:100%;height:100%;\" src=\"https://makecode.microbit.org/---run?id=_LMqVDV7PqJpR\" allowfullscreen=\"allowfullscreen\" sandbox=\"allow-popups allow-forms allow-scripts allow-same-origin\" frameborder=\"0\">
</iframe>
</div>
luchotc commented 5 years ago

I've deployed a version which can be fully embedded: "https://luchotc.github.io/microbit-local/", but doesn't allow for the .hex code to be downloaded (It needs to run server-side for it).

luchotc commented 5 years ago

Pof link: https://mumuki.io/staging/exercises/5775