- Remove inline display:none from HTML (was overriding opacity) - Set initial pointer-events:none in CSS to prevent blocking clicks Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
59 lines
2.5 KiB
HTML
59 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Spending Visualization</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.6.0/dist/echarts.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.2/tinycolor.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<h1>Семейные траты за месяц</h1>
|
|
<div class="month-navigator">
|
|
<button class="nav-arrow nav-prev" id="prev-month">‹</button>
|
|
<div class="month-list" id="month-list"></div>
|
|
<button class="nav-arrow nav-next" id="next-month">›</button>
|
|
</div>
|
|
<select id="month-select" style="display: none;"></select>
|
|
</div>
|
|
<div class="content-wrapper">
|
|
<div id="chart-container"></div>
|
|
<button id="chart-eye-btn" class="chart-eye-btn" title="View transactions">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
|
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>
|
|
<circle cx="12" cy="12" r="3"/>
|
|
</svg>
|
|
</button>
|
|
<div id="details-box" class="details-box">
|
|
<h3>Детали</h3>
|
|
<div id="details-header" class="details-header">
|
|
<span class="hover-name">Hover over a segment to see details</span>
|
|
<span class="hover-amount"></span>
|
|
</div>
|
|
<h4>Top Items:</h4>
|
|
<div id="top-items"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="transaction-modal" class="modal-overlay" style="display: none;">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h2 id="modal-title">Transaction Details</h2>
|
|
<button class="modal-close" id="modal-close">×</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="modal-table-container">
|
|
<table id="modal-table" class="transaction-table">
|
|
<thead id="modal-thead"></thead>
|
|
<tbody id="modal-tbody"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html> |