Showing an Error when I think I'm Correct!


#1


var main = function() {
	  $('.icon-menu').click(function() {
		$('.menu').animate({
		  left: "0px"
		}, 200);

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

	  $('.icon-close').click(function() {
		$('.menu').animate({
		  left: "-285px"
		}, 200);

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

	$(document).ready(main);


The error : " Oops, try again. Add the line $(document).ready(main) "
Mustn't be there.. 'cuz I've already added it into my code.
Please. Help Me!

#2

@gyan_e14,

I think you should try a refresh Browser

++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.