|
19 | 19 | </script> |
20 | 20 |
|
21 | 21 |
|
| 22 | +<!-- Floating toggle for showing the left navigation on hover (Data Catalog) --> |
| 23 | +<button class="catalog-nav-toggle" aria-label="Show navigation" title="Show navigation"> |
| 24 | + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"> |
| 25 | + <path d="M3 12c0-.55.45-1 1-1h12.59l-4.3-4.29a1.003 1.003 0 0 1 1.42-1.42l6 6c.39.39.39 1.02 0 1.41l-6 6a1.003 1.003 0 0 1-1.42-1.42L16.59 13H4c-.55 0-1-.45-1-1Z"/> |
| 26 | + </svg> |
| 27 | + </button> |
| 28 | + |
| 29 | +<script> |
| 30 | +// Page-scoped nav hover behaviour for Data Catalog |
| 31 | +document.addEventListener('DOMContentLoaded', function () { |
| 32 | + const body = document.body; |
| 33 | + body.classList.add('catalog-page'); |
| 34 | + |
| 35 | + const primary = document.querySelector('.md-sidebar--primary'); |
| 36 | + const toggle = document.querySelector('.catalog-nav-toggle'); |
| 37 | + if (!primary || !toggle) return; |
| 38 | + |
| 39 | + let inside = false; |
| 40 | + |
| 41 | + const open = () => body.classList.add('catalog-nav-open'); |
| 42 | + const close = () => { if (!inside) body.classList.remove('catalog-nav-open'); }; |
| 43 | + |
| 44 | + toggle.addEventListener('mouseenter', () => { inside = true; open(); }); |
| 45 | + toggle.addEventListener('mouseleave', () => { inside = false; setTimeout(close, 120); }); |
| 46 | + toggle.addEventListener('click', () => { body.classList.toggle('catalog-nav-open'); }); |
| 47 | + |
| 48 | + primary.addEventListener('mouseenter', () => { inside = true; open(); }); |
| 49 | + primary.addEventListener('mouseleave', () => { inside = false; setTimeout(close, 150); }); |
| 50 | +}); |
| 51 | +</script> |
| 52 | + |
22 | 53 | <div class="catalog-header" markdown> |
23 | 54 | <div markdown> |
24 | 55 | The data catalog is a centralized hub to keep track of available datasets. It is regularly updated to include new data as it becomes available in any TEF node. If you want access to any dataset, please click "Contact" to reach the owners. |
|
0 commit comments