Forums

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

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #194432
    Lucati
    Participant

    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

    my try: http://codepen.io/Lucati/pen/gbxpYZ/

    #194434
    Paulie_D
    Moderator

    it gives me javascript errors.

    What are the errors?

    #194435
    Lucati
    Participant

    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

    #194441
    Paulie_D
    Moderator

    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”.

    #194470
    Lucati
    Participant

    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) {

    #194475
    Paulie_D
    Moderator

    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?

    #194479
    Lucati
    Participant

    ok thank you anyway.

    #196001
    mrchrisseattle
    Participant

    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/

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.