Resoponsive sidebar menu

Resoponsive sidebar menu

Hello

I'm quite new to jQuery and I would like to change the following code that it fits my needs:
http://jsfiddle.net/KyleMit/T5vBR/

It is working quiet good but a problem appears when I'm resizing the window under 500px:

When I'm clicking onto the button (?) the menu appears. If I close the menu and enlarge the window the menu and the button has disappeared and I've got a problem. How can I avoid this?

I would like to change the code, that it adds a new class to the Menu container acording to the windows size but keeping the functinality of the button.

Can you help me out?

Thank you a lot in advance!
    • Topic Participants

    • luke