Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var $window = $(window);
- $window.on('resize', function() {
- windowsize = $window.width();
- if (windowsize <= 640) {
- $(".menu-icon").on("click", function(e) {
- e.preventDefault();
- $('body').append('small ');
- });
- }
- if (windowsize >= 641) {
- $(".menu-icon").on("click", function(e) {
- e.preventDefault();
- $('body').append('big');
- });
- }
- }).resize();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement