Closed agirton closed 11 years ago
Just a thought, could this be used as "Pull to Load More" at the bottom of a listview? An option to do so would be cool.
@gogobu there is a callback called reloadEl that instead of reloading the page will allow you to do run any other javascript you would like, like loading in more HTML.
Sorry I wasn't clear enough. What I meant was instead of pull from the top of the page, a "pull to load more" at the bottom of the page to load more list items. (smile)
These commits change the script to a jQuery plugin to make Hook.js more extendable. I also changed the spinner from a gif to the Hook logo. I'm using css3 animations to spin the logo. Can certainly remove this, and resend pull request if needed. Also the plugin will require the use of mousewheel.js if developer wants support for mouse wheel. Still need to update for using css transitions instead of animate, but this at least a start. Since there is a callback this should fix issue #8. There is no Safari detection so fixes Issue #7. Fixes #6 the infinite reloading through using "window.location.reload(true);". Should also take care of some of the issues in #9 since it supports touch devices and mouse wheel.