Line 66: | Line 66: | ||
'use strict'; | 'use strict'; | ||
var document_Height = document.body.clientHeight; | var document_Height = document.body.clientHeight; | ||
− | var dosScroll = | + | var dosScroll = true; |
$(".s1").scroll(function(){ | $(".s1").scroll(function(){ | ||
if (doScroll){ | if (doScroll){ | ||
− | $("s1").animate({top:-document_Height},700,"swing"); | + | doScroll = false; |
+ | $("s1").animate({top:-document_Height},700,"swing",function() {doScroll = true;}); | ||
} | } | ||
}); | }); |
Revision as of 06:59, 15 July 2018
Section 2 Section 3 Section 4
iGEM18
JILIN CHINA