You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{% extends "/Bases/StandardWebPage.html.twig" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<script src="/Static/JS/ThirdParty/abcjs-basic.js"></script>
|
|
|
|
<div class="InnerContent">
|
|
|
|
<h1>Dance Search</h1>
|
|
|
|
<input type="text" id="SearchInput" placeholder="Search for a dance...">
|
|
|
|
<div id="AlgoliaResults"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
document.getElementById("SearchInput").addEventListener("input", (event) => {
|
|
|
|
const query = event.target.value;
|
|
|
|
if (query.trim().length > 0) {
|
|
|
|
searchDances(query);
|
|
|
|
} else {
|
|
|
|
document.getElementById("AlgoliaResults").innerHTML = "";
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|