lvandeve/logicemu

Feature request: embeddable/web page plugin

Opened this issue · 1 comments

Would it be possible to use logicemu as a plugin for a web page, to embed interactive logic circuits between paragraphs on a site?

I think this could be accomplished through a special URL with parameters to control everything the buttons toolbar normally would, such as https://lodev.org/logicemu/embed?source=<base64 encoded source file>&theme=<some theme>&autostart=true&speed=fast&render=graphical that could be embedded in an iframe. There could also be a link for 'open in logicemu' that opens to the full-page app that already exists.

If CORS issues get in the way then an idea is a replacement main.js that instead of rendering in the <body>, only renders in marked <div>s which contain the source.

Sorry -- probably a duplicate of #2 -- but I'd like to share the ideas