Skip to content

iamwo0/loading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loading

#####This is a simple loading image demo ,you can use it in your xhr request easily .

Usage

  • First you should generate the cover box like this .

      var str = '<div id="over" class="over"></div><div id="layout" class="layout"><img src="images/loading.gif"/></div>';
    
  • Then append this javascript string into you page site, you can append it anywhere you want .

      $("body").append(str);
    
  • Then display the loading cover and image

      $("#layout").show();
    
      $("#over").show();
    
  • While request finished you can remove cover loading image easy. use :

      $("#over").remove();
    

By the way

  • This demo and README depend on jquery syntax , style use bootstrap ; but they are not necessary ,you can also use original javascript syntax to do this.

About

Loading image for website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors