Menu doesn't work, even when code check says it's right


#1

Interactive Website: Push Menu

Uncaught SyntaxError: Unexpected token {
this message seems to show up no matter what i do, and the program is saying the code is correct- although the menu button is COMPLETELY non-responsive.. i cannot open it, close it, nothing is responding.
PLEASE HELP! i'm so confused.


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

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

$(document).ready(main);


#2

Where is the function? :wink:


#3

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