增加后台功能

This commit is contained in:
2018-04-15 23:30:15 +08:00
parent 8f92efaf7b
commit 42335efe55
1118 changed files with 296710 additions and 4 deletions
+20
View File
@@ -0,0 +1,20 @@
(function() {
$(document).ready(function() {
var timelineAnimate;
timelineAnimate = function(elem) {
return $(".timeline.animated .timeline-row").each(function(i) {
var bottom_of_object, bottom_of_window;
bottom_of_object = $(this).position().top + $(this).outerHeight();
bottom_of_window = $(window).scrollTop() + $(window).height();
if (bottom_of_window > bottom_of_object) {
return $(this).addClass("active");
}
});
};
timelineAnimate();
return $(window).scroll(function() {
return timelineAnimate();
});
});
}).call(this);