mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
slash to search
This commit is contained in:
parent
de69e9c23d
commit
348d978fa5
@ -19,7 +19,8 @@
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
|
||||
</head>
|
||||
<body hx-ext="class-tools, preload">
|
||||
<body hx-ext="class-tools, preload" _="on keyup[key is '/'] call #search.focus()" >
|
||||
|
||||
<div class="top-nav">
|
||||
<div class="c">
|
||||
<div class="menu">
|
||||
@ -54,7 +55,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<input _="on keyup[key is 'Escape'] or click elsewhere call me.blur() then set my.value to ''"
|
||||
placeholder="🔍 Docs Search" style="width:150px; padding: 6px; border: 1px solid #ccc; border-radius: 4px; margin-right: 6px" type="text" id="search"/>
|
||||
placeholder="🔍 / to Search Docs" style="width:150px; padding: 6px; border: 1px solid #ccc; border-radius: 4px; margin-right: 6px" type="text" id="search"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="github-stars">
|
||||
|
Loading…
x
Reference in New Issue
Block a user