FastAPI: use internal typeahead and remove jquery

Awesome!

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-06-29 22:44:41 -07:00
parent 2835dd89ea
commit 3a74f76ff9
6 changed files with 20 additions and 35 deletions

View file

@ -93,4 +93,14 @@
</p>
</div>
</div>
<!-- Bootstrap typeahead for the homepage. -->
<script type="text/javascript" src="/static/js/typeahead-home.js"></script>
<!-- Stub inline javascript with a nonce. Used for testing purposes. -->
<script type="text/javascript" nonce={{ request.user.nonce }}>
function NONEXISTENT() {}
NONEXISTENT();
</script>
{% endblock %}