Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. function doResize(){
  2.  
  3. var myWidth = $(window).width();
  4. var myHeight = $(window).height();
  5. //alert('myHeight: ' + myHeight + 'myWidth: ' + myWidth);
  6.  
  7. // establish min sizes
  8. if (myHeight < 500){
  9. myHeight = 500;
  10. }
  11. if (myWidth < 1000){
  12. myWidth = 1000;
  13. }
  14.  
  15. var newHeight = Number(myHeight - 145) + 'px';
  16. $('#flashHolder').css({'height':newHeight}).css({'width':myWidth}).css({'top':'-12px'});
  17.  
  18. // override placeFooter function
  19. window.placeFooter = function(){ };
  20.  
  21. // manually reposition footer
  22. var newSuppplementaryY = String( Number(myHeight - 30) + 'px');
  23. $('#supplementary').css({'position':'absolute'}).css({'top':newSuppplementaryY});
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement