Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement