handleiding_nieuw:spacematrix:h2
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
handleiding_nieuw:spacematrix:h2 [2025/04/14 12:08] – created 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 53: | Line 72: | ||
</ | </ | ||
- | <div class=" | + | <div class=" |
- | <h2>Voorbeeld: Battersea Power Station, Londen</h2> | + | <label>Filter op FSI</label> |
- | + | <div class=" | |
- | <div class=" | + | <output id="fsi_min_val">0</output> |
- | <label for="fsi">Filter op FSI</label> | + | <input type=" |
- | <input type=" | + | <input type=" |
- | + | <output id=" | |
- | <label for="gsi">Filter op GSI</ | + | </div> |
- | <input type=" | + | |
- | | + | |
- | <input type=" | + | <div class=" |
+ | <output id=" | ||
+ | <input type=" | ||
+ | <input type=" | ||
+ | <output id=" | ||
</ | </ | ||
- | <div class=" | + | |
- | <img src="/ | + | |
- | <img src="/ | + | <output id="osr_min_val"> |
- | <img src="/ | + | <input type="range" |
- | <img src="/path/ | + | <input type="range" id=" |
+ | <output id="osr_max_val"> | ||
</ | </ | ||
+ | </ | ||
+ | <div class=" | ||
+ | < | ||
+ | <ul id=" | ||
+ | </ | ||
+ | |||
+ | <!-- BATTERSEA --> | ||
+ | <div class=" | ||
+ | < | ||
+ | <div class=" | ||
+ | <img src=" | ||
+ | <img src=" | ||
+ | <img src=" | ||
+ | <img src=" | ||
+ | </ | ||
<div class=" | <div class=" | ||
- | < | ||
< | < | ||
< | < | ||
< | < | ||
- | < | + | < |
< | < | ||
- | < | + | < |
</ | </ | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | <!-- NINE ELMS --> | ||
+ | <div class=" | ||
+ | < | ||
+ | <div class=" | ||
+ | <img src=" | ||
+ | <img src=" | ||
+ | </ | ||
+ | <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.1744632517.txt.gz · Last modified: 2025/04/14 12:08 by support