adding jquery plugin to Zurb's Foundation Fram

2019-07-13 11:34发布

I am working with Zurbs's Foundation rapid prototyping framework and very good it is to. I am wondering the proper way to integrate another jquery plugin into it.

foundations is very picky about how you include other plugins. Part of the frameworks is an app.js file full of functions. Should I be adding my new functions direct to there?

Whilst I do understand js (reading ok) I am no js expert so a clearly explained answer please.

Thanks

(site working on is vincentstephens.co.uk/vs5.1/portfolio - trying to integrate a time line slider located at vincentstephens.co.uk/vs5.1/portfolio/portfolio.html)

1条回答
劳资没心,怎么记你
2楼-- · 2019-07-13 12:23

Not sure if I'm missing out on something but you don't need to integrate it to foundation. If you have another jquery plugin in just include the .js as any script and you're done.

The foundation.min.js is a minified file with all foundation plugins as well as jquery - you might want to minify your plugin and add to this file for the purpose of optimizing.

The app.js is where you initialize the plugins. This is generally the file you fiddle your own settings and preferred default values, not touching the foundation.min.js.

查看更多
登录 后发表回答