slash to search

This commit is contained in:
carson 2021-03-11 08:33:46 -07:00
parent de69e9c23d
commit 348d978fa5

View File

@ -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="&#128269; Docs Search" style="width:150px; padding: 6px; border: 1px solid #ccc; border-radius: 4px; margin-right: 6px" type="text" id="search"/>
placeholder="&#128269; / 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">