Code Monkey home page Code Monkey logo

de-pagify's Introduction

De-Pagify v2.0 (Infinite Scroll)

De-pagify let's you easily enable endless scroll for paged sites such as fmylife, digg, failblog to enable functionality similar to Bing image search on any site that has a More », Next » or similar link.

The latest code & documentation will always be available at http://github.com/ericclemmons/de-pagify, but is also available at http://plugins.jquery.com/project/de-pagify

Infinite Scroll Demo

Usage

Typical usage will follow the pattern:

jQuery(container).depagify(trigger, options);
  • container: Container for content on the remote page and where it will be placed on the local page.

  • trigger: Link to "click" for the next page's content

Options

  • find: (defaults to *) Selector or function to filter remote content

  • threshold: (defaults to 0.90) Float, integer, string or function to determine when to load remote content. The default is 0.90, which is 90%. You can use 167, for example, to load content when the user scrolls within 167px of the bottom of the page. Also, you can specify a selector (such as #footer) to load content when the #footer element scrolls into view. Finally, you can write your own function that returns true whenever you'd like load the next page's content.

  • effect: (defaults to $(this).show()) Function to transition newly loaded content. (New content is wrapped by $('<div />).hide())

  • events: request & success events are triggered before and after the GET request.

Bookmarklets

Conclusion

If you can help in any way, please fork this project or provide feedback.

Bitdeli Badge

de-pagify's People

Contributors

bitdeli-chef avatar ericclemmons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

de-pagify's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.