Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: can I use without node.js ? #328

Open
LazarenkoA opened this issue Jan 27, 2022 · 1 comment
Open

Question: can I use without node.js ? #328

LazarenkoA opened this issue Jan 27, 2022 · 1 comment

Comments

@LazarenkoA
Copy link

In this example, I want to load json from a file or from a string, is it possible?
https://github.com/tgdwyer/WebCola/blob/master/website/examples/smallworldwithgroups.html

@FalseProtagonist
Copy link

Webcola is able to run in the browser, this is not really to do with this library just how the web platform works.

If you want to load json in a browser, then you need to either put the file in a place where the web page is able to access it (in the public folder that index.html is in, usually) or put the data into the source code (just copy and paste it in and assign it to a variable).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants