mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-01-15 19:23:58 +01:00
Optimized description
This commit is contained in:
parent
a9fcd4b6de
commit
19f99ff9d3
@ -3,7 +3,7 @@ function openDynamicPopup(subitem) {
|
|||||||
closeAllModals();
|
closeAllModals();
|
||||||
|
|
||||||
// Setze den Titel
|
// Setze den Titel
|
||||||
document.getElementById('dynamicModalLabel').innerText = subitem.description;
|
document.getElementById('dynamicModalLabel').innerText = subitem.name;
|
||||||
|
|
||||||
// Setze den Identifier, falls vorhanden
|
// Setze den Identifier, falls vorhanden
|
||||||
const identifierBox = document.getElementById('dynamicIdentifierBox');
|
const identifierBox = document.getElementById('dynamicIdentifierBox');
|
||||||
@ -34,12 +34,13 @@ function openDynamicPopup(subitem) {
|
|||||||
infoBox.classList.add('d-none');
|
infoBox.classList.add('d-none');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Konfiguriere den Link
|
// Konfiguriere den Link oder die Beschreibung
|
||||||
const linkBox = document.getElementById('dynamicModalLink');
|
const linkBox = document.getElementById('dynamicModalLink');
|
||||||
const linkHref = document.getElementById('dynamicModalLinkHref');
|
const linkHref = document.getElementById('dynamicModalLinkHref');
|
||||||
if (subitem.url) {
|
if (subitem.url) {
|
||||||
linkBox.classList.remove('d-none');
|
linkBox.classList.remove('d-none');
|
||||||
linkHref.href = subitem.url;
|
linkHref.href = subitem.url;
|
||||||
|
linkHref.innerText = subitem.description || "Open Link";
|
||||||
} else {
|
} else {
|
||||||
linkBox.classList.add('d-none');
|
linkBox.classList.add('d-none');
|
||||||
linkHref.href = '#';
|
linkHref.href = '#';
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Link, falls vorhanden -->
|
<!-- Link, falls vorhanden -->
|
||||||
<div id="dynamicModalLink" class="mt-3 d-none">
|
<div id="dynamicModalLink" class="mt-3 d-none">
|
||||||
<a href="#" target="_blank" class="btn btn-primary w-100" id="dynamicModalLinkHref">Open Link</a>
|
<a href="#" target="_blank" class="btn btn-primary w-100" id="dynamicModalLinkHref"></a>
|
||||||
</div>
|
</div>
|
||||||
<!-- Alternativen, falls vorhanden -->
|
<!-- Alternativen, falls vorhanden -->
|
||||||
<div id="dynamicAlternatives" class="mt-4">
|
<div id="dynamicAlternatives" class="mt-4">
|
||||||
|
Loading…
Reference in New Issue
Block a user