miao-plugin/resources/stat/abyss-pct.html

56 lines
2.0 KiB
HTML
Raw Normal View History

{{extend defaultLayout}}
{{block 'css'}}
<link rel="stylesheet" type="text/css" href="{{_res_path}}/stat/common.css?v=1.0"/>
<link rel="stylesheet" type="text/css" href="{{_res_path}}/stat/abyss-pct.css?v=1.0"/>
{{/block}}
{{block 'main'}}
<div class="info_box">
<div class="head-box type{{bgType}}">
{{if chooseFloor == -1}}
<div class="title">深渊出场率统计</div>
<div class="label">全角色出场率统计(出场记录/总记录)</div>
{{else}}
<div class="title">深渊第{{floorName[chooseFloor]}}出场率</div>
<div class="label">全角色出场率统计(出场记录/总记录)</div>
{{/if}}
<img class="genshin_logo" src="{{_sys_res_path}}/genshin/roleAll/原神.png"/>
</div>
<div class="cont msg-cont">
<div class="cont-title">深渊出场率统计</div>
<div class="cont-body">
<ul class="cont-msg">
<li>数据来自<strong>胡桃API</strong>为Snap Genshin用户自主上传的角色池信息感谢SG团队</li>
<li>百分比基于全部上传用户的数据进行统计,结果供参考</li>
<li>由于是用户自主上传,数据可能有一定滞后。出场率会在深渊开启后一段时间逐步稳定</li>
<li>数据最后更新时间:{{lastUpdate}}</li>
</ul>
</div>
</div>
<% let pct = function (num) {
return (num * 100).toFixed(2);
} %>
{{each abyss ds}}
{{if chooseFloor == -1 || chooseFloor == ds.floor}}
<div class="info_box_border">
<div class="line_box">
<span class="line"></span>
<span class="text">第{{floorName[ds.floor]}}</span>
<span class="line"></span>
</div>
<div class="card-list">
{{each ds.avatars char}}
<div class="item star{{char.star == 4? 4:5}}">
<img class="role"
src="{{_sys_res_path}}/genshin/logo/role/{{char.name}}.png"
/>
<div class="num_name">{{pct(char.value)}}%</div>
</div>
{{/each}}
</div>
</div>
{{/if}}
{{/each}}
</div>
{{/block}}