统一格式

This commit is contained in:
2025-05-01 16:43:57 +08:00
parent 36cd4dbe85
commit 7c01920442

View File

@@ -1,6 +1,7 @@
<?php $show_title="$MSG_SOURCE - $OJ_NAME"; ?>
<?php include("template/$OJ_TEMPLATE/header.php");?>
<?php require_once('./include/const.inc.php');?>
<div class="padding">
<div style="margin-top: 0px; margin-bottom: 14px; padding-bottom: 0px; " >
<p class="transition visible">
@@ -22,7 +23,7 @@
// 生成标签地图
// 为标签添加颜色样式
function colorize_tag($tag) {
global $color_theme;
$color_theme=Array("default","primary","success","info","warning","danger");;
$hash_num = hexdec(substr(md5($tag), 0, 7));
$label_theme = $color_theme[$hash_num % count($color_theme)];