Skip to content

Instantly share code, notes, and snippets.

@msdundar msdundar/start.js
Created Nov 29, 2013

Embed
What would you like to do?
<% @diff = ((vize.start - Time.current).to_i + @current_student.id % 60) %>
<script type="text/javascript">
$(document).ready(function() {
$("#countdown_dashboard2").countDown({
targetOffset: {
'day':0,'month':0,'year':0,
'hour':<%= (@diff / 3600) %>,
'min':<%= (@diff / 60) % 60 %>,
'sec':<%= @diff % 60 %>
},
onComplete: function() {
window.location.replace("<%=student_examination_session_path(vize) %>");
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.