/* bootpag - jQuery plugin for dynamic pagination Copyright (c) 2015 botmonster@7items.com Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php Project home: http://botmonster.com/jquery-bootpag/ Version: 1.0.7 */ (function(h,q){h.fn.bootpag=function(p){function m(c,b){b=parseInt(b,10);var d,e=0==a.maxVisible?1:a.maxVisible,k=1==a.maxVisible?0:1,n=Math.floor((b-1)/e)*e,f=c.find("li");a.page=b=0>b?0:b>a.total?a.total:b;f.removeClass(a.activeClass);d=1>b-1?1:a.leaps&&b-1>=a.maxVisible?Math.floor((b-1)/e)*e:b-1;a.firstLastUse&&f.first().toggleClass(a.disabledClass,1===b);e=f.first();a.firstLastUse&&(e=e.next());e.toggleClass(a.disabledClass,1===b).attr("data-lp",d).find("a").attr("href",g(d));k=1==a.maxVisible? 0:1;d=b+1>a.total?a.total:a.leaps&&b+1