Aktionen

Materialseite: Unterschied zwischen den Versionen

Aus exmediawiki

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…“
 
Theo (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 118: Zeile 118:


</div>
</div>
<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>

Version vom 26. Mai 2025, 13:34 Uhr


Materials


Natural materials

Holz

Metalle

Kunststoffe