Pull to refresh for the web
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
.gitignore Hook 2.0: simplified Jul 5, 2016
LICENSE Hook 2.0: simplified Jul 5, 2016
README.md fixes #30 Feb 18, 2017
demo.html Hook 2.0: simplified Jul 5, 2016
hook.css Hook 2.0: simplified Jul 5, 2016
hook.js Hook 2.0: simplified Jul 5, 2016
hook.min.js Hook 2.0: simplified Jul 5, 2016

README.md

Hook

Pull to refresh for the web

Dependencies

  • jQuery

Settings

  • refresh: refreshes entire page, default is true, if false will call callback (must also have callback setting),
  • callback: custom callback function

Examples:

// Defaults
$('#hook').hook();

// Callback
$('#hook').hook({
  refresh: false,
  callback: function(){
    console.log('Hello, World!');
  }
});