Coder Social home page Coder Social logo

rpage's People

Contributors

acoulton avatar auxiliary avatar kenprice avatar mervit avatar

Stargazers

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

Watchers

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

rpage's Issues

The Function calculateWidth() fails in chrome

By li elements without inner span the function outerWidth() returns in chrome the value NaN. So the calculation of the width fails. I inserted if statement to check if the li-elements conatins a span element:

this.calculateWidth = function() { var width = 0; for (var i = 0; i < $container.find("li").length; i++) { if ($container.find("li").eq(i).children("a").length) { width += $container.find("li").eq(i).children("a").eq(0).outerWidth(); } else { width += $container.find("li").eq(i).children("span").eq(0).outerWidth(); } } return width; }

Available container width is calculated incorrectly.

In case if parent container have padding, we need to work out available space in it. So rather this:

this.makeResponsive = function() {
            ...
                while (width > this.els.parent().parent().outerWidth() - 10)

It should be this:

this.makeResponsive = function() {
            ...
                while (width > this.els.parent().parent().width() - 10)

Does not work properly in IE11

Hello
This a great script but does not work properly in IE11: pagination is always "narrow" and does not expand at high resolutions

check the screenshot of your demo page:
evczd

Inconsistent paging tabs in cross browser

page
when paging goes dynamic it has different behavior in FF/Chrome/latest browsers and IE8-9-10. Please see attached image. in FF its shows like 1...5 | 6 | ...9 in IE it shows 1...5 ...9

Can you please fix it, would be helpful to me..

Fix

Didn't work properly in chrome, with many pages.

edited the function calculateWidth. Now it's working correctly.
this.calculateWidth = function() { var width = 0; for (var i = 0; i < $container.find("li").length; i++) { if(!($container.find("li").eq(i).css('display') == 'none')) { width += $container.find("li").eq(i).children("a").eq(0).outerWidth(); width += $container.find("li").eq(i).children("span").eq(0).outerWidth(); } } return width; }

Feature Request: Lock one element from being removed

Hi! Great project, I like it and use it in a project already.
For another project I have the need to lock an element from being removed. Background is, I want to create a pagination for scrolling through football-matchdays of a league. One of the matchdays COULD be the actual day - today. No problem to highlight this day, but it must not be removed/hidden from the pagination at any circumstances.
I have tried to add this to the isRemovable function:

if (element.hasClass('pagination-lock'))
{
    return false;
}

It basically works, but under certain circumstances "..." are placed incorrectly.
Any chance to add this feature? Would be a great enhancement!
Thank you!
mothe

Takes couple of seconds to redraw

I really like the idea behind this project and I would like to use it on my websites, but I am struggling with one huge downside. The pagination takes couple of seconds to redraw when I change the size of its container (or browser). As you can imagine, no one should have something that slow on their website. Have anyone noticed this issue? Is there a way to speed it up?

Page Freeze when too much pages

Hello, thanks for your plugin. I found a problem when too much pages about ~250 plugin freezes page for 5-10 seconds...maybe you know how to fix it? Thanks

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.