-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathydlj.html
More file actions
55 lines (46 loc) · 1.88 KB
/
ydlj.html
File metadata and controls
55 lines (46 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>阅读理解测试</title>
<style>
textarea {
display: block;
margin-bottom: 10px;
width: 100%;
}
</style>
</head>
<body>
<h1>阅读理解测试</h1>
<form id="readingComprehensionForm">
<label for="articleInput">请输入文章内容:</label>
<textarea id="articleInput" rows="10"></textarea>
<label for="questionInput">请输入问题:</label>
<textarea id="questionInput" rows="5"></textarea>
<label for="optionInput">请输入选项(每行一个选项):</label>
<textarea id="optionInput" rows="5"></textarea>
<input type="button" value="提交" onclick="outputReadingComprehensionProcess()">
</form>
<h2>阅读理解过程:</h2>
<div id="output">
<!-- 这里将输出阅读理解过程 -->
</div>
<script>
function outputReadingComprehensionProcess() {
const article = document.getElementById("articleInput").value;
const question = document.getElementById("questionInput").value;
const options = document.getElementById("optionInput").value.split('\n');
const outputDiv = document.getElementById("output");
outputDiv.innerHTML = "<p>文章:<br>" + article + "</p>" +
"<p>问题:<br>" + question + "</p>" +
"<p>选项:</p><ul>";
for (let i = 0; i < options.length; i++) {
outputDiv.innerHTML += "<li>" + options[i].trim() + "</li>";
}
outputDiv.innerHTML += "</ul>";
}
</script>
</body>
</html>