Difference between revisions of "Team:Nottingham/Project"

 
Line 141: Line 141:
 
var firstSegmentPassed = false;
 
var firstSegmentPassed = false;
 
var maximized = true;
 
var maximized = true;
var anchors = ["#description", "#abstract"];
+
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:28, 17 October 2018

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