Update results live

This commit is contained in:
Mark Veidemanis 2022-08-03 07:20:30 +01:00
parent ef3022e1b3
commit 25433104d9
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 9 additions and 2 deletions

View File

@ -3,14 +3,21 @@
{% block content %}
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<div>
<form method="POST">
<form method="POST" hx-post="{% url 'search_drilldown' %}"
hx-trigger="change"
hx-target="#results"
hx-swap="innerHTML">
{% csrf_token %}
<div class="columns">
<div class="column">
<div class="field has-addons">
<div class="control is-expanded has-icons-left">
<input name="query" class="input" type="text" placeholder="msg: science AND nick: BillNye AND channel: #science">
<input
hx-post="{% url 'search_drilldown' %}"
hx-trigger="keyup changed delay:200ms"
hx-target="#results"
hx-swap="innerHTML" name="query" class="input" type="text" placeholder="msg: science AND nick: BillNye AND channel: #science">
<span class="icon is-small is-left">
<i class="fas fa-magnifying-glass"></i>
</span>