SHARE
TWEET

Untitled

a guest Sep 14th, 2017 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.  
  3. jQuery.event.add(window, "load", resizeFrame);
  4. jQuery.event.add(window, "resize", resizeFrame);
  5.  
  6. function resizeFrame()
  7. {
  8.     var h = $(window).height();
  9.     var w = $(window).width();
  10.     jQuery(this).css('height',(h < 1024 || w < 768) ? 500 : 400);
  11. }
  12.  
  13. jQuery("#list li").click(function(){resizeFrame();});
  14. </script>
RAW Paste Data
Top