Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($){
- $.rdWindow = {
- timer: null,
- width: 0,
- height: 0
- };
- })(jQuery);
- $(window).on({
- resize: function(e) {
- var self = $(this);
- clearTimeout($.rdWindow.timer);
- $.rdWindow.timer = setTimeout(
- function(){
- $.rdWindow.width = self.width();
- $.rdWindow.height = self.height();
- console.log($.rdWindow);
- },
- 1000);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement