Oops, try again. Add the line $(document).ready(main)


#1

Oops, try again. Add the line $(document).ready(main)
i think there is a bug with the push menu course on 2. program skeleton. i tried to copy everything exactly and it still doesn't work....

var main = function() {
  /* Push the body and the nav over by 285px over */
  $('.icon-menu').click(function() {
    $('.menu').animate({
      left: "0px"
    }, 200);

    $('body').animate({
      left: "285px"
    }, 200);
  });

  /* Then push them back */
  $('.icon-close').click(function() {
    $('.menu').animate({
      left: "-285px"
    }, 200);

    $('body').animate({
      left: "0px"
    }, 200);
  });
};


$(document).ready(main);

#2

Hi Vlux315,

You're on exercise 2, the first exercise where you do anything here.
Delete everything inside your main function and leave just the skeleton of the code, and you'll pass.


#3

oh..... clearly i didn't read it correctly.