mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 08:18:41 +00:00
feat: bootstrap5 msg page
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6e5c15c925
commit
dc3515353e
@ -5,6 +5,7 @@ class UOJResponse {
|
||||
if (UOJContext::isAjax()) {
|
||||
die($msg);
|
||||
} else {
|
||||
requireLib('bootstrap5');
|
||||
echoUOJPageHeader($title);
|
||||
echo $msg;
|
||||
echoUOJPageFooter();
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user