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

How to use gifuct-js in a jQuery page? #64

Open
terry2010 opened this issue Mar 8, 2024 · 1 comment
Open

How to use gifuct-js in a jQuery page? #64

terry2010 opened this issue Mar 8, 2024 · 1 comment

Comments

@terry2010
Copy link

I'm maintaining some very old projects that use jQuery.js as the base environment. I need to incorporate gifuct-js into these environments to add play/pause/progress bar functionality to GIFs.
I'm stuck at the first step. How can I import gifuct-js into a page that uses jQuery, and implement the functionality on a demo page?

Thank you very much.

@nathanmedz
Copy link

nathanmedz commented May 9, 2024

I used Browserify (https://browserify.org/)

browserify node_modules/gifuct-js/lib/index.js -o gifuct.js --standalone gifuct

and then you can directly include the output file as a script like normal (<script src="gifuct.js"></script>) and access the methods via the global gifuct

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