Section 5/8 - Push Menu Bar


#1



Section 5/8 - Push Menu Bar


"Unterminated string constant" appears as a comment. I cannot understand why this comment appears and why I can not open the menu push bar. Please can somebody help.

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

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

$(document).ready(main);


#2

Hi this line

$('body).animate({

you didn't close the ' ' around body


#3

Thank you for your help to enable opening the menu.

May I please ask if you would know why I cannot close the menu now. Thank you.

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

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

$(document).ready(main);`


#4

This line

left: 'Opx'

you put Opx instead of 0px .. YOu put the letter O


#5

Thank you very much for your help - very frustrating when you can't see the errors.

Cheers

Brendan