-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdebug.html
More file actions
77 lines (72 loc) · 2.02 KB
/
debug.html
File metadata and controls
77 lines (72 loc) · 2.02 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Debug - Priority Manager</title>
<link rel="stylesheet" href="styles.css">
<style>
body {
margin: 0;
padding: 20px;
background-color: #f5f5f5;
}
.debug-container {
max-width: 1200px;
margin: 0 auto;
}
.debug-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #dee2e6;
}
.debug-header h1 {
margin: 0;
color: #333;
font-size: 1.5em;
}
.back-link {
color: #007bff;
text-decoration: none;
padding: 8px 16px;
border: 1px solid #007bff;
border-radius: 4px;
transition: background-color 0.2s;
}
.back-link:hover {
background-color: #007bff;
color: white;
}
#jsonDisplay {
margin-top: 0;
}
</style>
</head>
<body>
<div class="debug-container">
<div class="debug-header">
<h1>Debug - JSON Data</h1>
<a href="index.html" class="back-link">← Back to App</a>
</div>
<div class="json-section">
<pre id="jsonDisplay">Loading...</pre>
</div>
</div>
<script type="module">
// Import the same modules as the main app
import { Store } from './state/appState.js';
import { displayJson } from './ui/display.js';
// Initialize Store
Store.init();
// Display JSON on page load
displayJson();
// Auto-refresh every 2 seconds to see live updates while debugging
setInterval(() => {
displayJson();
}, 2000);
</script>
</body>
</html>