diff --git a/README.md b/README.md index b303453..28aa359 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,9 @@ prefixes: [], // Set an array of prefixes that should be counted for the prefix and the first word after the prefix ex: ['the', 'a', 'my'] filterSelector: '' // Set the filter to a CSS selector rather than the first text letter for each item }); + +# Showcase + +The following websites are currently using ListNav to filter their lists: + +[Santa Fe College](http://www.sfcollege.edu/az/) \ No newline at end of file diff --git a/bower.json b/bower.json index aab6a0e..c2c1772 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jquery-listnav", - "version": "2.4.8", + "version": "2.4.9", "dependencies": { "jquery": ">=1.3.2" }, diff --git a/css/listnav.css b/css/listnav.css index d61344e..528d15d 100644 --- a/css/listnav.css +++ b/css/listnav.css @@ -1 +1 @@ -.listNav,.ln-letters{overflow:hidden;}.listNavHide{display:none;}.listNavShow{display:list-item;}.letterCountShow{display:block;}.ln-letters a{font-size:0.9em;display:block;float:left;padding:2px 6px;border:1px solid silver;border-right:none;text-decoration:none;}.ln-letters .ln-last{border-right:1px solid silver;}.ln-letters a:hover,.ln-letters .ln-selected{background-color:#eaeaea;}.ln-letters .ln-disabled{color:#ccc;}.ln-letter-count{position:absolute;top:0;left:0;width:20px;text-align:center;font-size:0.8em;line-height:1.35;color:#336699;}/*# sourceMappingURL=listnav.css.map */ \ No newline at end of file +.listNav,.ln-letters{overflow:hidden}.listNavHide{display:none}.listNavShow{display:list-item}.letterCountShow{display:block}.ln-letters a{font-size:0.9em;display:block;float:left;padding:2px 6px;border:1px solid silver;border-right:none;text-decoration:none}.ln-letters .ln-last{border-right:1px solid silver}.ln-letters a:hover,.ln-letters .ln-selected{background-color:#eaeaea}.ln-letters .ln-disabled{color:#ccc}.ln-letter-count{position:absolute;top:0;left:0;width:20px;text-align:center;font-size:0.8em;line-height:1.35;color:#336699}/*# sourceMappingURL=listnav.css.map */ \ No newline at end of file diff --git a/demo/css/listnav.css b/demo/css/listnav.css index d61344e..528d15d 100644 --- a/demo/css/listnav.css +++ b/demo/css/listnav.css @@ -1 +1 @@ -.listNav,.ln-letters{overflow:hidden;}.listNavHide{display:none;}.listNavShow{display:list-item;}.letterCountShow{display:block;}.ln-letters a{font-size:0.9em;display:block;float:left;padding:2px 6px;border:1px solid silver;border-right:none;text-decoration:none;}.ln-letters .ln-last{border-right:1px solid silver;}.ln-letters a:hover,.ln-letters .ln-selected{background-color:#eaeaea;}.ln-letters .ln-disabled{color:#ccc;}.ln-letter-count{position:absolute;top:0;left:0;width:20px;text-align:center;font-size:0.8em;line-height:1.35;color:#336699;}/*# sourceMappingURL=listnav.css.map */ \ No newline at end of file +.listNav,.ln-letters{overflow:hidden}.listNavHide{display:none}.listNavShow{display:list-item}.letterCountShow{display:block}.ln-letters a{font-size:0.9em;display:block;float:left;padding:2px 6px;border:1px solid silver;border-right:none;text-decoration:none}.ln-letters .ln-last{border-right:1px solid silver}.ln-letters a:hover,.ln-letters .ln-selected{background-color:#eaeaea}.ln-letters .ln-disabled{color:#ccc}.ln-letter-count{position:absolute;top:0;left:0;width:20px;text-align:center;font-size:0.8em;line-height:1.35;color:#336699}/*# sourceMappingURL=listnav.css.map */ \ No newline at end of file diff --git a/demo/index.html b/demo/index.html index 363a32f..5a28139 100644 --- a/demo/index.html +++ b/demo/index.html @@ -204,6 +204,9 @@

