-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresource.html
More file actions
236 lines (223 loc) · 13.6 KB
/
resource.html
File metadata and controls
236 lines (223 loc) · 13.6 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Resource | Development Discourses</title>
<script>
(function() {
var KEY = 'imx_theme';
var saved = null;
try { saved = localStorage.getItem(KEY); } catch (e) {}
function resolve(pref) {
if (pref === 'light' || pref === 'dark') return pref;
return (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'dark' : 'light';
}
document.documentElement.setAttribute('data-theme', resolve(saved));
})();
</script>
<meta name="description" content="Development Discourses resource detail page.">
<link rel="stylesheet" href="css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap" rel="stylesheet">
</head>
<body>
<header class="site-header">
<div class="container">
<div class="header-content">
<div class="brand">
<a href="https://www.impactmojo.in" class="brand-link" target="_blank" rel="noopener">
<span class="brand-icon">◇</span>
<span class="brand-text">ImpactMojo</span>
</a>
<span class="brand-separator">/</span>
<a href="index.html" class="site-title-link"><h1 class="site-title">Development Discourses</h1></a>
</div>
</div>
<nav class="header-nav">
<a href="index.html" class="nav-link">← Library</a>
<a href="index.html#about" class="nav-link">About</a>
<div class="theme-selector" role="group" aria-label="Theme selection">
<button class="theme-btn" data-theme="system" title="System theme" aria-label="Use system theme">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
</button>
<button class="theme-btn" data-theme="light" title="Light theme" aria-label="Use light theme">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
</button>
<button class="theme-btn" data-theme="dark" title="Dark theme" aria-label="Use dark theme">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
</button>
</div>
</nav>
</div>
</header>
<main>
<!-- Breadcrumb -->
<section class="breadcrumb-section">
<div class="container">
<nav class="breadcrumb" id="breadcrumb">
<a href="index.html">Library</a>
<span class="breadcrumb-sep">/</span>
<span class="breadcrumb-topic" id="breadcrumbTopic">Loading...</span>
<span class="breadcrumb-sep">/</span>
<span class="breadcrumb-current" id="breadcrumbTitle">Loading...</span>
</nav>
</div>
</section>
<!-- Resource Detail -->
<section class="detail-section">
<div class="container">
<div class="detail-layout">
<!-- Main Content -->
<article class="detail-main">
<!-- Header -->
<div class="detail-header" id="detailHeader">
<div class="detail-badges">
<span class="resource-type-badge" id="typeBadge">Paper</span>
<span class="access-badge" id="accessBadge">Open Access</span>
<span class="verified-badge" id="verifiedBadge" style="display:none;">Verified</span>
</div>
<h1 class="detail-title" id="detailTitle">Loading...</h1>
<div class="detail-authors" id="detailAuthors"></div>
<div class="detail-meta-row">
<span class="detail-year" id="detailYear"></span>
<span class="detail-topic-tag" id="detailTopic"></span>
</div>
</div>
<!-- Action Bar -->
<div class="detail-actions">
<a href="#" class="action-btn action-primary" id="readSourceBtn" target="_blank" rel="noopener">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>
Read at Source
</a>
<button class="action-btn" id="citeBtnToggle">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9V2h12v7"></path><path d="M6 18H4a2 2 0 01-2-2V9h24v7a2 2 0 01-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect></svg>
Cite
</button>
<button class="action-btn" id="shareBtn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg>
Share
</button>
</div>
<!-- Citation Panel (hidden by default) -->
<div class="citation-panel" id="citationPanel" style="display:none;">
<div class="citation-tabs">
<button class="citation-tab active" data-format="apa">APA</button>
<button class="citation-tab" data-format="bibtex">BibTeX</button>
<button class="citation-tab" data-format="chicago">Chicago</button>
</div>
<div class="citation-content" id="citationContent"></div>
<button class="citation-copy" id="citationCopy">Copy to clipboard</button>
</div>
<!-- Description / Summary -->
<div class="detail-description">
<h2>Summary</h2>
<p id="detailDescription">Loading...</p>
</div>
<!-- Tags -->
<div class="detail-tags" id="detailTags">
<h2>Tags</h2>
<div class="tag-list" id="tagList"></div>
</div>
<!-- Connection Map (LitMaps-style) -->
<div class="litmap-section" id="litmapSection">
<h2>Connection Map</h2>
<div class="litmap-controls">
<div class="litmap-legend" id="litmapLegend"></div>
<div class="litmap-actions">
<button class="litmap-btn" id="litmapReset" title="Reset zoom">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 12a9 9 0 019-9 9.75 9.75 0 016.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 01-9 9 9.75 9.75 0 01-6.74-2.74L3 16"></path><path d="M3 21v-5h5"></path></svg>
</button>
<button class="litmap-btn" id="litmapFullscreen" title="Toggle fullscreen">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line></svg>
</button>
</div>
</div>
<div class="litmap-container" id="litmapContainer">
<svg id="litmapSvg"></svg>
</div>
<p class="litmap-caption">Click any node to navigate. Drag to rearrange. Scroll to zoom. Line thickness = connection strength.</p>
</div>
<!-- Community Notes -->
<div class="detail-notes">
<h2>Community Notes</h2>
<div class="notes-placeholder" id="notesArea">
<p class="notes-empty">No community notes yet for this resource.</p>
<a href="#" class="notes-contribute" id="contributeNote">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
Add a note via GitHub
</a>
</div>
</div>
</article>
<!-- Sidebar -->
<aside class="detail-sidebar">
<!-- Metadata Card -->
<div class="sidebar-card">
<h3>Details</h3>
<dl class="meta-list" id="metaList">
<!-- Filled by JS -->
</dl>
</div>
<!-- Related Resources -->
<div class="sidebar-card">
<h3>Related Resources</h3>
<div class="related-list" id="relatedList">
<p class="related-loading">Finding related resources...</p>
</div>
</div>
</aside>
</div>
</div>
</section>
</main>
<footer class="site-footer">
<div class="container">
<div class="footer-content">
<p>© 2026 <a href="https://www.impactmojo.in" target="_blank" rel="noopener">ImpactMojo</a>. Development Discourses is open-source.</p>
<div class="footer-links">
<a href="https://github.com/Varnasr/development-discourses" target="_blank" rel="noopener">GitHub</a>
<a href="https://www.impactmojo.in" target="_blank" rel="noopener">ImpactMojo</a>
</div>
</div>
</div>
</footer>
<script src="js/litmap.js"></script>
<script src="js/resource.js"></script>
<script>
(function() {
var KEY = 'imx_theme';
var html = document.documentElement;
function getSaved() { try { return localStorage.getItem(KEY); } catch (e) { return null; } }
function resolve(pref) {
if (pref === 'light' || pref === 'dark') return pref;
return (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'dark' : 'light';
}
function apply(pref) {
html.setAttribute('data-theme', resolve(pref));
var active = pref || 'system';
document.querySelectorAll('.theme-btn').forEach(function(btn) {
btn.classList.toggle('active', btn.getAttribute('data-theme') === active);
});
}
function setTheme(pref) {
try {
if (pref === 'system' || !pref) localStorage.removeItem(KEY);
else localStorage.setItem(KEY, pref);
} catch (e) {}
apply(pref);
}
apply(getSaved());
document.querySelectorAll('.theme-btn').forEach(function(btn) {
btn.addEventListener('click', function() { setTheme(btn.getAttribute('data-theme')); });
});
if (window.matchMedia) {
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function() {
if (!getSaved()) apply(null);
});
}
})();
</script>
</body>
</html>