Difference between revisions of "Sandbox-Dropdown-Menu"

(Created page with "<html> <section class="section tot"> <div class="container"> <div class="content"> <div class="columns"> <div class="column"> <div clas...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
 +
<script>var dropdown = document.querySelector('.dropdown');
 +
dropdown.addEventListener('click', function(event) {
 +
  event.stopPropagation();
 +
  dropdown.classList.toggle('is-active');
 +
});</script>
 
     <section class="section tot">
 
     <section class="section tot">
 
       <div class="container">
 
       <div class="container">
Line 36: Line 41:
 
</div>
 
</div>
  
            </div>
 
          </div>
 
        </div>
 
      </div>
 
    </section>
 
 
    <section class="section tot">
 
      <div class="container">
 
        <div class="content">
 
          <div class="columns">
 
            <div class="column">
 
 
             </div>
 
             </div>
 
           </div>
 
           </div>

Latest revision as of 10:12, 13 May 2018