- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Can't make javascript EasyAsPie menu to work
When the menu turn into the mobile menu it won’t works.
Although in the demo page works when I try to replicate it gives me javascript errors.
Can some one help me?!
Original page: https://github.com/chrisdivyak/EasyAsPie
it gives me javascript errors.
What are the errors?
in my website only gives:
Uncaught TypeError: undefined is not a function
refering to the function that calls the EasyAsPie javascript $(‘nav’).easyPie({})
in codepen:
Uncaught ReferenceError: $ is not defined
index.html:433 Uncaught TypeError: undefined is not a function
if you open the codepen you can see
So where in all that JS is easyPie
defined?
A little code tidying would help.
Also, the Js in Codepen throws other errors. if you “Analyse JS”.
Ok i made the js on the pen more visible
http://codepen.io/Lucati/pen/gbxpYZ
there is an easyPie() function
I think the problem is in this line but i don’t now enough to correct it
(jQuery)(function ($) {
$.fn.extend({
easyPie: function (options) {
If you click the ‘Gear’ icon in the Js section and hit the ‘Analyse JS’ button you can see more than a few ‘Warning/Error’ messages.
Frankly, I don’t know enough (any) JS to offer any othr help but it might point you in the right direction.
Or perhaps another JSLint type option?
ok thank you anyway.
I have made a working fiddle of the Easy As Pie menu. Not sure why it wasn’t working on codepen but there were a few updates recently. I hope this helps. http://jsfiddle.net/mydkj84x/