From c1b33e55ce105957c4560fed0f2a5f887d97411f Mon Sep 17 00:00:00 2001 From: "Titus Wormer (from Travis CI)" Date: Mon, 4 Nov 2019 09:02:52 +0000 Subject: [PATCH] Deploy words/levenshtein-edit-distance to github.com/words/levenshtein-edit-distance.git:gh-pages --- .gitkeep | 0 index.css | 1 + index.html | 1 + index.js | 1 + 4 files changed, 3 insertions(+) create mode 100644 .gitkeep create mode 100644 index.css create mode 100644 index.html create mode 100644 index.js diff --git a/.gitkeep b/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/index.css b/index.css new file mode 100644 index 0000000..406a4bc --- /dev/null +++ b/index.css @@ -0,0 +1 @@ +body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;margin:3em auto;max-width:30em}output{font-weight:700} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..59de4ac --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +levenshtein-edit-distance

levenshtein-edit-distance

A quick demo of levenshtein-edit-distance.

Please raise any issues on GitHub.

Distance:

\ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..23a1b4b --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +!function(){"use strict";var t=function(t,n,u){var o,i,a,c,f,d,l,s;if(t===n)return 0;if(o=t.length,i=n.length,0===o)return i;if(0===i)return o;for(u&&(t=t.toLowerCase(),n=n.toLowerCase()),l=0;lc?d>c?c+1:d:d>f?f+1:d;return c},e=[],r=[],n=document.querySelectorAll("input"),u=n[0],o=n[1],i=document.querySelector("output");function a(){i.textContent=t(u.value,o.value)}u.addEventListener("input",a),o.addEventListener("input",a),a()}(); \ No newline at end of file