Aktionen

Materialseite

Aus exmediawiki

Version vom 26. Mai 2025, 13:04 Uhr von Theo (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „__NOTOC__ <h2>Materials</h2> <br> <h4>Natural materials</h4> <!-- Main container --> <div style="display: flex; flex-wrap: wrap; gap: 0.5em; align-items: fle…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)


Materials


Natural materials

Holz

Metalle

Kunststoffe

<script> document.addEventListener('DOMContentLoaded', function() {

 // Get all toggle buttons
 const toggleButtons = document.querySelectorAll('.toggle-button');
 const contentSections = document.querySelectorAll('.content-section');
 let currentlyOpen = null;
 toggleButtons.forEach(function(button) {
   button.addEventListener('click', function() {
     const targetId = this.getAttribute('data-target');
     const targetContent = document.getElementById(targetId);
     
     // If clicking the same button that's already open, close it
     if (currentlyOpen === targetId) {
       targetContent.style.display = 'none';
       currentlyOpen = null;
       return;
     }
     
     // Hide all content sections
     contentSections.forEach(function(section) {
       section.style.display = 'none';
     });
     
     // Show the target content
     targetContent.style.display = 'block';
     currentlyOpen = targetId;
   });
 });

}); </script>