Update index.html
This commit is contained in:
		
							parent
							
								
									b021d7a94d
								
							
						
					
					
						commit
						e649e2f470
					
				
					 1 changed files with 9 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -10,7 +10,8 @@
 | 
			
		|||
            margin: 0;
 | 
			
		||||
            padding: 0;
 | 
			
		||||
            overflow: hidden;
 | 
			
		||||
            background-color: rgba(0, 0, 0, 0.7);
 | 
			
		||||
            /* Entferne den Hintergrund, der den Schleier verursacht */
 | 
			
		||||
            background-color: transparent;
 | 
			
		||||
        }
 | 
			
		||||
        #image-container {
 | 
			
		||||
            position: absolute;
 | 
			
		||||
| 
						 | 
				
			
			@ -34,6 +35,7 @@
 | 
			
		|||
            padding: 5px;
 | 
			
		||||
            border-radius: 3px;
 | 
			
		||||
            font-family: Arial, sans-serif;
 | 
			
		||||
            display: none; /* Verstecke die Dokument-ID standardmäßig */
 | 
			
		||||
        }
 | 
			
		||||
    </style>
 | 
			
		||||
</head>
 | 
			
		||||
| 
						 | 
				
			
			@ -45,12 +47,15 @@
 | 
			
		|||
    <script>
 | 
			
		||||
        window.addEventListener('message', function(event) {
 | 
			
		||||
            if (event.data.action === 'show') {
 | 
			
		||||
                // Zeige das spezifische Dokument basierend auf der ID oder URL
 | 
			
		||||
                // Zeige das spezifische Dokument basierend auf der URL
 | 
			
		||||
                document.getElementById('image').src = event.data.imageUrl;
 | 
			
		||||
                
 | 
			
		||||
                // Zeige optional die Dokument-ID an
 | 
			
		||||
                if (event.data.documentId) {
 | 
			
		||||
                // Zeige optional die Dokument-ID an (nur wenn Debug aktiviert ist)
 | 
			
		||||
                if (event.data.documentId && false) { // Setze auf true für Debug
 | 
			
		||||
                    document.getElementById('document-id').textContent = "Dokument: " + event.data.documentId;
 | 
			
		||||
                    document.getElementById('document-id').style.display = 'block';
 | 
			
		||||
                } else {
 | 
			
		||||
                    document.getElementById('document-id').style.display = 'none';
 | 
			
		||||
                }
 | 
			
		||||
                
 | 
			
		||||
                document.getElementById('image-container').style.display = 'block';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue