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

Clarification needed: how can I run spin.js options file detailed on website? #393

Open
slferris opened this issue Jun 9, 2024 · 0 comments

Comments

@slferris
Copy link

slferris commented Jun 9, 2024

The instructions for spin.js under "Usage" on your website tell me to "Run the following code when the document has loaded:". I'm still new to javascript, so how and where do I do that in my project?

I tried placing the options code for the spinner from your website in my html, but it didn't work there. I also attempted to use a module with a script tag, but that doesn't work either. In both cases VS didn't like the "import {Spinner} from 'spin.js';" statement in the first line. I thought I needed to change 'spin.js' to './spin,js', but that didn't work either.

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

1 participant