77 lines
2.4 KiB
HTML
77 lines
2.4 KiB
HTML
<!--
|
|
Dereth Tracker Single-Page Application
|
|
Displays live player locations, trails, and statistics on a map.
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Dereth Tracker</title>
|
|
<!-- Link to main stylesheet -->
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Sidebar for active players list and filters -->
|
|
<aside id="sidebar">
|
|
<!-- Container for sort and filter controls -->
|
|
<div id="sortButtons" class="sort-buttons"></div>
|
|
|
|
<h2 id="activePlayersHeader">Active Mosswart Enjoyers</h2>
|
|
<!-- Total rares counter -->
|
|
<div id="totalRaresCounter" class="total-rares-counter">
|
|
🔥 Total Rares: <span id="totalRaresCount">Loading...</span>
|
|
</div>
|
|
<!-- Server KPH counter -->
|
|
<div id="serverKphCounter" class="server-kph-counter">
|
|
⚡ Server KPH: <span id="serverKphCount">Loading...</span>
|
|
</div>
|
|
<!-- Total kills counter -->
|
|
<div id="totalKillsCounter" class="total-kills-counter">
|
|
⚔️ Total Kills: <span id="totalKillsCount">Loading...</span>
|
|
</div>
|
|
|
|
<!-- Heat map toggle -->
|
|
<div class="heatmap-toggle">
|
|
<label>
|
|
<input type="checkbox" id="heatmapToggle">
|
|
🔥 Show Spawn Heat Map
|
|
</label>
|
|
</div>
|
|
|
|
<!-- Inventory search link -->
|
|
<div class="inventory-search-link">
|
|
<a href="#" id="inventorySearchBtn" onclick="openInventorySearch()">
|
|
📦 Inventory Search
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Text input to filter active players by name -->
|
|
<input type="text" id="playerFilter" class="player-filter" placeholder="Filter players..." />
|
|
|
|
|
|
<ul id="playerList"></ul>
|
|
</aside>
|
|
|
|
<!-- Epic rare notifications container -->
|
|
<div id="rareNotifications" class="rare-notifications"></div>
|
|
|
|
<!-- Fireworks container -->
|
|
<div id="fireworksContainer" class="fireworks-container"></div>
|
|
|
|
<!-- Main map container showing terrain and player data -->
|
|
<div id="mapContainer">
|
|
<div id="mapGroup">
|
|
<img id="map" src="dereth.png" alt="Dereth map">
|
|
<canvas id="heatmapCanvas"></canvas>
|
|
<svg id="trails"></svg>
|
|
<div id="dots"></div>
|
|
</div>
|
|
<div id="tooltip" class="tooltip"></div>
|
|
<div id="coordinates" class="coordinates"></div>
|
|
</div>
|
|
|
|
<!-- Main JavaScript file for WebSocket communication and UI logic -->
|
|
<script src="script.js" defer></script>
|
|
</body>
|
|
</html>
|