-
Notifications
You must be signed in to change notification settings - Fork 2
/
conf.cfg
5 lines (5 loc) · 1.2 KB
/
conf.cfg
1
2
3
4
5
[DEFAULT]
EnableCopyScript = document.body.onselectstart="";document.body.oncopy="";document.body.oncut="";document.body.oncontextmenu="";
SelectAnswerScriptTemplate = var strQuestionIds0="%s";var strQuestionAnswer0="%s";var strQuestionAnsers=strQuestionAnswer0.split(",");var questionIds=strQuestionIds0.split(",");var objRightCount=0;if(strQuestionAnsers.length>0){for(var i=0;i<questionIds.length;i++){if(strQuestionAnsers[i]!="0"){var name="radio_"+questionIds[i];var objs=document.getElementsByName(name);for(var j=0;j<objs.length;j++){if(objs[j].value==strQuestionAnsers[i]){objs[j].checked=true;var span=document.getElementById("correctAnswer_"+questionIds[i]);var span_right=document.getElementById("span_right_"+questionIds[i]);var span_wrong=document.getElementById("span_wrong_"+questionIds[i]);if(span!=null&&span_right!=null&&span_wrong!=null){if(span.innerText==strQuestionAnsers[i]){span_right.style.display="";span_wrong.style.display="none";objRightCount++;}else{span_right.style.display="none";span_wrong.style.display="";}}}}}}}doCommit(1,0);
FindQuestionRegEx = <li class="ks_tm.*?" id="(\d*?)">(.*?)\n?</li>
OnlineQuestionBankURL = https://github.com/Qinet/JincinExamHelper/raw/master/online_question_bank