Difference between revisions of "Team:BGU Israel/Notebook"

Line 436: Line 436:
 
   </div>
 
   </div>
 
</div>
 
</div>
 
+
</div>
<!-- accordion script -->
+
<script>
+
var acc = document.getElementsByClassName("accordion");
+
var i;
+
 
+
for (i = 0; i < acc.length; i++) {
+
  acc[i].addEventListener("click", function() {
+
    this.classList.toggle("active");
+
    var panel = this.nextElementSibling;
+
    if (panel.style.maxHeight){
+
      panel.style.maxHeight = null;
+
    } else {
+
      panel.style.maxHeight = panel.scrollHeight + "px";
+
    }
+
  });
+
}
+
</script>
+
<!-- accordion script end -->
+
  
 
<style>
 
<style>
Line 999: Line 981:
  
 
</script>
 
</script>
 +
 +
 
 +
<!-- accordion script -->
 +
<script>
 +
var acc = document.getElementsByClassName("accordion");
 +
var i;
 +
 +
for (i = 0; i < acc.length; i++) {
 +
  acc[i].addEventListener("click", function() {
 +
    this.classList.toggle("active");
 +
    var panel = this.nextElementSibling;
 +
    if (panel.style.maxHeight){
 +
      panel.style.maxHeight = null;
 +
    } else {
 +
      panel.style.maxHeight = panel.scrollHeight + "px";
 +
    }
 +
  });
 +
}
 +
</script>
 +
<!-- accordion script end -->
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 11:22, 6 September 2018

OriginALS

<!DOCTYPE html> OriginALS

Notebook

In this example we have added a "plus" sign to each button. When the user clicks on the button, the "plus" sign is replaced with a "minus" sign.

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.

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.

About OrignALS


Established in 2006, EchoSense Ltd. develops innovative ultrasound Doppler systems for the diagnosis and monitoring of cardiac and pulmonary diseases. EchoSense delivers a fast,reliable and non-invasive method of diagnosis and our technology has undergone successful clinical trials in the United States, Europe and Israel. The Echosense research and development center is based in Haifa, Israel.