Difference between revisions of "Team:Nottingham/Model"

 
Line 237: Line 237:
 
;
 
;
 
var firstSegmentPassed = false;
 
var firstSegmentPassed = false;
var maximized = true;
+
var anchors = ["#comparison", "#methodology", "#parameters", "#achievements", "#references", "temperate-phage-models", "#lytic-phage-models"];
+
anchors.forEach(anchor => {
+
$(anchor).visibility({
+
onOnScreen: calculations => {
+
$(anchor + "-button").addClass("active");
+
},
+
onOffScreen: calculations => {
+
$(anchor + "-button").removeClass("active");
+
},
+
continuous: true
+
})
+
})
+
 
$(".maximize-button").css("cssText", "display: none !important")
 
$(".maximize-button").css("cssText", "display: none !important")
 
$(".minimize-button").on("click", () => {
 
$(".minimize-button").on("click", () => {

Latest revision as of 22:27, 17 October 2018

Clostridium dTox Project Human Practices Public Engagement Lab Modelling Collaborations Achievements Team Attributions