File "std-task-read.min.js"

Path: /ThinkIB/js/std/std-task-readminjs
File size: 834 bytes
MIME-type: text/plain
Charset: utf-8

 
Open Back
function markAsDone(){var iTime=timeSpent(),data={ticket:ticket,std_task_student_id:taskStdId,ini_time:iTime};$.post("pages/std/std-task-read.php?action=mark-as-done",data,(function(response){1==response.success?($(".mark-as-done").remove(),$("#task-done-badge").show(),$("#return-my-tasks").show(),$(".section-title").next(".alert").remove(),sendLogs=!1):"0"==response.success&&alert(response.msg?response.msg:"Something went wrong, please contact support")}),"json")}$(document).ready((function(){var quiz;catchEventsToTrack(),$("#main-content").find(".tib-quiz").each((function(){$(this).find(".manual-q-answer :input").each((function(){$(this).css("color","rgba(0,0,0,1)")}))})),$(".mark-as-done").click((function(e){e.preventDefault(),$(this).html('<i class="fa fa-spin fa-circle-o-notch"></i> Submitting...'),markAsDone()}))}));