mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 10:58: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()) {
|
if (UOJContext::isAjax()) {
|
||||||
die($msg);
|
die($msg);
|
||||||
} else {
|
} else {
|
||||||
|
requireLib('bootstrap5');
|
||||||
echoUOJPageHeader($title);
|
echoUOJPageHeader($title);
|
||||||
echo $msg;
|
echo $msg;
|
||||||
echoUOJPageFooter();
|
echoUOJPageFooter();
|
||||||
|
@ -135,20 +135,6 @@ mb-4" role="navigation">
|
|||||||
<?= UOJLocale::get('help') ?>
|
<?= UOJLocale::get('help') ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</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>
|
</ul>
|
||||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||||
<hr class="d-md-none text-muted">
|
<hr class="d-md-none text-muted">
|
||||||
|
Loading…
Reference in New Issue
Block a user