File "tib-quizzes.min.js"

Path: /ThinkIB/chem/js/tib-quizzesminjs
File size: 1.37 KB
MIME-type: text/plain
Charset: utf-8

 
Open Back
let i=0,limitPerLine=120,nExercises=0,nChecked=0,nCorrect=0,nAnswers=0,isRadio=!1,uploadedFiles=[];$(document).ready((function(){nExercises=$(".exercise").length,nChecked=nExercises,$(".exercise").not(":has(table.match-table)").each((function(){var exercise=$(this);if($(this).find(".draggable").length>1){var children=exercise.find(".draggable"),parent=exercise.find(".draggable").first().parent();if(children.length>1){children.hide();var indices=[];for(i=0;i<children.length;i++)indices[indices.length]=i;indices=indices.sort(()=>Math.random()-.5),$.each(indices,(function(j,k){var a;children.eq(k).appendTo(parent).show()}))}}})),tibQuiz(),numberQuizQuestions(),limitMultipleChoiceAnswers(),submitManualTask(),dragOver(),dragLeave(),drop(),bindDraggables(),countCharsLeft(),preventMatchKeyInput(),countAnswerEssayWords(),getLengthTextInputs(),buttonRulesWrittenAnswers(),buttonRulesModelAnswers(),"undefined"!=typeof pageId||"undefined"!=typeof blogId||"undefined"==typeof isStudent||isStudent||(addMaxCheckboxesToAnswers(),checkQuizPageViewer(),checkIndividualQuestionPageViewer()),"undefined"!=typeof answerIds&&(initInlineCKEditor(answerIds),saveWrittenTaskAsDraft($("a.save-as-draft"),answerIds),"undefined"==typeof isStudent||isStudent||(addShowModelAnswerExplanation(),removeEmptyModelAnswers())),alertMaxCorrectAnswers(),addLettersBeforeOptions(),uploadDedicatedAttachments(),hideUploader()}));