+
請確認是否全班全到!Please check if everyone is present!
Please Sign Below 請在下方簽名
@@ -161,7 +162,7 @@
}
});
if (cnt == 0) {
- $('#allPresentWarning').removeAttr('hidden');
+ $('#allPresentWarning-' + period).removeAttr('hidden');
}
var canvas = document.getElementById("signature_pad^" + period);
@@ -181,6 +182,7 @@
}
});
resizeCanvas();
+ $('html,body').unbind().animate({ scrollTop: document.getElementById("sign^" + period).offsetTop - $(".sticky-top").outerHeight() - 10 }, 'slow');
}
function unCheckAbs(string) {
document.getElementById('absent^' + string).checked = false;
diff --git a/templates/homeroom.html b/templates/homeroom.html
index fbbb557..2a43805 100644
--- a/templates/homeroom.html
+++ b/templates/homeroom.html
@@ -280,6 +280,7 @@
}
});
resizeCanvas();
+ $('html,body').unbind().animate({ scrollTop: $("#finalCheck").offset().top - $(".sticky-top").outerHeight() - 10 }, 'slow');
}
function afterSelAbs(period) {
var tobeformArr = [];