1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Autofocus search if user-agent not a mobile device

This commit is contained in:
Cadence Ember 2021-04-10 01:04:00 +12:00
parent 54ae21685f
commit 848651757a
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
3 changed files with 13 additions and 3 deletions

View file

@ -11,9 +11,9 @@ block content
p You're in control. Watch things your way.
p Go on. What do you want to watch?
form(method="get" action="/search").encouraging-search-form
input(type="text" name="q" placeholder="I'd like to watch..." autocomplete="off").search.base-border-look
input(type="text" name="q" placeholder="I'd like to watch..." autocomplete="off" autofocus=!mobile).search.base-border-look
p: a(href="/cant-think") ...can't think of anything?
.encouraging-message
p CloudTube gets better with your help. I can't deal with issues that I don't know about.
p: a(href="https://todo.sr.ht/~cadence/tube") Report a problem or missing feature
p: a(href="https://todo.sr.ht/~cadence/tube") Report a problem or missing feature