feat: add "Planet X, Andromeda" great divide user stats

This commit is contained in:
Index 2024-06-30 19:49:00 -05:00
parent f65d95bca2
commit 14250d1add

View file

@ -144,13 +144,23 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
} }
document.getElementById('p+greatdivide_card').innerHTML = ` document.getElementById('p+greatdivide_card').innerHTML = `
<div class="mb-1">
<b>
<i class="fa-duotone fa-eye text-center d-inline-block" style="width:1.2em"></i>
Last Round Seen
</b>
<span class="float-end">
${ (stats.LastRoundSeen === 0) ? '-' : stats.LastRoundSeen }
</span>
</div>
<hr class="mb-3 mt-2">
<div class="mb-1"> <div class="mb-1">
<b> <b>
<i class="fa-duotone fa-swords text-center d-inline-block" style="width:1.2em"></i> <i class="fa-duotone fa-swords text-center d-inline-block" style="width:1.2em"></i>
Kills Kills
</b> </b>
<span class="float-end"> <span class="float-end">
${stats.Kills.toLocaleString()} (${stats.UniqueKills.toLocaleString()} unique) ${stats.Kills.toLocaleString()} <small class="text-muted" style="font-size: 0.8rem;">(${stats.UniqueKills.toLocaleString()} unique)</small>
</span> </span>
</div> </div>
<div class="mb-1"> <div class="mb-1">
@ -207,6 +217,34 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
${stats.AirdropsCollected} ${stats.AirdropsCollected}
</span> </span>
</div> </div>
<hr class="mb-3 mt-2">
<div class="mb-1">
<b>
<i class="fa-solid fa-chart-pyramid text-center d-inline-block" style="width:1.2em"></i>
Monoliths Destroyed
</b>
<span class="float-end">
${stats.ObelisksDestroyed}
</span>
</div>
<div class="mb-1">
<b>
<i class="fa-duotone fa-block-question text-center d-inline-block" style="width:1.2em"></i>
Blocks Placed
</b>
<span class="float-end">
${stats.BlocksPlaced} (${stats.BlocksDestroyed} destroyed)
</span>
</div>
<div class="mb-1">
<b>
<i class="fa-duotone fa-head-side-brain text-center d-inline-block" style="width:1.2em"></i>
Headshots
</b>
<span class="float-end">
${stats.Headshots}
</span>
</div>
` `
const Script = document.createElement('script'); const Script = document.createElement('script');