sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.29k stars 633 forks source link

Feature Request: Linking of large-size simulations #772

Closed TimFFischer closed 2 years ago

TimFFischer commented 2 years ago

My students developed digital circuits of SPI, I2C periperals, which use multiple subcircuits. I would like to implement these into a webpage in order to describe and explain these. Unluckily, the URL export of some simulations exceed the 2048 character limit, even in the compressed ctz data format. Theoretically, it is possible to save it locally of via Dropbox.

But is there a way to "autoload" simulations e.g. from an public shared dropbox file or from an other txt link (like from a txt stored in github)?

pfalstad commented 2 years ago

yes, like this:

.../circuitjs1.html?startCircuitLink=(URL)

but the URL must be on dropbox, or the server it's on must be set up to allow CORS access. Putting it on dropbox is probably the simplest.

pfalstad commented 2 years ago

github pages will also work, apparently.

TimFFischer commented 2 years ago

This is great and works. Thanks!

Could you correct your example link to .../circuitjs.html?startCircuitLink=(URL) - so without the 1 ;-)