Miao-Yunzai/plugins/genshin/resources/StarRail/html/logCount/logCount.html

64 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="shortcut icon" href="#" />
<link rel="stylesheet" type="text/css" href="{{pluResPath}}html/logCount/logCount.css"/>
<link rel="preload" href="{{resPath}}/font/HYWenHei-55W.ttf" as="font">
<link rel="preload" href="{{resPath}}/font/tttgbnumber.ttf" as="font">
{{@headStyle}}
</head>
<body id="container" class="body_box">
<div class="container">
<div class="head_box">
<div class="id_text">ID: {{uid}}</div>
<h2 class="day_text">抽卡统计-{{typeName}}</h2>
<img class="starrail_logo" src="{{pluResPath}}img/other/logo.png"/>
</div>
{{each pool val}}
{{if val.roleNum > 0}}
<div class="pool_box">
<div class="title_box">
<div class="name_box">
<div class="title"><h2>「{{val.five}}」</h2></div>
<span class="label label_301">{{val.count}}抽</span>
</div>
{{if typeName != "常驻" || typeName != "新手"}}
<span class="date">{{val.start}} - {{val.end}}</span>
{{/if}}
</div>
<div class="list_box">
{{each val.role v}}
<div class="item">
<div class="bg{{v.rank_type}}"></div>
<span class="num {{if v.count>=5 && v.rank_type ==5}}life5{{/if}}">{{v.count}}</span>
{{if v.item_type=='角色'}}
<img class="role_img" src="{{pluResPath}}img/role/{{v.name}}.webp" onerror="whenError(this,'role')"/>
{{/if}}
{{if v.item_type=='光锥'}}
<img class="role_img" src="{{pluResPath}}img/weapon/{{v.name}}.webp" onerror="whenError(this)"/>
{{/if}}
</div>
{{/each}}
</div>
</div>
{{/if}}
{{/each}}
{{if isGroup }}
<div class="hasMore">*完整数据请私聊查看</div>
{{/if}}
<div class="logo">Created By Yunzai-Bot</div>
</div>
</body>
<script type="text/javascript">
function whenError(a, type) {
// a.onerror = null;
// if (type == "role") {
// a.src = "{{_res_path}}/genshin/logo/role/荧.png";
// } else {
// a.src = "{{_res_path}}/genshin/logo/weapon/旅行剑.png";
// }
}
</script>
</html>