-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.html
More file actions
85 lines (78 loc) · 3.34 KB
/
dashboard.html
File metadata and controls
85 lines (78 loc) · 3.34 KB
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
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>نظارت قیمت - داشبورد</title>
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico?">
<link rel="stylesheet" type="text/css" href="dashboard-styles.css">
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/sahel-font@v3.4.0/dist/font-face.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.plot.ly/plotly-2.27.0.min.js"></script>
<script src="https://cdn.plot.ly/plotly-locale-fa-2.27.0.js"></script>
<script src="https://unpkg.com/jalali-moment/dist/jalali-moment.browser.js"></script>
<script src="dashboard-script.js"></script>
<script>
let FF_FOUC_FIX;
</script>
</head>
<body>
<!-- Scroll to top button -->
<button id="scrollToTopBtn" class="scroll-to-top" onclick="scrollToTop()">
<span>↑</span>
</button>
<!-- Header Section -->
<header class="header">
<div class="header-content">
<h1 class="main-title">pMonitor</h1>
<p class="subtitle">رصد قیمتهای دیجیکالا</p>
<div class="header-stats">
<div class="stat-card">
<span class="stat-number" id="totalItems">0</span>
<span class="stat-label">کالا</span>
</div>
<div class="stat-card">
<span class="stat-number" id="lastUpdate">-</span>
<span class="stat-label">آخرین بروزرسانی</span>
</div>
</div>
</div>
</header>
<!-- Table of Contents -->
<section class="toc-section">
<div class="toc-container">
<h2 class="section-title">📋 فهرست کالاها</h2>
<div id="table-of-contents" class="toc-grid">
<!-- Table of contents will be populated by JavaScript -->
</div>
</div>
</section>
<!-- Charts Section -->
<main class="charts-section">
<div class="charts-container">
<h2 class="section-title">📈 روند قیمتها</h2>
<div id="charts-grid" class="charts-grid">
<!-- Charts will be populated by JavaScript -->
</div>
</div>
</main>
<!-- Footer -->
<footer class="footer">
<div class="footer-content">
<p><a href="https://github.com/eledah/pmonitor" target="_blank">سورس کد</a></p>
<p>© pMonitor - 2025</p>
</div>
</footer>
<!-- Loading overlay -->
<div id="loadingOverlay" class="loading-overlay">
<div class="loading-spinner"></div>
<p>در حال بارگذاری دادهها...</p>
</div>
<!-- Error message -->
<div id="errorMessage" class="error-message" style="display: none;">
<p>خطا در بارگذاری دادهها. لطفاً صفحه را مجدداً بارگذاری کنید.</p>
<button onclick="location.reload()" class="retry-btn">تلاش مجدد</button>
</div>
</body>
</html>