|
|
|
@ -133,7 +133,8 @@
|
|
|
|
|
|
|
|
|
|
<div class="mui-content mui-scroll-wrapper">
|
|
|
|
|
<div style="margin-left: 10px;margin-top: 10px;"><span
|
|
|
|
|
class="mui-icon-extra mui-icon-extra-outline"></span><span style="margin-left: 3px;">考试剩余时间:</span><span id="time"
|
|
|
|
|
class="mui-icon-extra mui-icon-extra-outline"></span><span
|
|
|
|
|
style="margin-left: 3px;">考试剩余时间:</span><span id="time"
|
|
|
|
|
style="color: red;font-weight: bold;"></span></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -172,15 +173,15 @@
|
|
|
|
|
|
|
|
|
|
<nav class="mui-bar mui-bar-tab">
|
|
|
|
|
|
|
|
|
|
<a class="mui-tab-item" href="#" id="showMenu">
|
|
|
|
|
<a class="mui-tab-item" href="#" id="showMenu" style="color:#007aff">
|
|
|
|
|
<span class="mui-icon mui-icon-bars"></span>
|
|
|
|
|
<span class="mui-tab-label">答题卡</span>
|
|
|
|
|
</a>
|
|
|
|
|
<a class="mui-tab-item" href="#" id="previous">
|
|
|
|
|
<a class="mui-tab-item" href="#" id="previous" style="color:#007aff">
|
|
|
|
|
<span class="mui-icon mui-icon-arrowthinleft"></span>
|
|
|
|
|
<span class="mui-tab-label">上一题</span>
|
|
|
|
|
</a>
|
|
|
|
|
<a class="mui-tab-item" href="#" id="next">
|
|
|
|
|
<a class="mui-tab-item" href="#" id="next" style="color:#007aff">
|
|
|
|
|
<span class="mui-icon mui-icon-arrowthinright"></span>
|
|
|
|
|
<span class="mui-tab-label">下一题</span>
|
|
|
|
|
</a>
|
|
|
|
@ -219,18 +220,19 @@
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
timer.addEventListener('targetAchieved', function (e) {
|
|
|
|
|
mui.alert('考试时间已到,将自动提交!', '提示', function () {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/FengHuang/exam/jiaoJuan",
|
|
|
|
|
type: 'POST',
|
|
|
|
|
success: function (res) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/FengHuang/exam/jiaoJuan",
|
|
|
|
|
type: 'POST',
|
|
|
|
|
success: function (res) {
|
|
|
|
|
mui.alert('考试结束时间已到,系统已自动交卷!', '提示', function () {
|
|
|
|
|
window.location = "./result.html";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
} else if (remainSecond == 0) {
|
|
|
|
|
mui.alert('考试时间已到,将自动提交!', '提示', function () {
|
|
|
|
|
mui.alert('考试结束时间已到,系统已自动交卷!', '提示', function () {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/FengHuang/exam/jiaoJuan",
|
|
|
|
|
type: 'POST',
|
|
|
|
@ -268,8 +270,8 @@
|
|
|
|
|
// 右上角增加提交按钮
|
|
|
|
|
var header = document.getElementById("header");
|
|
|
|
|
var submitBtn = document.createElement('button');
|
|
|
|
|
submitBtn.className = 'mui-btn mui-btn-blue mui-btn-link mui-pull-right';
|
|
|
|
|
submitBtn.innerText = '提交';
|
|
|
|
|
submitBtn.className = 'mui-btn mui-btn-red mui-pull-right';
|
|
|
|
|
submitBtn.innerText = '交卷';
|
|
|
|
|
header.appendChild(submitBtn);
|
|
|
|
|
submitBtn.addEventListener('tap', function () {
|
|
|
|
|
var btnArray = ['取消', '确认'];
|
|
|
|
@ -338,7 +340,7 @@
|
|
|
|
|
$.cookie('order_id', this.textContent, { path: '/' });
|
|
|
|
|
getQuestionInfo();
|
|
|
|
|
offCanvasWrapper.offCanvas('close');
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 根据题号获取题的信息
|
|
|
|
@ -377,7 +379,6 @@
|
|
|
|
|
var reply = $(this).val();
|
|
|
|
|
saveReply(orderId, reply);
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
|
|
|
|
|
orderId++;
|
|
|
|
|
console.log(orderId);
|
|
|
|
|
$.cookie('order_id', orderId, { path: '/' });
|
|
|
|
@ -429,20 +430,9 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|