handleiding_nieuw:spacematrix:h2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| handleiding_nieuw:spacematrix:h2 [2025/04/14 13:12] – support | handleiding_nieuw:spacematrix:h2 [2025/04/14 16:13] (current) – support | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| < | < | ||
| < | < | ||
| - | .voorbeeldblok | + | .filters label { |
| - | | + | |
| - | | + | |
| - | font-family: sans-serif; | + | font-weight: bold; |
| - | line-height: 1.5; | + | |
| } | } | ||
| - | .voorbeeldblok h2 { | + | .range-group |
| - | | + | |
| - | | + | |
| + | gap: 0.5em; | ||
| } | } | ||
| - | .filters | + | .range-group input[type=" |
| - | background-color: | + | flex: 1; |
| + | } | ||
| + | .range-group output { | ||
| + | width: 40px; | ||
| + | text-align: right; | ||
| + | } | ||
| + | .overzicht | ||
| + | background-color: | ||
| + | border: 1px solid #ccc; | ||
| padding: 1em; | padding: 1em; | ||
| - | margin-bottom: 2em; | + | margin: 2em 0; |
| - | border-radius: | + | |
| } | } | ||
| - | .filters label { | + | .overzicht ul { |
| - | | + | |
| - | | + | |
| } | } | ||
| - | .filters input { | + | .overzicht li { |
| - | | + | |
| + | align-items: | ||
| + | gap: 10px; | ||
| + | margin-bottom: | ||
| } | } | ||
| - | .grid { | + | .overzicht li img { |
| + | width: 50px; | ||
| + | height: auto; | ||
| + | border-radius: | ||
| + | border: 1px solid #ccc; | ||
| + | } | ||
| + | .projectblok { | ||
| + | display: none; | ||
| + | margin-bottom: | ||
| + | } | ||
| + | .projectgrid | ||
| display: flex; | display: flex; | ||
| flex-wrap: wrap; | flex-wrap: wrap; | ||
| gap: 1em; | gap: 1em; | ||
| - | margin-bottom: 1.5em; | + | margin: |
| } | } | ||
| - | .grid img { | + | .projectgrid |
| - | width: 100%; | + | |
| max-width: 400px; | max-width: 400px; | ||
| + | width: 100%; | ||
| border-radius: | border-radius: | ||
| border: 1px solid #aaa; | border: 1px solid #aaa; | ||
| Line 41: | Line 61: | ||
| border-radius: | border-radius: | ||
| border: 1px solid #ccc; | border: 1px solid #ccc; | ||
| - | margin-bottom: | ||
| } | } | ||
| .kengetallen table { | .kengetallen table { | ||
| Line 53: | Line 72: | ||
| </ | </ | ||
| - | <div class=" | + | <div class=" |
| - | <h2>Voorbeeld: Battersea Power Station, Londen</h2> | + | <label>Filter op FSI</label> |
| + | <div class=" | ||
| + | <output id=" | ||
| + | <input type=" | ||
| + | <input type=" | ||
| + | <output id=" | ||
| + | </div> | ||
| - | <div class=" | + | |
| - | <label for="fsi">Filter op FSI</label> | + | |
| - | <input type=" | + | <output id="gsi_min_val">0</output> |
| + | <input type=" | ||
| + | <input type=" | ||
| + | <output id=" | ||
| + | </div> | ||
| - | | + | |
| - | <input type=" | + | <div class=" |
| - | + | < | |
| - | <label for="osr">Filter op OSR</ | + | <input type="range" id=" |
| - | <input type=" | + | <input type=" |
| + | <output id=" | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| + | <div class=" | ||
| + | < | ||
| + | <ul id=" | ||
| + | </ | ||
| - | | + | <!-- BATTERSEA --> |
| + | <div class=" | ||
| + | < | ||
| + | | ||
| <img src=" | <img src=" | ||
| <img src=" | <img src=" | ||
| Line 73: | Line 112: | ||
| <img src=" | <img src=" | ||
| </ | </ | ||
| - | |||
| <div class=" | <div class=" | ||
| - | < | ||
| < | < | ||
| < | < | ||
| < | < | ||
| - | < | + | < |
| < | < | ||
| - | < | + | < |
| </ | </ | ||
| </ | </ | ||
| + | </ | ||
| - | | + | <!-- NINE ELMS --> |
| - | + | <div class=" | |
| - | <div class=" | + | |
| + | <div class=" | ||
| <img src=" | <img src=" | ||
| <img src=" | <img src=" | ||
| </ | </ | ||
| - | |||
| <div class=" | <div class=" | ||
| - | < | ||
| < | < | ||
| < | < | ||
| < | < | ||
| - | < | + | < |
| < | < | ||
| - | < | + | < |
| </ | </ | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | < | ||
| + | function updateFilter() { | ||
| + | const fsiMin = parseFloat(document.getElementById(' | ||
| + | const fsiMax = parseFloat(document.getElementById(' | ||
| + | const gsiMin = parseFloat(document.getElementById(' | ||
| + | const gsiMax = parseFloat(document.getElementById(' | ||
| + | const osrMin = parseFloat(document.getElementById(' | ||
| + | const osrMax = parseFloat(document.getElementById(' | ||
| + | const lijst = document.getElementById(' | ||
| + | lijst.innerHTML = ''; | ||
| + | document.querySelectorAll(' | ||
| + | const fsi = parseFloat(block.dataset.fsi); | ||
| + | const gsi = parseFloat(block.dataset.gsi); | ||
| + | const osr = parseFloat(block.dataset.osr); | ||
| + | const visible = fsi >= fsiMin && fsi <= fsiMax && gsi >= gsiMin && gsi <= gsiMax && osr >= osrMin && osr <= osrMax; | ||
| + | block.style.display = visible ? ' | ||
| + | if (visible) { | ||
| + | const naam = block.querySelector(' | ||
| + | const id = block.id; | ||
| + | const overzicht = block.querySelector(' | ||
| + | const li = document.createElement(' | ||
| + | const a = document.createElement(' | ||
| + | a.href = '#' | ||
| + | a.textContent = naam; | ||
| + | const img = document.createElement(' | ||
| + | img.src = overzicht; | ||
| + | li.appendChild(img); | ||
| + | li.appendChild(a); | ||
| + | lijst.appendChild(li); | ||
| + | } | ||
| + | }); | ||
| + | } | ||
| + | |||
| + | [' | ||
| + | document.getElementById(id).addEventListener(' | ||
| + | }); | ||
| + | updateFilter(); | ||
| + | </ | ||
| </ | </ | ||
| + | |||
handleiding_nieuw/spacematrix/h2.1744636376.txt.gz · Last modified: 2025/04/14 13:12 by support