mirror of
				https://github.com/kevinveenbirkenbach/homepage.veen.world.git
				synced 2025-11-04 09:27:58 +00:00 
			
		
		
		
	Implemented header and footer menu
This commit is contained in:
		@@ -68,10 +68,16 @@ h3.footer-title{
 | 
			
		||||
 | 
			
		||||
.dropdown-submenu {
 | 
			
		||||
  position: relative;
 | 
			
		||||
  list-style: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.dropdown-submenu > .dropdown-menu {
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 100%;
 | 
			
		||||
    margin-top: -0.5rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.navbar-nav {
 | 
			
		||||
  padding: 0;
 | 
			
		||||
  margin: 0;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										18
									
								
								app/static/js/dynamic-modal.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								app/static/js/dynamic-modal.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
function openDynamicPopup(subitem) {
 | 
			
		||||
    // Set modal title and content
 | 
			
		||||
    document.getElementById('dynamicModalLabel').innerText = subitem.description;
 | 
			
		||||
    const modalContent = document.getElementById('dynamicModalContent');
 | 
			
		||||
    modalContent.value = subitem.address;
 | 
			
		||||
 | 
			
		||||
    // Add copy functionality
 | 
			
		||||
    document.getElementById('dynamicCopyButton').addEventListener('click', function () {
 | 
			
		||||
      modalContent.select();
 | 
			
		||||
      navigator.clipboard.writeText(modalContent.value)
 | 
			
		||||
        .then(() => alert('Content copied to clipboard!'))
 | 
			
		||||
        .catch(() => alert('Failed to copy content.'));
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    // Show the modal
 | 
			
		||||
    const modal = new bootstrap.Modal(document.getElementById('dynamicModal'));
 | 
			
		||||
    modal.show();
 | 
			
		||||
  }
 | 
			
		||||
		Reference in New Issue
	
	Block a user