feat: add search form
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-25 18:38:19 +08:00
parent dcb4417e75
commit d101ca2c1e
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -285,6 +285,17 @@ $('#input-show_submit_mode').click(function() {
</div>
<aside class="col mt-3 mt-md-0">
<form method="get">
<div class="input-group mb-3">
<input id="search-input" name="search" type="text" class="form-control" placeholder="搜索">
<button class="btn btn-outline-secondary" type="submit">
<i class="bi bi-search"></i>
</button>
</div>
</form>
<script>$('#search-input').val(new URLSearchParams(location.search).get('search'));</script>
<?php
uojIncludeView('sidebar', array());
?>