Responsive menu: toggle adds inline styles
I am trying to create a simple responsive hamburger menu type:
http://codepen.io/bg17aw/pen/yOzvpE
However, since toggle adds inline styles of "display:none" this creates an issue where each time I re-size to mobile view (less than 768px) and press on the hamburger twice (once to show the menu, once to hide it), then re-size viewport to desktop view (above 768px), the navigation remains hidden because of the inline styles.
Any ideas, suggestions to solve this or just to improve the code would be highly appreciated.
Thank you!