mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-01-15 11:13:59 +01:00
Solved bug
This commit is contained in:
parent
2a3491b98b
commit
3c240fc16b
@ -74,8 +74,9 @@ function openDynamicPopup(subitem) {
|
||||
<span>
|
||||
<i class="${alt.icon.class}"></i> ${alt.name}
|
||||
</span>
|
||||
<button class="btn btn-outline-secondary btn-sm" onclick='openDynamicPopup(${JSON.stringify(alt)})'>Open</button>
|
||||
<button class="btn btn-outline-secondary btn-sm">Open</button>
|
||||
`;
|
||||
listItem.querySelector('button').addEventListener('click', () => openDynamicPopup(alt));
|
||||
alternativesList.appendChild(listItem);
|
||||
});
|
||||
} else {
|
||||
@ -83,12 +84,13 @@ function openDynamicPopup(subitem) {
|
||||
}
|
||||
|
||||
// Kopierfunktion für den Identifier
|
||||
document.getElementById('dynamicCopyButton').addEventListener('click', function () {
|
||||
const copyButton = document.getElementById('dynamicCopyButton');
|
||||
copyButton.onclick = () => {
|
||||
modalContent.select();
|
||||
navigator.clipboard.writeText(modalContent.value).then(() => {
|
||||
alert('Identifier copied to clipboard!');
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// Modal anzeigen
|
||||
const modal = new bootstrap.Modal(document.getElementById('dynamicModal'));
|
||||
|
Loading…
Reference in New Issue
Block a user