Browse Source

added travis

krisk 7 years ago
parent
commit
1a67b2a1d5
3 changed files with 3 additions and 42 deletions
  1. 0 0
      .travis.yml
  2. 3 3
      README.md
  3. 0 39
      index.html

+ 0 - 0
.travis.yml


+ 3 - 3
README.md

@@ -1,8 +1,8 @@
+[![Build Status](https://secure.travis-ci.org/krisk/Fuse.png?branch=master)](http://travis-ci.org/krisk/Fuse)
+
 Fuse
 ====
 
-(info on Fuzzy-search: <http://en.wikipedia.org/wiki/Approximate_string_matching>)
-
 Fuse is a full JavaScript fuzzy-search implementation that searches accross the keys of every record in a list.
 
 #### Usage
@@ -81,7 +81,7 @@ The pattern string cannot exceed 32 characters.
 
 #### How does it do it?
 
-Currently, it uses a full Bitap algorithm [<http://en.wikipedia.org/wiki/Bitap_algorithm>], leveraging a modified version of the "Diff, Match & Patch" tool by Google [<http://code.google.com/p/google-diff-match-patch/>].
+Currently, it uses a full [Bitap algorithm](http://en.wikipedia.org/wiki/Bitap_algorithm "Bitap algorithm - wiki"), leveraging a modified version of the [Diff, Match & Patch](http://code.google.com/p/google-diff-match-patch/ "Diff, Match & Patch") tool by Google.
 
 #### To do
 

+ 0 - 39
index.html

@@ -1,39 +0,0 @@
-<!DOCTYPE>
-<html>
-  <body>
-  </body>
-  <script src="../books/javascript/lib/jquery-1.7.2.min.js"></script>
-  <script src="fuse.js"></script>
-  <script>
-
-    $(function() {
-
-      $.getJSON('../books/books.json', function(data) {
-        console.log('length', data.length);
-        var f = new Fuse(data, {
-          keys: ['title']
-        });
-        var r = f.search('Falen');
-        console.log(r);
-      });
-
-      $.getJSON('../books/books.json', function(data) {
-
-        var flattenedTitles = $.map(data, function(item, index) {
-          return item.title;
-        })
-
-      console.log(flattenedTitles);
-        var f = new Fuse(flattenedTitles);
-        var r = f.search('Falen');
-
-        $.each(r, function(item, index) {
-          console.log(flattenedTitles[index]);
-        })
-
-        console.log(r);
-      });
-
-    });
-  </script>
-</html>