Skip to content

2xAA/DefragJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DefragJS

A Vaporware defragger for JavaScript.

Usage

To use DefragJS you need to supply some arguments:

  • An element reference to use
  • An integer of the number of fragments to defragment
  • A boolean to allow or prevent autostarting
  • A callback function for the finalé
var defrag = new Defrag(document.getElementById('blocks'), 1000, true, function() { alert('All done!') });

If you choose not to autostart you can start DefragJS like so:

defrag.start();

Here's some example code: http://jsfiddle.net/2xaa/9psLqehh/

It's not a very accurate representation of the Windows Defragmenter, but hopefully I'll update this and make it more realistic someday.

Have fun!

About

A vaporware defragger for JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published