Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

i wanna use the model that i have already made to a website but all files must be contained in the site no external iframes etc

19 views
Skip to first unread message

Nick Chatzoudas

unread,
Sep 6, 2024, 5:18:41 AM9/6/24
to netlogo-devel
i am having trouble finding the js file so i can import it into my html and run the model from there can someone point me in a direction??

Jason Bertsche

unread,
Sep 11, 2024, 5:47:37 PM9/11/24
to Nick Chatzoudas, netlogo-devel

Hi Nick,

If you want to control the NetLogo Web simulation engine through JavaScript, you can find the engine at this link and the compiler at this link.  However, depending on what you're trying to do, this might not be the most pleasant way to interact with NetLogo Web.

If you simply want to embed an existing NetLogo Web model into a web page, you can open it from netlogoweb.org, and then choose "Export: HTML" in the top-right of the model.  This will download your model as a standalone HTML file.  You can then embed that HTML file in an `iframe` on your web page.

Jason

On 9/6/24 4:18 AM, Nick Chatzoudas wrote:
i am having trouble finding the js file so i can import it into my html and run the model from there can someone point me in a direction?? --
You received this message because you are subscribed to the Google Groups "netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/fd67f0a3-97e7-4026-9891-9077ff3b1499n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages