2023-12-03 06:33:29 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh-CN">
|
2023-12-05 02:15:39 +00:00
|
|
|
|
2023-12-03 06:33:29 +00:00
|
|
|
<head>
|
2023-12-05 02:15:39 +00:00
|
|
|
<meta charset="utf-8" />
|
2023-12-03 06:33:29 +00:00
|
|
|
<title>Title</title>
|
|
|
|
<script src="../../js/tailwindcss-3.1.8.js"></script>
|
|
|
|
<script src="../../js/echarts.min.js"></script>
|
2023-12-05 02:15:39 +00:00
|
|
|
<link type="text/css" href="../../styles/public.css" rel="stylesheet" />
|
2023-12-03 06:33:29 +00:00
|
|
|
|
|
|
|
</head>
|
2023-12-05 02:15:39 +00:00
|
|
|
|
2023-12-03 06:33:29 +00:00
|
|
|
<body>
|
2023-12-05 02:15:39 +00:00
|
|
|
<div class="mx-auto flex w-[48rem] flex-col space-y-2 bg-gray-400 px-2 py-2">
|
|
|
|
<!-- START TEAM/DPS summary row -->
|
|
|
|
<div class="flex h-auto flex-col items-start justify-center space-y-4 rounded-lg bg-slate-600 py-6">
|
|
|
|
<!-- START character row -->
|
|
|
|
{% include "genshin/gcsim/characters.jinja2" %}
|
|
|
|
<!-- END character row -->
|
|
|
|
<!-- START summary DPS row -->
|
|
|
|
{% include "genshin/gcsim/summary.jinja2" %}
|
|
|
|
<!-- END summary DPS row -->
|
2023-12-03 06:33:29 +00:00
|
|
|
</div>
|
2023-12-05 02:15:39 +00:00
|
|
|
<!-- END TEAM/DPS summary row -->
|
|
|
|
<!-- START DPS distribution row -->
|
|
|
|
<div class="flex flex-row items-start justify-center space-x-2 rounded-lg">
|
|
|
|
<div class="flex h-56 w-1/2 items-center justify-center rounded-xl bg-slate-600" id="dps_by_character">
|
|
|
|
</div>
|
|
|
|
<div class="flex h-56 w-1/2 items-center justify-center rounded-xl bg-slate-600" id="dps_by_element">
|
|
|
|
</div>
|
2023-12-03 06:33:29 +00:00
|
|
|
</div>
|
2023-12-05 02:15:39 +00:00
|
|
|
<!-- END DPS distribution row -->
|
|
|
|
<!-- START Energy/Heal/Shield row -->
|
|
|
|
<div class="flex flex-row items-start justify-center space-x-2 rounded-lg">
|
|
|
|
{% include "genshin/gcsim/other_summary.jinja2" %}
|
2023-12-03 06:33:29 +00:00
|
|
|
|
2023-12-05 02:15:39 +00:00
|
|
|
</div>
|
|
|
|
<!-- END Energy/Heal/Shield row -->
|
|
|
|
<!-- START DPS line chart row -->
|
|
|
|
<div class="flex h-80 w-full flex-row items-start justify-center rounded-lg bg-slate-600" id="damage_overtime">
|
|
|
|
</div>
|
|
|
|
<!-- END DPS line chart row -->
|
2023-12-03 06:33:29 +00:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var data = JSON.parse('{{ extra | tojson }}')
|
|
|
|
// Initialize the echarts instance based on the prepared dom
|
2023-12-05 02:15:39 +00:00
|
|
|
var dpsByCharacter = echarts.init(document.getElementById('dps_by_character'));
|
|
|
|
dpsByCharacter.setOption({
|
|
|
|
series: [
|
|
|
|
{
|
|
|
|
type: 'pie',
|
|
|
|
data: data["character_dps"],
|
|
|
|
label: {
|
|
|
|
color: 'white'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
animation: false
|
|
|
|
});
|
|
|
|
var dpsByElement = echarts.init(document.getElementById('dps_by_element'));
|
|
|
|
dpsByElement.setOption({
|
|
|
|
series: [
|
|
|
|
{
|
|
|
|
type: 'pie',
|
|
|
|
data: data["element_dps"],
|
|
|
|
label: {
|
|
|
|
color: 'white'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
animation: false
|
|
|
|
});
|
2023-12-03 06:33:29 +00:00
|
|
|
var damageOvertime = echarts.init(document.getElementById('damage_overtime'));
|
|
|
|
damageOvertime.setOption({
|
|
|
|
xAxis: {
|
|
|
|
data: data["damage"]["xAxis"],
|
|
|
|
axisLabel: {
|
|
|
|
color: 'white',
|
2023-12-05 02:15:39 +00:00
|
|
|
interval: 19
|
|
|
|
},
|
|
|
|
axisTick: {
|
|
|
|
interval: 19
|
2023-12-03 06:33:29 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
yAxis: {
|
|
|
|
axisLabel: {
|
2023-12-05 02:15:39 +00:00
|
|
|
color: 'white',
|
|
|
|
formatter: function (value, index) {
|
|
|
|
return value / 10000 + "万";
|
|
|
|
}
|
2023-12-03 06:33:29 +00:00
|
|
|
}
|
|
|
|
},
|
2023-12-05 02:15:39 +00:00
|
|
|
grid: {
|
|
|
|
left: '3%',
|
|
|
|
right: '3%',
|
|
|
|
bottom: '3%',
|
|
|
|
containLabel: true
|
|
|
|
},
|
2023-12-03 06:33:29 +00:00
|
|
|
legend: {
|
|
|
|
textStyle: {
|
|
|
|
color: 'white'
|
2023-12-05 02:15:39 +00:00
|
|
|
},
|
2023-12-03 06:33:29 +00:00
|
|
|
},
|
2023-12-05 09:57:30 +00:00
|
|
|
series: data["damage"]["series"],
|
2023-12-03 06:33:29 +00:00
|
|
|
animation: false
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
2023-12-05 02:15:39 +00:00
|
|
|
|
2023-12-05 09:57:30 +00:00
|
|
|
</html>
|