forked from neuropsychology/NeuroKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
21 lines (20 loc) · 892 Bytes
/
script.js
File metadata and controls
21 lines (20 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Scientific Repository Script
// Metadata and citation helper
document.addEventListener('DOMContentLoaded', function() {
// Add copy-to-clipboard for citation
const codeEl = document.querySelector('code');
if (codeEl) {
codeEl.style.cursor = 'pointer';
codeEl.title = 'Click to copy citation';
codeEl.addEventListener('click', function() {
navigator.clipboard.writeText(codeEl.textContent).then(() => {
const orig = codeEl.textContent;
codeEl.textContent = '✅ Copied to clipboard!';
setTimeout(() => { codeEl.textContent = orig; }, 2000);
});
});
}
// Track page view (privacy-friendly, no external calls)
console.log('Dataset page loaded: NeuroKit2: The Python Toolbox for Neurophysiological Signal Processing');
console.log('Author: Juan Moisés de la Serna Tuya | ORCID: https://orcid.org/0000-0002-8401-8018');
});