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,7 +285,18 @@ $('#input-show_submit_mode').click(function() {
</div> </div>
<aside class="col mt-3 mt-md-0"> <aside class="col mt-3 mt-md-0">
<?php
<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()); uojIncludeView('sidebar', array());
?> ?>
</aside> </aside>