Skip to content

jordansinger/Hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hook.js

Pull to refresh. For the web. This rewrite is a work in progress and has only been tested on the latest Safari, Chrome, and Firefox. There are a few bugs that I'm currently working through with Firefox.

##There are 9 settings and 1 callback. Which are the following;

  • reloadPage: default is true, if false will reload element (note must also have reloadEl callback),
  • dynamic: default is true, if false you will need your own html,
  • textRequired: default is false, if true the dynamic text HTML will be added,
  • swipeDistance: default is 50, the amount of swipe distance on touch devices to fire reload,
  • loaderClass: default is hook-loader,
  • spinnerClass: default is hook-spinner,
  • loaderTextClass: default is hook-text,
  • loaderText: default is 'Reloading..' is only set when you set 'textRequired'
  • reloadEl: callback

##Outstanding issues:

  • Callback called more than once.

##ToDo's:

  • Convert from jQuery animate to css3 transitions for browsers that support it.

About

Pull to refresh for the web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •