File size: 5,309 Bytes
b61cc42 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jailbreak Trading Data Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<link href="styles.css" rel="stylesheet">
<script defer src="script.js"></script>
</head>
<body class="bg-gray-100 min-h-screen">
<nav class="bg-indigo-600 text-white p-4 shadow-lg">
<div class="container mx-auto flex justify-between items-center">
<h1 class="text-2xl font-bold">Jailbreak Trading Analytics</h1>
<div class="hidden md:block">
<span id="lastUpdated" class="text-indigo-200"></span>
</div>
</div>
</nav>
<div class="container mx-auto p-4">
<div class="bg-white rounded-lg shadow-lg p-6 mb-6">
<div class="flex flex-col md:flex-row justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-700">Trading Data Overview</h2>
<div class="flex space-x-2 mt-4 md:mt-0">
<input type="text" id="searchInput" placeholder="Search items..." class="border rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<select id="typeFilter" class="border rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="all">All Types</option>
</select>
</div>
</div>
<div id="statsCards" class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6">
<div class="bg-blue-50 rounded-lg p-4 shadow border border-blue-200">
<h3 class="text-sm text-blue-700 font-medium">Total Items</h3>
<p id="totalItems" class="text-2xl font-bold text-blue-800">-</p>
</div>
<div class="bg-green-50 rounded-lg p-4 shadow border border-green-200">
<h3 class="text-sm text-green-700 font-medium">Total Trades</h3>
<p id="totalTrades" class="text-2xl font-bold text-green-800">-</p>
</div>
<div class="bg-purple-50 rounded-lg p-4 shadow border border-purple-200">
<h3 class="text-sm text-purple-700 font-medium">Avg. Demand Multiple</h3>
<p id="avgDemandMultiple" class="text-2xl font-bold text-purple-800">-</p>
</div>
<div class="bg-amber-50 rounded-lg p-4 shadow border border-amber-200">
<h3 class="text-sm text-amber-700 font-medium">Total Circulation</h3>
<p id="totalCirculation" class="text-2xl font-bold text-amber-800">-</p>
</div>
</div>
<div class="overflow-x-auto">
<table id="tradingTable" class="min-w-full bg-white">
<thead>
<tr class="bg-gray-100 text-gray-600 uppercase text-sm leading-normal">
<th class="py-3 px-6 text-left cursor-pointer hover:bg-gray-200" data-sort="Name">Name <span class="sort-icon"></span></th>
<th class="py-3 px-6 text-left cursor-pointer hover:bg-gray-200" data-sort="Type">Type <span class="sort-icon"></span></th>
<th class="py-3 px-6 text-right cursor-pointer hover:bg-gray-200" data-sort="TimesTraded">Times Traded <span class="sort-icon"></span></th>
<th class="py-3 px-6 text-right cursor-pointer hover:bg-gray-200" data-sort="UniqueCirculation">Circulation <span class="sort-icon"></span></th>
<th class="py-3 px-6 text-right cursor-pointer hover:bg-gray-200" data-sort="DemandMultiple">Demand Multiple <span class="sort-icon"></span></th>
</tr>
</thead>
<tbody id="tableBody" class="text-gray-600 text-sm">
<tr>
<td colspan="5" class="text-center py-4">Loading data...</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div class="bg-white rounded-lg shadow-lg p-6">
<h2 class="text-xl font-semibold text-gray-700 mb-4">Top 10 by Demand Multiple</h2>
<div class="h-64" id="demandChart"></div>
</div>
<div class="bg-white rounded-lg shadow-lg p-6">
<h2 class="text-xl font-semibold text-gray-700 mb-4">Distribution by Type</h2>
<div class="h-64" id="typeChart"></div>
</div>
</div>
</div>
<footer class="bg-gray-800 text-white p-4 mt-8">
<div class="container mx-auto text-center">
<p>Jailbreak Trading Data Visualization - Data refreshed daily</p>
</div>
</footer>
<!-- Include Chart.js -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</body>
</html>
|