Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var heightCheck = {
- size: $(window).height(),
- resize: function(){
- heightCheck.size = $(window).height();
- },
- debug: function(){
- console.log(this.size);
- }
- }
- $(window).resize(function() {
- heightCheck.resize();
- heightCheck.debug();
- });
- $(document).ready(function() {
- heightCheck.debug();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement