Commit 49cc3eff by Muhammad Shoaib

added the javascript for the window scroll and timer bar will be visible when scrolling the window

parent bf5de42f
...@@ -5,4 +5,16 @@ $(function() { ...@@ -5,4 +5,16 @@ $(function() {
model: new ProctoredExamModel() model: new ProctoredExamModel()
}); });
proctored_exam_view.render(); proctored_exam_view.render();
// show the timer bar when the window scrolls.
$(window).scroll(function() {
if ($(this).scrollTop() > 60){
$(".proctored_exam_status").addClass('fixed');
$(".wrapper-course-material").css('margin-top', '58px');
}
else {
$(".proctored_exam_status").removeClass('fixed');
$(".wrapper-course-material").css('margin-top', '0');
}
});
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment