Jump to content

Template:Infobox What Do I Want

An idea by Jeff Lawlor
Created on 2025-04-17
Revision as of 18:38, 25 April 2025 by Admin (talk | contribs)
 <figure class="infobox-image">
 </figure>
       
Anonymous
     <button class="infobox-tab" data-tab="about-me">About Me</button>
     <button class="infobox-tab" data-tab="about-idea">About My Idea</button>
   <button class="show-more" onclick="this.previousElementSibling.style.display='block'; this.style.display='none';">Show More</button>
   I give this idea away freely. Here's what I'd like if you decide to make my idea come true, though you're under no obligation

<script>

 document.addEventListener('DOMContentLoaded', function () {
   document.querySelectorAll('.infobox-tab').forEach(button => {
     button.addEventListener('click', () => {
       const tab = button.dataset.tab;
       document.querySelectorAll('.infobox-panel').forEach(panel => panel.style.display = 'none');
       document.querySelector('.infobox-panel.' + tab).style.display = 'block';
       document.querySelectorAll('.infobox-tab').forEach(b => b.classList.remove('active'));
       button.classList.add('active');
     });
   });
 });

</script>