Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $(".side-menu").addClass("js").before('<div class="menu"><a href="#" title="HOME">☰</a></div>');
- $(".menu").click(function(){
- $(".side-menu").toggle();
- });
- $(window).resize(function(){
- if(window.innerWidth > 500) {
- $(".side-menu").removeAttr("style");
- $(".menu").hide();
- }
- if(window.innerWidth < 500) {
- $(".menu").show();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement