Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $(document).ready(function() {
  2. var $window = $(window);
  3.  
  4. $window.on('resize', function() {
  5. windowsize = $window.width();
  6.  
  7. if (windowsize <= 640) {
  8. $(".menu-icon").on("click", function(e) {
  9. e.preventDefault();
  10. $('body').append('small ');
  11. });
  12. }
  13.  
  14. if (windowsize >= 641) {
  15. $(".menu-icon").on("click", function(e) {
  16. e.preventDefault();
  17. $('body').append('big');
  18. });
  19. }
  20.  
  21.  
  22. }).resize();
  23.  
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement