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:20] – 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 { |
- | width: | + | display: flex; |
+ | align-items: | ||
+ | gap: 10px; | ||
+ | margin-bottom: | ||
+ | } | ||
+ | .overzicht li img { | ||
+ | width: | ||
+ | height: auto; | ||
+ | border-radius: | ||
+ | border: 1px solid #ccc; | ||
+ | } | ||
+ | .projectblok { | ||
+ | display: none; | ||
+ | margin-bottom: | ||
} | } | ||
- | .grid { | + | .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 50: | Line 69: | ||
padding: 0.3em 0.6em; | padding: 0.3em 0.6em; | ||
border-bottom: | border-bottom: | ||
- | } | ||
- | .projectblok { | ||
- | display: none; | ||
} | } | ||
</ | </ | ||
- | <div class=" | + | <div class=" |
- | <div class=" | + | < |
- | <label for="fsi">Filter op FSI</label> | + | <div class=" |
- | <input type=" | + | <output id="fsi_min_val">0</output> |
+ | <input type=" | ||
+ | <input type=" | ||
+ | <output id=" | ||
+ | </div> | ||
- | | + | |
- | <input type=" | + | <div class=" |
+ | <output id=" | ||
+ | <input type=" | ||
+ | <input type=" | ||
+ | <output id=" | ||
+ | </div> | ||
- | | + | |
- | <input type=" | + | <div class=" |
+ | <output id=" | ||
+ | <input type=" | ||
+ | <input type=" | ||
+ | <output id=" | ||
</ | </ | ||
+ | </ | ||
- | | + | <div class=" |
- | <h2>Voorbeeld: | + | < |
- | <div class=" | + | <ul id=" |
- | <img src=" | + | </ |
- | <img src=" | + | |
- | <img src=" | + | <!-- BATTERSEA --> |
- | <img src=" | + | <div class=" |
- | </ | + | < |
- | <div class=" | + | <div class=" |
- | < | + | <img src=" |
- | < | + | <img src=" |
- | < | + | <img src=" |
- | < | + | <img src=" |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </div> | + | |
</ | </ | ||
+ | <div class=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
- | | + | <!-- NINE ELMS --> |
- | <h2>Voorbeeld: Nine Elms Park</ | + | <div class=" |
- | <div class=" | + | <h2>Rive Gauche - Parijs</ |
- | <img src=" | + | <div class=" |
- | <img src=" | + | <img src=" |
- | </ | + | <img src=" |
- | <div class=" | + | </ |
- | <strong> | + | <div class=" |
- | | + | <table> |
- | | + | < |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | </table> | + | </ |
- | </div> | + | |
</ | </ | ||
</ | </ | ||
Line 109: | Line 143: | ||
< | < | ||
function updateFilter() { | function updateFilter() { | ||
- | const fsiVal | + | const fsiMin |
- | const gsiVal | + | const fsiMax |
- | const osrVal | + | const gsiMin |
+ | const gsiMax = parseFloat(document.getElementById(' | ||
+ | const osrMin = parseFloat(document.getElementById(' | ||
+ | const osrMax = parseFloat(document.getElementById(' | ||
+ | const lijst = document.getElementById(' | ||
+ | lijst.innerHTML = '' | ||
document.querySelectorAll(' | document.querySelectorAll(' | ||
const fsi = parseFloat(block.dataset.fsi); | const fsi = parseFloat(block.dataset.fsi); | ||
const gsi = parseFloat(block.dataset.gsi); | const gsi = parseFloat(block.dataset.gsi); | ||
const osr = parseFloat(block.dataset.osr); | const osr = parseFloat(block.dataset.osr); | ||
- | | + | |
+ | 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); | ||
+ | } | ||
}); | }); | ||
} | } | ||
- | ['fsi', 'gsi', 'osr' | + | ['fsi_min', 'fsi_max', 'gsi_min', |
document.getElementById(id).addEventListener(' | document.getElementById(id).addEventListener(' | ||
}); | }); |
handleiding_nieuw/spacematrix/h2.1744636843.txt.gz · Last modified: 2025/04/14 13:20 by support