The default configuration

  • Yarn - Retail
  • Yoga Instruction
  • Youth Organizations & Centers
  • +
  • Zuul
  • +
  • Zero
  • +
  • Zilch
  • @@ -279,6 +282,13 @@

    Override defaults and binding to multiple lists

  • Wines - Consultants
  • Wines - Retail
  • Woodworkers
  • +
  • X-Ray - Apparatus & Supplies (Manufacturers)
  • +
  • Yarn - Retail
  • +
  • Yoga Instruction
  • +
  • Youth Organizations & Centers
  • +
  • Zuul
  • +
  • Zero
  • +
  • Zilch


  • @@ -341,6 +351,13 @@

    Override defaults and binding to multiple lists

  • Wines - Consultants
  • Wines - Retail
  • Woodworkers
  • +
  • X-Ray - Apparatus & Supplies (Manufacturers)
  • +
  • Yarn - Retail
  • +
  • Yoga Instruction
  • +
  • Youth Organizations & Centers
  • +
  • Zuul
  • +
  • Zero
  • +
  • Zilch
  • @@ -491,6 +508,13 @@

    Using cookieName to save last click and utilizing an onCl
  • Wines - Consultants
  • Wines - Retail
  • Woodworkers
  • +
  • X-Ray - Apparatus & Supplies (Manufacturers)
  • +
  • Yarn - Retail
  • +
  • Yoga Instruction
  • +
  • Youth Organizations & Centers
  • +
  • Zuul
  • +
  • Zero
  • +
  • Zilch
  • @@ -606,6 +630,13 @@

    Using the includeOther and prefixes options

  • Whittier Daily News
  • Willits News
  • Winters Express
  • +
  • X-Ray - Apparatus & Supplies (Manufacturers)
  • +
  • Yarn - Retail
  • +
  • Yoga Instruction
  • +
  • Youth Organizations & Centers
  • +
  • Zuul
  • +
  • Zero
  • +
  • Zilch
  • @@ -706,14 +737,13 @@

    Worf

    includeAll: false, noMatchText: 'There are no matching entries.' }); - $('').listnav({ - }); $('#demoThree').listnav({ initLetter: 'c', includeNums: false }); $('#demoFour').listnav({ - cookieName: 'ln-demo5', + cookieName: 'cookie-demo', + includeAll: false, onClick: function(letter) { $(".myLastClicked").text(letter.toUpperCase()); } diff --git a/demo/js/jquery-listnav.js b/demo/js/jquery-listnav.js index c3aceb4..856d9a5 100644 --- a/demo/js/jquery-listnav.js +++ b/demo/js/jquery-listnav.js @@ -8,7 +8,7 @@ * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * -* Version 2.4.6 (10/07/14) +* Version 2.4.9 (11/03/14) * Author: Eric Steinborn * Compatibility: jQuery 1.3.x through 1.11.0 and jQuery 2 * Browser Compatibility: IE6+, FF, Chrome & Safari @@ -105,7 +105,7 @@ var cookieLetter = $.cookie(opts.cookieName); - if ( cookieLetter !== null ) { + if ( cookieLetter !== null && typeof cookieLetter !== "undefined" ) { opts.initLetter = cookieLetter; @@ -281,7 +281,7 @@ } return fullCount; } else { - el = '.ln-' + $(el).attr('class'); + el = '.ln-' + $(el).attr('class').split(' ')[0]; if (opts.dontCount) { count = $list.find(el).not(opts.dontCount).length; @@ -417,7 +417,7 @@ initLetter: '', includeAll: true, allText: 'All', - incudeOther: false, + includeOther: false, includeNums: true, flagDisabled: true, removeDisabled: false, diff --git a/demo/js/tinynav.min.js b/demo/js/tinynav.min.js new file mode 100644 index 0000000..74a0405 --- /dev/null +++ b/demo/js/tinynav.min.js @@ -0,0 +1,3 @@ +/*! http://tinynav.viljamis.com v1.2 by @viljamis */ +(function(a,k,g){a.fn.tinyNav=function(l){var c=a.extend({active:"selected",header:"",indent:"- ",label:""},l);return this.each(function(){g++;var h=a(this),b="tinynav"+g,f=".l_"+b,e=a("