-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdebug-test.html
More file actions
164 lines (149 loc) · 5.8 KB
/
Copy pathdebug-test.html
File metadata and controls
164 lines (149 loc) · 5.8 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Debug Test - DevMe Dashboard</title>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Inter:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="../src/css/styles.css">
</head>
<body>
<div class="banner">
<div class="datetime">
<div class="date" id="date"></div>
<div class="time" id="time"></div>
</div>
<div class="quote">"First, solve the problem. Then write the code." – John Johnson</div>
<div class="profile-pic"></div>
</div>
<div class="content"></div>
<div class="three-columns">
<div class="col">
<div class="box">
<div class="section-title">LeetCode Stats</div>
<div class="stats-container">
<div class="stat-item" id="leetcode-total">
<span class="stat-label">Total</span>
<span class="stat-value">Loading...</span>
</div>
<div class="stat-item" id="leetcode-easy">
<span class="stat-label">Easy</span>
<span class="stat-value">0</span>
</div>
<div class="stat-item" id="leetcode-medium">
<span class="stat-label">Medium</span>
<span class="stat-value">0</span>
</div>
<div class="stat-item" id="leetcode-hard">
<span class="stat-label">Hard</span>
<span class="stat-value">0</span>
</div>
</div>
</div>
<div class="box">
<div class="section-title">GitHub Stats</div>
<div class="stats-container">
<div class="stat-item" id="gh-repos">
<span class="stat-label">Public Repos</span>
<span class="stat-value">Loading...</span>
</div>
<div class="stat-item" id="gh-stars">
<span class="stat-label">Total Stars</span>
<span class="stat-value">0</span>
</div>
<div class="stat-item" id="gh-forks">
<span class="stat-label">Total Forks</span>
<span class="stat-value">0</span>
</div>
<div class="stat-item" id="gh-top-language">
<span class="stat-label">Top Language</span>
<span class="stat-value">N/A</span>
</div>
</div>
</div>
</div>
<div class="col">
<div class="box">
<div class="section-title">GitHub Heatmap</div>
<div id="github-heatmap" class="heatmap-container">
<img src="https://github-readme-activity-graph.vercel.app/graph?username=codebyNJ&theme=dark&hide_border=true&area=true"
alt="GitHub Activity Graph"
style="width: 100%; height: auto; border-radius: 6px;">
</div>
</div>
<div class="box">
<div class="section-title">Important Links</div>
<div class="links-container">
<div class="link-item" data-url="https://www.linkedin.com/in/nijeesh-nj-062468285">
<span class="link-text">LinkedIn Profile</span>
<button class="copy-btn" title="Copy link">Copy</button>
</div>
<div class="link-item" data-url="https://github.com/codebyNJ">
<span class="link-text">GitHub Profile</span>
<button class="copy-btn" title="Copy link">Copy</button>
</div>
</div>
</div>
</div>
<div class="col wide">
<div class="box">
<div class="section-title">Todo List</div>
<div class="todo-container">
<div class="todo-input-container">
<input type="text" id="todo-input" placeholder="Add a task..." class="todo-input">
<button id="add-todo" class="add-todo-btn">+</button>
</div>
<div id="todo-list" class="todo-list"></div>
</div>
</div>
</div>
</div>
<!-- Load scripts in proper order -->
<script src="../src/js/clock.js"></script>
<script src="../src/js/config.js"></script>
<script src="../src/js/app.js"></script>
<script src="../src/js/todo.js"></script>
<!-- Debug script -->
<script>
// Debug script to check what's happening
document.addEventListener('DOMContentLoaded', () => {
console.log('🔍 Debug: DOM loaded');
// Check if config is loaded
if (window.userConfig) {
console.log('✅ Config loaded:', window.userConfig);
} else {
console.error('❌ Config not loaded');
}
// Check if dashboard is initialized
setTimeout(() => {
if (typeof DevDashboard !== 'undefined') {
console.log('✅ DevDashboard class available');
} else {
console.error('❌ DevDashboard class not available');
}
if (window.todoManager) {
console.log('✅ TodoManager available');
} else {
console.error('❌ TodoManager not available');
}
// Check image elements
const banner = document.querySelector('.banner');
const profilePic = document.querySelector('.profile-pic');
console.log('🖼️ Banner element:', banner);
console.log('🖼️ Profile pic element:', profilePic);
if (banner) {
console.log('🖼️ Banner background:', banner.style.backgroundImage);
}
if (profilePic) {
console.log('🖼️ Profile pic background:', profilePic.style.backgroundImage);
}
// Test image loading
const testImg = new Image();
testImg.onload = () => console.log('✅ Test image loaded successfully');
testImg.onerror = () => console.error('❌ Test image failed to load');
testImg.src = '../src/images/banners/mountain-sunset.png';
}, 2000);
});
</script>
</body>
</html>