Skip to content

andris9/JSHTMLPagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSHTMLPagination

JSHTMLPagination is a small library to achieve pagination of arbitrary HTML in modern browsers (currently supported Chrome and Safari).

Usage

To paginate you need a container which is going to be the pagination window and some text to paginate.

var pager = new JSHTMLPagination(container_elm, html_to_paginate);

To control the behavior you can use the following methods

pager.next(); // to show next page

and

pager.previous(); // to show previous page

See example.html for a better example or this demo.

How does it work?

JSHTMLPagination makes use of multi column support in CSS3. The text is divided into columns with the paging screen dimensions and layed out accordingly.

About

Paginate HTML in a webpage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published