exam-master/WebRoot/js/util.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//################for the jsp in tester/admin/examinee/addExaminee.jsp################
//function checkOverlap()
var theURL = "checkoverlap?examinee_id=";
var http = getHTTPObject();

function handleHttpResponse() {
	if (http.readyState == 4) {
   		checkoverlap.innerHTML = http.responseText;
		//alert(http.responseText);
	}
}

function checkOverlap() {
	var examinee_id = document.forms[0].elements[0].value;
	if ((null == examinee_id)||("" == examinee_id)) {
		checkoverlap.innerHTML = "请输入准考证号!";
		return;
	}
	http.open("POST", theURL + examinee_id, false);
	http.setRequestHeader("Pragma", "no-cache");
	http.setRequestHeader("Cache-Control", "no-cache");
	http.onreadystatechange = handleHttpResponse;
	http.send(null);
}

function getHTTPObject() {
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
	} catch (e) {
		try {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) {
			xmlhttp = false;
		}
	}

	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp = false;
		}
	}

	return xmlhttp;
}


//######for the jsp tester/exam/showTest.jsp#####
//function onTimer()

var normalelapse = timer - 120000;
var nextelapse = normalelapse;
var counter;
var startTime;
var start = "00:01:00:00";
var finish = "00:00:00:00";
var timer = null;

后面还有 73 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。