Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Joyride init problem #123

Closed
tolisp opened this issue Oct 7, 2014 · 3 comments
Closed

Joyride init problem #123

tolisp opened this issue Oct 7, 2014 · 3 comments

Comments

@tolisp
Copy link

tolisp commented Oct 7, 2014

Hi Ole, first of all thanks for an really nice job on this theme. I am trying to init the joyride but get an error
Uncaught TypeError: undefined is not a function in the dev console and i see that in the app.js the error is here
$('#start-jr').on('click', function() {
$(document).foundation('joyride','start');
});
all i did since i uploaded and installed the theme was to run npm install in the root folder of the theme and then grunt. After the errors i also tried to add the joyride js in the gruntfile like this
dist: {
src: [
'js/foundation/js/foundation.min.js',
'js/foundation/js/foundation.joyride.min.js',
'js/custom/*.js'
],

Any ideas?

Thanks

@ghost
Copy link

ghost commented Oct 7, 2014

I had the same issues. Just change every $ to JQuery
$('#start-jr').... become JQuery$('#start-jr')....

@tolisp
Copy link
Author

tolisp commented Oct 8, 2014

Found the issue, i should have not added this in app.js but replace the joyride-demo.js with your code.

Thanks a lot, now i need to see how to include external js (slick) slider...

@olefredrik
Copy link
Owner

👍

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

No branches or pull requests

2 participants