93ed0137a6
This still needs translation work (index.html) and potentially more politicians in data/meps_dk.json
13 lines
325 B
JavaScript
13 lines
325 B
JavaScript
|
|
|
|
function setPlaceholder(name, value) {
|
|
/*
|
|
Set the contents of a placeholder element.
|
|
A placeholder is denoted as <i class="placeholder" name="myPlaceholder"></i>
|
|
*/
|
|
|
|
for (const placeholder of document.querySelectorAll(`i.placeholder[name="${name}"]`)) {
|
|
placeholder.innerText = value
|
|
}
|
|
}
|