daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.     $('#div').hide();
  3.     $('#div').waitForImages(function() {
  4.         $('#div').fadeIn();
  5.     });
  6. })
  7.    
  8. $('body').waitForImages(
  9.  
  10. function() {
  11.     $('body').append('<p>Images loaded.</p>');
  12. }, function(loaded, total) {
  13.     $(this).css({
  14.         border: '1px solid #ccc'
  15.     });
  16.     $('span').html(parseInt(loaded / total * 100) + '% loaded.');
  17. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top