Difference between revisions of "Team:SDU-Denmark/Notebook"

Line 14: Line 14:
 
     <div class="col-sm-11 col-sm-push-1" >
 
     <div class="col-sm-11 col-sm-push-1" >
 
<!----------CONTENT--------------------------------->
 
<!----------CONTENT--------------------------------->
 +
<button class="accordion">Week 10</button>
 +
<div id="foo" class="panel">
 +
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
 +
</div>
  
 +
<button class="accordion">Week 11</button>
 +
<div id="foo" class="panel">
 +
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
 +
</div>
  
 +
<!--- END CONTENT------------------------------------>
 +
<script>
 +
var acc = document.getElementsByClassName("accordion");
 +
var i;
  
 +
for (i = 0; i < acc.length; i++) {
 +
    acc[i].onclick = function(){
 +
        this.classList.toggle("active");
 +
        this.nextElementSibling.classList.toggle("show");
 +
  }
 +
}
 +
</script>
  
 
<!--- END CONTENT------------------------------------>
 
 
</div> <!-- END COL-11 -->
 
</div> <!-- END COL-11 -->
 
</div> <!-- END ROW-->
 
</div> <!-- END ROW-->

Revision as of 18:59, 12 October 2016

Notebook


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.