Sha256: c3d553a19b3951e334eeaf49b41e01b1e72ce1300ce80b89a76c6d28089ece19

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

$(document).ready(function() {

  $('#pages-search-box').keyup(function() {
    var filter = $(this).val().toLowerCase();

    $('#pages-sidebar li').each(function() {
      var text = $(this).text().toLowerCase();

      if (text.match(filter)) {
        $(this).show()
      } else {
        $(this).hide();
      }
    });
  });

});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
miniwiki-0.0.1 lib/miniwiki/assets/javascripts/app.js