mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-23 10:51:53 +00:00
fix(web): use hljs in bs5 pages
This commit is contained in:
parent
1279ccf711
commit
4d68b2237f
@ -222,7 +222,12 @@ EOD
|
||||
|
||||
<?php
|
||||
$REQUIRE_LIB['mathjax'] = '';
|
||||
$REQUIRE_LIB['shjs'] = '';
|
||||
|
||||
if (isset($REQUIRE_LIB['bootstrap5'])) {
|
||||
requireLib('hljs');
|
||||
} else {
|
||||
$REQUIRE_LIB['shjs'] = '';
|
||||
}
|
||||
?>
|
||||
|
||||
<?php echoUOJPageHeader(HTML::stripTags($problem['title']) . ' - ' . UOJLocale::get('problems::problem')) ?>
|
||||
|
@ -36,7 +36,7 @@
|
||||
$all_tags = DB::selectAll("select distinct tag from blogs_tags where blog_id in (select id from blogs where $blogs_cond)");
|
||||
|
||||
requireLib('mathjax');
|
||||
requireLib('shjs');
|
||||
requireLib('hljs');
|
||||
?>
|
||||
<?php echoUOJPageHeader('日志') ?>
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
$REQUIRE_LIB['mathjax'] = '';
|
||||
if (isset($REQUIRE_LIB['bootstrap5'])) {
|
||||
$REQUIRE_LIB['hljs'] = '';
|
||||
requireLib('hljs');
|
||||
} else {
|
||||
$REQUIRE_LIB['shjs'] = '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user