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();
|
||||
|
||||
// Setze den Titel
|
||||
document.getElementById('dynamicModalLabel').innerText = subitem.description;
|
||||
document.getElementById('dynamicModalLabel').innerText = subitem.name;
|
||||
|
||||
// Setze den Identifier, falls vorhanden
|
||||
const identifierBox = document.getElementById('dynamicIdentifierBox');
|
||||
@ -34,12 +34,13 @@ function openDynamicPopup(subitem) {
|
||||
infoBox.classList.add('d-none');
|
||||
}
|
||||
|
||||
// Konfiguriere den Link
|
||||
// Konfiguriere den Link oder die Beschreibung
|
||||
const linkBox = document.getElementById('dynamicModalLink');
|
||||
const linkHref = document.getElementById('dynamicModalLinkHref');
|
||||
if (subitem.url) {
|
||||
linkBox.classList.remove('d-none');
|
||||
linkHref.href = subitem.url;
|
||||
linkHref.innerText = subitem.description || "Open Link";
|
||||
} else {
|
||||
linkBox.classList.add('d-none');
|
||||
linkHref.href = '#';
|
||||
|
@ -21,7 +21,7 @@
|
||||
</div>
|
||||
<!-- Link, falls vorhanden -->
|
||||
<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>
|
||||
<!-- Alternativen, falls vorhanden -->
|
||||
<div id="dynamicAlternatives" class="mt-4">
|
||||
|
Loading…
Reference in New Issue
Block a user