Difference between revisions of "Team:KU Leuven"

Line 603: Line 603:
 
         </div>
 
         </div>
 
 
<div id="cont" class="cont s--inactive">
+
<div class="cont s--inactive">
 
 
 
  <!-- cont inner start -->
 
  <!-- cont inner start -->
Line 813: Line 813:
 
</div>
 
</div>
 
<script>
 
<script>
if(document.getElementById('cont').style.display = "block"){
+
var $cont = document.querySelector('.cont');
 +
var $elsArr = [].slice.call(document.querySelectorAll('.el'));
 +
var $closeBtnsArr = [].slice.call(document.querySelectorAll('.el__close-btn'));
  
var $cont = document.querySelector('.cont');
+
setTimeout(function() {
var $elsArr = [].slice.call(document.querySelectorAll('.el'));
+
  $cont.classList.remove('s--inactive');
var $closeBtnsArr = [].slice.call(document.querySelectorAll('.el__close-btn'));
+
}, 200);
  
setTimeout(function() {
+
$elsArr.forEach(function($el) {
  $cont.classList.remove('s--inactive');
+
  $el.addEventListener('click', function() {
}, 200);
+
    if (this.classList.contains('s--active')) return;
 +
    $cont.classList.add('s--el-active');
 +
    this.classList.add('s--active');
 +
  });
 +
});
  
$elsArr.forEach(function($el) {
+
$closeBtnsArr.forEach(function($btn) {
  $el.addEventListener('click', function() {
+
  $btn.addEventListener('click', function(e) {
    if (this.classList.contains('s--active')) return;
+
    e.stopPropagation();
    $cont.classList.add('s--el-active');
+
    $cont.classList.remove('s--el-active');
    this.classList.add('s--active');
+
    document.querySelector('.el.s--active').classList.remove('s--active');
  });
+
  });
});
+
});
  
$closeBtnsArr.forEach(function($btn) {
 
  $btn.addEventListener('click', function(e) {
 
    e.stopPropagation();
 
    $cont.classList.remove('s--el-active');
 
    document.querySelector('.el.s--active').classList.remove('s--active');
 
  });
 
});
 
}
 
  
 
$(function() {
 
$(function() {
Line 846: Line 844:
 
         }
 
         }
  
         // disable skrollr if the window is resized below 768px wide
+
          
        $(window).on('resize', function() {
+
            if ($(window).width() <= 767) {
+
                skrollr.init().destroy(); // skrollr.init() returns the singleton created above
+
            }
+
        });
+
 
     });
 
     });
  
 +
   
  
 
</script>
 
</script>

Revision as of 23:15, 20 September 2017

KU Leuven

HEKcite
1
1

Project

Inspired by the heart

We drew our inspiration from the versatility and robustness of the heart. It beats continuously over the years, rapidly adapting its pace when necessary.
2
2

Research

Creation of the Rhythm

Given our knowledge about heart currents, we hypothesized it would be possible to recreate a steady rhythm in a non-excitable cell using only three ion channels.
3
3

Application

Biosensing

Finally, we aim to influence the pace by varying concentrations of biological effectors. Our main focus is establishing a new form of therapeutic drug monitoring.
4
4

Contact

Contact
5
5