Skip to content

Commit

Permalink
exmple n how to diable indexes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
retog committed Dec 14, 2019
1 parent 5b906d9 commit 778ef9d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions example/no-indexes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Taxomplete Example</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/awesomplete/1.1.2/awesomplete.css" integrity="sha256-WucYll9Mn2FE68lRHrTpBwzWC+Ra3IeEok0re4TBmgc=" crossorigin="anonymous" />
<script src="/taxomplete.js"></script>
</head>
<body>
<label for="species-input">Species</label> <input type="text" id="species-input"/>
<script>
let input = document.getElementById("species-input");
let taxomplete = new Taxomplete(input, "https://lindas-data.ch/sparql");
taxomplete.filterPattern = taxomplete.basicFilterPattern;
taxomplete.action = function(value) {
alert(value);
}
</script>
</body>
</html>

0 comments on commit 778ef9d

Please sign in to comment.