logicemu icon indicating copy to clipboard operation
logicemu copied to clipboard

Using only JavaScript for rendering and simulating

Open andre-dietrich opened this issue 6 years ago • 2 comments

Hi, is it possible to use your simulator and API for simulating single circuits only? I mean, if I have a string, can I call some api(string, container-id, other-settings...) function to accomplish that, without changing the url or requiring to show the the other UI stuff?

I would really like to use your lib for educational purposes...

Regards ,)

André

andre-dietrich avatar Dec 16 '18 19:12 andre-dietrich

Hi, that's probably possible with various modifications but not easy right now because so far it was made only with the full page application in mind, but that's a good idea! Maybe I'll split off an embeddable part in the future.

The strings exist (full code as well as compressed URL parameter), but the api function in that way not

lvandeve avatar Dec 22 '18 18:12 lvandeve

You could use LiaScript, as I would like to, to completely decouple your application from the educational contents.

See for example: https://liascript.github.io/course/?https://raw.githubusercontent.com/andre-dietrich/tau-prolog_template/master/README.md#3

or this list of templates, that can be used by other to develop their own online courses: https://liascript.github.io/course/?https://raw.githubusercontent.com/liaScript/templates/master/README.md#7

Regards ...

andre-dietrich avatar Dec 23 '18 12:12 andre-dietrich