summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-05-07 10:36:27 +0200
committerxengineering <me@xengineering.eu>2023-05-07 10:36:27 +0200
commit41b2ab145a685c1d55cff84c9b74a9eeabd6ebc7 (patch)
treea6ddd1c7c5ee3a285de99b248b6587b9589773b4
parent2357f619d3f29174a97c3b6a3eddb53ee34dd050 (diff)
downloadceres-41b2ab145a685c1d55cff84c9b74a9eeabd6ebc7.tar
ceres-41b2ab145a685c1d55cff84c9b74a9eeabd6ebc7.tar.zst
ceres-41b2ab145a685c1d55cff84c9b74a9eeabd6ebc7.zip
index.html: Remove autofocus to search field
This is useful for desktops but is annoying on mobile devices since a touchscreen keyboard is overlayed automatically and hides half of the index page.
-rw-r--r--data/templates/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/index.html b/data/templates/index.html
index 04711eb..0b97187 100644
--- a/data/templates/index.html
+++ b/data/templates/index.html
@@ -16,7 +16,7 @@
<main>
<p>Here are the available recipes 😋🍳🍔🍕🥘</p>
- <input id="search" onkeyup="filter()" type="text" placeholder="Search for a recipe ..." autofocus></input>
+ <input id="search" onkeyup="filter()" type="text" placeholder="Search for a recipe ..."></input>
<ul id="recipes">{{range .}}
<li><a href="./recipe?id={{.Id}}">{{.Title}}</a></li>{{end}}
</ul>