|
@@ -212,7 +212,6 @@
|
|
|
<div class="e_tip"><span><b>注意事项:必须按试题顺序在“答题卡”上按要求填涂、作答,答在试卷上的答案无效。</b></span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
<span class="e_page_no">-1-</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -231,7 +230,7 @@
|
|
|
|
|
|
function renderQuestions(list) {
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
- var div = createDom(list[i], i);
|
|
|
+ var div = createElement(list[i], i);
|
|
|
if (div.className.indexOf("e_item") > -1) {
|
|
|
/* 选项 */
|
|
|
tempOptions.push(div);
|
|
@@ -253,7 +252,7 @@
|
|
|
console.log('finished');
|
|
|
}
|
|
|
|
|
|
- function createDom(val, index) {
|
|
|
+ function createElement(val, index) {
|
|
|
var divElement = document.createElement('div');
|
|
|
var className = "";
|
|
|
if (val.indexOf("e_detail") > -1) {
|
|
@@ -271,6 +270,13 @@
|
|
|
return divElement;
|
|
|
}
|
|
|
|
|
|
+ function createPager(pageNo) {
|
|
|
+ var span = document.createElement('span');
|
|
|
+ span.setAttribute("class", "e_page_no");
|
|
|
+ span.innerText = '-' + pageNo + '-';
|
|
|
+ return span;
|
|
|
+ }
|
|
|
+
|
|
|
function appendBox(elements) {
|
|
|
theBox.appendChild(elements);
|
|
|
var curHeight = theBox.clientHeight;
|
|
@@ -282,6 +288,11 @@
|
|
|
var curContent = document.createElement('div');
|
|
|
curContent.setAttribute('class', 'e_content');
|
|
|
|
|
|
+ if (boxIndex % 2 == 0) {
|
|
|
+ var curPager = createPager((boxIndex / 2) + 1);
|
|
|
+ curContent.appendChild(curPager);
|
|
|
+ }
|
|
|
+
|
|
|
var curBox = document.createElement('div');
|
|
|
var curBoxIndex = "e_box_" + boxIndex;
|
|
|
curBox.id = curBoxIndex;
|