mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 12:58:40 +00:00
fix: navbar search form
This commit is contained in:
parent
b50b3ee67c
commit
02f181cc5b
@ -208,6 +208,15 @@ mb-4" role="navigation">
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
<?php else: ?>
|
||||||
|
<form id="form-search-problem" class="form-inline my-2 my-lg-0" method="get">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="text" class="form-control" name="search" id="input-search" placeholder="<?= UOJLocale::get('search')?>" />
|
||||||
|
<div class="input-group-append">
|
||||||
|
<button type="submit" class="btn btn-search btn-outline-primary" id="submit-search"><span class="glyphicon glyphicon-search"></span></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -216,9 +225,12 @@ mb-4" role="navigation">
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var zan_link = '';
|
||||||
|
</script>
|
||||||
|
|
||||||
<?php if (!isset($REQUIRE_LIB['bootstrap5'])): ?>
|
<?php if (!isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var zan_link = '';
|
|
||||||
$('#form-search-problem').submit(function(e) {
|
$('#form-search-problem').submit(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user