-
Notifications
You must be signed in to change notification settings - Fork 30
/
jquery.listnav.pack-1.0.js
17 lines (16 loc) · 3.36 KB
/
jquery.listnav.pack-1.0.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
*
* jQuery listnav plugin
* Copyright (c) 2008 iHwy, Inc.
* Author: Jack Killpatrick
*
* Version 1.00 (10/02/2008)
* Requires jquery 1.2+ and jquery dimensions plugin OR jquery 1.2.6 (which includes dimensions plugin)
*
* Visit http://www.ihwy.com/labs/jquery-listnav-plugin.aspx for more information.
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(2($){$.16.17=2(f){3 g=$.1G({},$.16.17.1i,f);3 h=[\'A\',\'B\',\'C\',\'D\',\'E\',\'F\',\'G\',\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\',\'O\',\'P\',\'Q\',\'R\',\'S\',\'T\',\'U\',\'V\',\'W\',\'X\',\'Y\',\'Z\'];10 7.1j(2(){3 d,6,$6,$4,$9,11;11=7.11;d=$(\'#\'+11+\'-1H\');$6=$(7);3 e,12,p,q;e=[];12=0;p=j;q=\'\';2 1k(){d.1l(1m());$4=$(\'.k-4\',d).m(0,1);5(g.r)$9=$(\'.k-9\',d).m(0,1);$(\'.z\',$4).t(g.1n);1o();1p();1q();1r();5(!g.13)$6.u();5(!g.13)$(\'.v\',$4).n();5(g.18!=\'\')$(\'.\'+g.18,$4).m(0,1).19();w{5(g.13)$(\'.v\',$4).t(g.x);w{1a(3 i=0;i<e.y;i++){5(e[i]>0){$(\'.\'+h[i].14(),$4).m(0,1).19();1I}}}}}2 1s(){$9.1t({1b:$(\'.a\',$4).m(0,1).1J({1c:1d,1K:j}).1b-$9.1L({1c:j})})}2 1o(){3 a;$(\'8\',$6).1j(2(){a=$(7).1u().1M(/\\s+/g,\'\').14();5(a!=\'\')$(7).t(a.m(0,1))})}2 1q(){3 a=0;3 b;1a(3 i=0;i<h.y;i++){b=h[i].14();a=$(\'8.\'+b,$6).y;e.1e(a);12+=a;5(g.1v&&(a==0))$(\'.\'+b,$4).t(g.1w)}}2 1p(){$6.1l(\'<8 l="15" 1f="1x:1y">\'+g.1z+\'</8>\')}2 1g(a){10($(a).1N(\'v\'))?12:e[$.1O($(a).1A(\'l\').1B(\' \')[0].1P(),h)]}2 1r(){5(g.r){d.1C(2(){1s()})}5(g.r){$(\'a\',$4).1C(2(){3 a=$(7).1D().1h;3 b=($(7).1Q({1c:j})-1)+\'1R\';3 c=1g(7);$9.1t({1h:a,1E:b}).1u(c).u()});$(\'a\',$4).1S(2(){$9.n()})}$(\'a\',$4).19(2(){$(\'a.\'+g.x,$4).1T(g.x);3 a=$(7).1A(\'l\').1B(\' \')[0];5(a==\'v\'){$(\'8\',$6).u();$(\'8.15\',$6).n();p=j}w{5(p){$(\'8\',$6).n();p=1d}w 5(q!=\'\')$(\'8.\'+q,$6).n();3 b=1g(7);5(b>0){$(\'8.15\',$6).n();$(\'8.\'+a,$6).u()}w $(\'8.15\',$6).u();q=a}$(7).t(g.x);$(7).1U();10 1d})}2 1m(){3 a=[];1a(3 i=0;i<h.y;i++){5(a.y==0)a.1e(\'<a l="v" 1F="#">1V</a>\');a.1e(\'<a l="\'+h[i].14()+\'" 1F="#">\'+h[i]+\'</a>\')}10\'<o l="k-4">\'+a.1W(\'\')+\'</o><o 1f="1X:1Y"></o>\'+((g.r)?\'<o l="k-9" 1f="1x:1y; 1D:1Z; 1b:0; 1h:0; 1E:20;">0</o>\':\'\')}1k()})};$.16.17.1i={18:\'\',13:j,1v:j,1z:\'21 22 23\',1n:\'k-24\',x:\'k-25\',1w:\'k-26\',r:j}})(27);',62,132,'||function|var|letters|if|list|this|li|letterCount||||||||||true|ln|class|slice|hide|div|isAll|prevLetter|showCounts||addClass|show|all|else|selectedClass|length||||||||||||||||||||||||||||return|id|allCount|includeAll|toLowerCase|noMatch|fn|listnav|initLetter|click|for|top|margin|false|push|style|getLetterCount|left|defaults|each|init|append|createLettersHtml|lastClass|addLIClasses|addNoMatchLI|storeLetterCounts|bindHandlers|setLetterCountTop|css|text|flagDisabled|disabledClass|display|none|noMatchText|attr|split|mouseover|position|width|href|extend|nav|break|offset|border|outerHeight|replace|hasClass|inArray|toUpperCase|outerWidth|px|mouseout|removeClass|blur|ALL|join|clear|both|absolute|20px|No|matching|entries|last|selected|disabled|jQuery'.split('|'),0,{}))