Skip to content

Allows auto-completion of species in an input field

Notifications You must be signed in to change notification settings

plazi/taxomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

eac91b0 · Nov 6, 2024

History

62 Commits
Apr 11, 2023
Dec 14, 2019
Nov 6, 2024
Sep 30, 2019
Nov 6, 2024
Nov 6, 2024
Sep 30, 2019
Sep 30, 2019
Jan 10, 2023
Nov 6, 2024
Nov 6, 2024
Apr 11, 2023

Repository files navigation

taxomplete Build Status

Provides a text field to select a biological species.

It uses Awesomplete autocomplete widget and accesses plazi data on the LINDAS Linked Data Service.

Usage

Import the script as with:

<script src="https://plazi.github.io/taxomplete/taxomplete.js"></script>

You probably also want to use a css

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/awesomplete/1.1.2/awesomplete.css" crossorigin="anonymous" />

To activate the widget on a text field with id species-input you could use the following code:


<script>
    let input = document.getElementById("species-input");
    let taxomplete = new Taxomplete(input);
    taxomplete.action = function(value) {
        alert(value);
    }
</script>

Try it out: https://plazi.github.io/taxomplete/