Clean up debug logs and bump cache version
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="css/style.css?v=3">
|
<link rel="stylesheet" href="css/style.css?v=4">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Mobile Menu Toggle -->
|
<!-- Mobile Menu Toggle -->
|
||||||
@@ -603,6 +603,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="js/main.js?v=3"></script>
|
<script src="js/main.js?v=4"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -619,8 +619,6 @@
|
|||||||
|
|
||||||
const sorted = Object.entries(scores).sort((a, b) => b[1] - a[1]).slice(0, 3);
|
const sorted = Object.entries(scores).sort((a, b) => b[1] - a[1]).slice(0, 3);
|
||||||
|
|
||||||
console.log('updateSuggestions called, sorted:', sorted);
|
|
||||||
|
|
||||||
if (sorted.length === 0) {
|
if (sorted.length === 0) {
|
||||||
list.innerHTML = '<p style="color:var(--text-secondary);font-size:13px;">No synergy data available for selected operators. Try adding a main DPS like Laevatain or Yvonne.</p>';
|
list.innerHTML = '<p style="color:var(--text-secondary);font-size:13px;">No synergy data available for selected operators. Try adding a main DPS like Laevatain or Yvonne.</p>';
|
||||||
} else {
|
} else {
|
||||||
@@ -646,16 +644,11 @@
|
|||||||
`;
|
`;
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
||||||
console.log('Suggestions HTML set, list.children:', list.children.length);
|
|
||||||
|
|
||||||
// Add click listeners to suggestion items using event delegation
|
// Add click listeners to suggestion items using event delegation
|
||||||
list.onclick = function(e) {
|
list.onclick = function(e) {
|
||||||
console.log('list clicked, target:', e.target);
|
|
||||||
const item = e.target.closest('.suggestion-item');
|
const item = e.target.closest('.suggestion-item');
|
||||||
console.log('closest item:', item);
|
|
||||||
if (item) {
|
if (item) {
|
||||||
const operatorId = item.dataset.operatorId;
|
const operatorId = item.dataset.operatorId;
|
||||||
console.log('Clicked suggestion:', operatorId);
|
|
||||||
if (!selectedTeam.includes(operatorId) && selectedTeam.length < 4) {
|
if (!selectedTeam.includes(operatorId) && selectedTeam.length < 4) {
|
||||||
selectedTeam.push(operatorId);
|
selectedTeam.push(operatorId);
|
||||||
updateTeamUI();
|
updateTeamUI();
|
||||||
|
|||||||
Reference in New Issue
Block a user