-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.js
More file actions
26 lines (24 loc) · 882 Bytes
/
main.js
File metadata and controls
26 lines (24 loc) · 882 Bytes
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
// Simple progressive enhancements
(function () {
const yearEl = document.getElementById('year');
if (yearEl) yearEl.textContent = new Date().getFullYear();
// Placeholder handlers for demo navigation
const router = (hash) => {
switch (hash) {
case '#login':
alert('Navigate to Login: integrate Coinbase Wallet, Web3Auth, or Magic.link here.');
break;
case '#demo':
alert('Play demo video or open modal.');
break;
case '#get-started':
document.getElementById('learn')?.scrollIntoView({ behavior: 'smooth' });
break;
default:
// no-op
}
};
window.addEventListener('hashchange', () => router(location.hash));
// Prime in case user lands with a hash
router(location.hash);
})();