feat: bootstrap5 msg page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-01-16 08:11:15 +08:00
parent 6e5c15c925
commit dc3515353e
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 1 additions and 14 deletions

View File

@ -5,6 +5,7 @@ class UOJResponse {
if (UOJContext::isAjax()) {
die($msg);
} else {
requireLib('bootstrap5');
echoUOJPageHeader($title);
echo $msg;
echoUOJPageFooter();

View File

@ -135,20 +135,6 @@ mb-4" role="navigation">
<?= UOJLocale::get('help') ?>
</a>
</li>
<?php if (!isset($REQUIRE_LIB['bootstrap5'])): ?>
<li class="nav-item">
<a class="nav-link" href="#" id="try-bs5">
<span class="glyphicon glyphicon-share"></span>
体验新版
</a>
<script>
$('#try-bs5').click(function() {
$.removeCookie('bootstrap4', { path: '/' });
location.reload();
});
</script>
</li>
<?php endif ?>
</ul>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<hr class="d-md-none text-muted">