Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.fn.sizer = function(){
- var y = $(window).height();
- var x = $(window).width();
- $('#remove').remove();
- var append = '<span id="remove" style="position:fixed;bottom:15px;right:15px;background:#444;color:#ebebeb;padding:10px 15px;border-radius:1em;">';
- append += x + 'px || ' + y + 'px';
- append += '</span>';
- $(this).append(append);
- }
- $(document).ready(function(){
- $('body').sizer();
- });
- $(window).on('resize', function() {
- $('body').sizer();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement