feat: Change - to _ for selector names

This commit is contained in:
sthag 2026-03-15 12:25:23 +01:00
parent 245227d7e9
commit d533563569
9 changed files with 16 additions and 16 deletions

View file

@ -9,7 +9,7 @@ tags:
{% block body %}
<main>
<form id="www-search" class="flex inline" action="https://duckduckgo.com/">
<form id="www_search" class="flex inline" action="https://duckduckgo.com/">
<input id="qrySearch" class="input_io" name="q" placeholder="Suchbegriff" type="text" required/>
<input class="button_io" value="Suchen" type="submit"/>
</form>
@ -65,7 +65,7 @@ tags:
return base + '?' + params.toString();
}
document.getElementById('www-search').addEventListener('submit', function (e) {
document.getElementById('www_search').addEventListener('submit', function (e) {
e.preventDefault();
const query = document.getElementById('qrySearch').value.trim();