-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunit5_2.html
More file actions
588 lines (562 loc) · 25.9 KB
/
Copy pathunit5_2.html
File metadata and controls
588 lines (562 loc) · 25.9 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>英文作文這樣寫。就! - Unit 5</title>
<style>
body {
font-family: 'Times New Roman', serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f7f7f7;
color: #333;
}
.book-page {
width: 8.5in;
min-height: 11in;
margin: 0 auto;
padding: 0.5in;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
position: relative;
}
.header {
text-align: right;
font-size: 0.8em;
color: #777;
margin-bottom: 0.5em;
}
.page-number {
position: absolute;
bottom: 0.3in;
right: 0.5in;
font-size: 0.9em;
color: #555;
}
.unit-title {
text-align: center;
font-size: 2em;
font-weight: bold;
margin-bottom: 0.5em;
}
.section-title {
font-size: 1.5em;
font-weight: bold;
border-bottom: 2px solid #ccc;
padding-bottom: 0.2em;
margin-top: 1.5em;
}
.subsection-title {
font-size: 1.2em;
font-weight: bold;
margin-top: 1em;
}
.content {
font-size: 1.1em;
text-indent: 2em;
margin-bottom: 1em;
}
.content-paragraph {
text-indent: 2em;
margin-bottom: 1em;
}
.list-style {
list-style: none;
padding-left: 2em;
}
.list-style li {
text-indent: -1.5em;
margin-bottom: 0.5em;
}
.tip {
background-color: #f0f8ff;
border-left: 5px solid #add8e6;
padding: 1em;
margin: 1em 0;
}
.example-box {
background-color: #f5f5f5;
border: 1px solid #ddd;
padding: 1.5em;
margin: 1em 0;
}
.example-title {
font-weight: bold;
color: #004d99;
}
.interactive-section {
margin-top: 2em;
padding: 1em;
background-color: #f5f5f5;
border: 1px solid #ddd;
border-radius: 4px;
}
.interactive-section h3 {
color: #333;
font-size: 1.2em;
margin-top: 0;
}
.sortable-list {
list-style: none;
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.sortable-item {
background-color: #fff;
border: 1px solid #ccc;
padding: 10px;
cursor: grab;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: space-between;
}
.answer-box {
width: 100%;
min-height: 100px;
border: 2px dashed #999;
background-color: #f9f9f9;
padding: 10px;
margin-top: 10px;
font-style: italic;
color: #777;
}
.question-option {
background-color: #fff;
border: 1px solid #ccc;
padding: 10px;
margin-bottom: 10px;
cursor: pointer;
border-radius: 4px;
}
.question-option:hover {
background-color: #e0e0e0;
}
.correct {
background-color: #d4edda;
border-color: #c3e6cb;
}
.incorrect {
background-color: #f8d7da;
border-color: #f5c6cb;
}
.feedback {
margin-top: 10px;
font-weight: bold;
display: none;
}
.check-button {
margin-top: 1em;
padding: 0.5em 1.5em;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.check-button:hover {
background-color: #0056b3;
}
.input-fill {
width: 100%;
border: 1px solid #ccc;
padding: 8px;
margin-top: 5px;
box-sizing: border-box;
}
.inline-image {
display: block;
margin: 1em auto;
width: 70%;
height: auto;
}
.unrelated-item {
background-color: #f8d7da;
border: 1px solid #f5c6cb;
}
</style>
</head>
<body>
<div class="book-page">
<div class="header">英文作文這樣寫。就!</div>
<div class="section-title">5-4 結論句</div>
<div class="content">
<p>一個段落的結語句(concluding sentence)是用來總結主題句,並強化段落的中心思想。它通常放在段落的末尾,提供一個強而有力的結束,讓讀者對段落的內容留下深刻印象。結語句可以重述主題句、提出建議、呼應開頭,或預示後續發展,但要避免引入新資訊。</p>
<div class="subsection-title">結語句常見的問題:</div>
<ol class="list-style">
<li>內容過於簡短,缺乏總結力。</li>
<li>引入新想法,使段落不完整。</li>
<li>與主題句不相關。</li>
</ol>
<div class="tip">
<span class="example-title">Tip</span>
<p>結語句通常會使用過渡詞,如 in conclusion、to sum up、therefore 等。</p>
</div>
</div>
<div class="section-title">練習寫寫看 D</div>
<p>選出最適合當結語句的句子。</p>
<div class="interactive-section">
<h3>1. 顏色與情緒</h3>
<p>主題句: Many people believe that colors can affect emotions.</p>
<ul id="options-d1">
<li class="question-option">A) Therefore, colors affect our emotions in many ways.</li>
<li class="question-option">B) Red is my favorite color.</li>
<li class="question-option">C) Blue is often associated with calmness.</li>
<li class="question-option">D) Yellow can make people feel happy.</li>
</ul>
<button class="check-button" onclick="checkMultipleChoice('d1', 'A) Therefore, colors affect our emotions in many ways.')">檢查答案</button>
<div id="feedback-d1" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>2. 製作湯</h3>
<p>主題句: Making soup is a simple and rewarding process.</p>
<ul id="options-d2">
<li class="question-option">A) In summary, making soup requires patience.</li>
<li class="question-option">B) Add salt to taste.</li>
<li class="question-option">C) The soup is ready to serve.</li>
<li class="question-option">D) Chop the vegetables finely.</li>
</ul>
<button class="check-button" onclick="checkMultipleChoice('d2', 'A) In summary, making soup requires patience.')">檢查答案</button>
<div id="feedback-d2" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>3. 欣賞歌劇</h3>
<p>主題句: Here are some useful tips for you to learn how to enjoy operas.</p>
<ul id="options-d3">
<li class="question-option">A) Opera has a long history.</li>
<li class="question-option">B) To conclude, operas can be enjoyable with the right approach.</li>
<li class="question-option">C) Mozart composed many operas.</li>
<li class="question-option">D) The costumes are beautiful.</li>
</ul>
<button class="check-button" onclick="checkMultipleChoice('d3', 'B) To conclude, operas can be enjoyable with the right approach.')">檢查答案</button>
<div id="feedback-d3" class="feedback"></div>
</div>
<div class="page-number">65</div>
</div>
<div class="book-page">
<div class="header">英文作文這樣寫。就!</div>
<div class="section-title">練習寫寫看 D (續)</div>
<p>寫出適當的結語句。</p>
<div class="interactive-section">
<h3>4. 旅行的益處</h3>
<p>Traveling broadens the mind. It allows people to experience new cultures and foods. Meeting locals can lead to lifelong friendships.</p>
<input type="text" class="input-fill" id="input-d4" placeholder="請輸入結語句">
<button class="check-button" onclick="checkInputAnswer('input-d4', 'Therefore, traveling is an excellent way to gain new perspectives and create lasting memories.')">檢查答案</button>
<div id="feedback-d4" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>5. 閱讀的重要性</h3>
<p>Reading books improves vocabulary. It also enhances imagination and reduces stress. Many successful people attribute their success to reading habits.</p>
<input type="text" class="input-fill" id="input-d5" placeholder="請輸入結語句">
<button class="check-button" onclick="checkInputAnswer('input-d5', 'In short, reading is a powerful tool for personal and professional growth.')">檢查答案</button>
<div id="feedback-d5" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>6. 運動與健康</h3>
<p>Exercise is essential for health. It strengthens muscles and improves cardiovascular function. Regular activity can prevent diseases.</p>
<input type="text" class="input-fill" id="input-d6" placeholder="請輸入結語句">
<button class="check-button" onclick="checkInputAnswer('input-d6', 'Ultimately, incorporating regular exercise into your routine is a key step towards a healthier life.')">檢查答案</button>
<div id="feedback-d6" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>7. 學習語言的好處</h3>
<p>Learning a new language opens doors to opportunities. It helps in understanding different cultures and boosts career prospects.</p>
<input type="text" class="input-fill" id="input-d7" placeholder="請輸入結語句">
<button class="check-button" onclick="checkInputAnswer('input-d7', 'In conclusion, a second language is a valuable asset that offers both personal and professional benefits.')">檢查答案</button>
<div id="feedback-d7" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>8. 環境保護</h3>
<p>Environmental protection is everyone's responsibility. Recycling and conserving water are simple ways to contribute. Small actions can make a big difference.</p>
<input type="text" class="input-fill" id="input-d8" placeholder="請輸入結語句">
<button class="check-button" onclick="checkInputAnswer('input-d8', 'To sum up, every small effort counts in preserving our planet for future generations.')">檢查答案</button>
<div id="feedback-d8" class="feedback"></div>
</div>
<div class="page-number">66</div>
</div>
<div class="book-page">
<div class="header">英文作文這樣寫。就!</div>
<div class="section-title">5-5 段落的一致性與連貫性</div>
<div class="content">
<p>一個好的段落不只要有主題句、支持句和結語句,還必須具備「一致性」(unity)和「連貫性」(coherence)。</p>
<div class="subsection-title">一致性 (Unity)</div>
<p>指段落的所有句子都圍繞著主題句發展,沒有任何無關的內容。</p>
<div class="tip">
<span class="example-title">Tip</span>
<p>**一致性問題:** 引入無關的句子。例:In summer, I like to swim. Swimming is fun. My favorite food is ice cream. (食物與「游泳」或「夏天」無關。)</p>
</div>
<div class="subsection-title">連貫性 (Coherence)</div>
<p>指句子之間的邏輯順暢,使用過渡詞連接想法,使文章流暢易讀。</p>
<div class="tip">
<span class="example-title">Tip</span>
<p>**連貫性問題:** 句子跳躍,缺乏連接。例:I woke up. I ate breakfast. I went to school. (可加入 then 或 after that 等詞彙來改善。)</p>
</div>
</div>
<div class="section-title">練習寫寫看 E</div>
<p>找出段落中無關的句子。</p>
<div class="interactive-section">
<h3>1. 交通工具</h3>
<ul id="options-e1">
<li class="question-option">Cars are convenient for travel.</li>
<li class="question-option">They allow flexibility in scheduling.</li>
<li class="question-option" data-answer="true">Bicycles are eco-friendly.</li>
<li class="question-option">Public transport reduces traffic.</li>
</ul>
<button class="check-button" onclick="checkUnrelated('e1')">檢查答案</button>
<div id="feedback-e1" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>2. 健康生活</h3>
<ul id="options-e2">
<li class="question-option">Healthy eating includes fruits and vegetables.</li>
<li class="question-option">They provide vitamins.</li>
<li class="question-option">Fast food is tasty but unhealthy.</li>
<li class="question-option" data-answer="true">Exercise complements diet.</li>
</ul>
<button class="check-button" onclick="checkUnrelated('e2')">檢查答案</button>
<div id="feedback-e2" class="feedback"></div>
</div>
<div class="page-number">69</div>
</div>
<div class="book-page">
<div class="header">英文作文這樣寫。就!</div>
<div class="section-title">練習寫寫看 E (續)</div>
<p>找出段落中無關的句子。</p>
<div class="interactive-section">
<h3>3. 科技與溝通</h3>
<ul id="options-e3">
<li class="question-option">Technology has changed communication.</li>
<li class="question-option">Social media connects people.</li>
<li class="question-option">Phones are portable.</li>
<li class="question-option" data-answer="true">Books are made of paper.</li>
</ul>
<button class="check-button" onclick="checkUnrelated('e3')">檢查答案</button>
<div id="feedback-e3" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>4. 學習音樂</h3>
<ul id="options-e4">
<li class="question-option">Learning music improves concentration.</li>
<li class="question-option">It also enhances creativity.</li>
<li class="question-option">Playing instruments is fun.</li>
<li class="question-option" data-answer="true">Math is important in school.</li>
</ul>
<button class="check-button" onclick="checkUnrelated('e4')">檢查答案</button>
<div id="feedback-e4" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>5. 假期</h3>
<ul id="options-e5">
<li class="question-option">Vacations relax the mind.</li>
<li class="question-option">They offer new experiences.</li>
<li class="question-option">Work is stressful.</li>
<li class="question-option">Family time is valuable during holidays.</li>
<li class="question-option" data-answer="true">Work is stressful.</li>
</ul>
<button class="check-button" onclick="checkUnrelated('e5')">檢查答案</button>
<div id="feedback-e5" class="feedback"></div>
</div>
<div class="page-number">70</div>
</div>
<div class="book-page">
<div class="header">英文作文這樣寫。就!</div>
<div class="section-title">練習寫寫看 F</div>
<p>排列句子使段落連貫。</p>
<div class="interactive-section">
<h3>1. 健康的重要性</h3>
<ul id="sortable-f1" class="sortable-list">
<li class="sortable-item" data-text="Health is important.">Health is important.</li>
<li class="sortable-item" data-text="Therefore, eat balanced meals.">Therefore, eat balanced meals.</li>
<li class="sortable-item" data-text="Next, drink water regularly.">Next, drink water regularly.</li>
<li class="sortable-item" data-text="Additionally, exercise daily.">Additionally, exercise daily.</li>
<li class="sortable-item" data-text="Finally, get enough sleep.">Finally, get enough sleep.</li>
</ul>
<div class="answer-box" id="answer-box-f1" contenteditable="true" placeholder="請將上方句子拖曳至此處排序並修改"></div>
<button class="check-button" onclick="checkSortableAnswer('answer-box-f1', ['Health is important.', 'Therefore, eat balanced meals.', 'Next, drink water regularly.', 'Additionally, exercise daily.', 'Finally, get enough sleep.'])">檢查答案</button>
<div id="feedback-f1" class="feedback"></div>
</div>
<div class="interactive-section">
<h3>2. 烘焙蛋糕</h3>
<ul id="sortable-f2" class="sortable-list">
<li class="sortable-item" data-text="Then, mix them together.">Then, mix them together.</li>
<li class="sortable-item" data-text="Baking a cake is a rewarding process.">Baking a cake is a rewarding process.</li>
<li class="sortable-item" data-text="First, prepare the ingredients.">First, prepare the ingredients.</li>
<li class="sortable-item" data-text="Finally, put the cake in the oven.">Finally, put the cake in the oven.</li>
<li class="sortable-item" data-text="Next, pour the batter into the pan.">Next, pour the batter into the pan.</li>
</ul>
<div class="answer-box" id="answer-box-f2" contenteditable="true" placeholder="請將上方句子拖曳至此處排序並修改"></div>
<button class="check-button" onclick="checkSortableAnswer('answer-box-f2', ['Baking a cake is a rewarding process.', 'First, prepare the ingredients.', 'Then, mix them together.', 'Next, pour the batter into the pan.', 'Finally, put the cake in the oven.'])">檢查答案</button>
<div id="feedback-f2" class="feedback"></div>
</div>
<div class="page-number">71</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Drag and Drop functionality
const sortableLists = document.querySelectorAll('.sortable-list');
sortableLists.forEach(list => {
const items = Array.from(list.children);
items.forEach(item => {
item.draggable = true;
item.addEventListener('dragstart', (e) => {
e.dataTransfer.setData('text/plain', e.target.dataset.text);
e.target.classList.add('dragging');
});
item.addEventListener('dragend', (e) => {
e.target.classList.remove('dragging');
});
});
});
const answerBoxes = document.querySelectorAll('.answer-box');
answerBoxes.forEach(box => {
box.addEventListener('dragover', (e) => {
e.preventDefault();
});
box.addEventListener('drop', (e) => {
e.preventDefault();
const text = e.dataTransfer.getData('text/plain');
const draggedElement = document.querySelector('.dragging');
if (draggedElement) {
box.textContent += (box.textContent.length > 0 ? '\n' : '') + text;
draggedElement.style.display = 'none';
}
});
});
// Multiple Choice functionality
window.checkMultipleChoice = (id, correctOptionText) => {
const list = document.getElementById(`options-${id}`);
const feedbackDiv = document.getElementById(`feedback-${id}`);
const options = list.querySelectorAll('li');
let isCorrect = false;
let selectedText = '';
options.forEach(option => {
option.classList.remove('correct', 'incorrect');
if (option.dataset.selected) {
selectedText = option.textContent.trim();
delete option.dataset.selected;
}
if (option.textContent.trim() === correctOptionText.trim()) {
option.classList.add('correct');
} else {
option.classList.remove('correct');
}
});
const selectedOption = list.querySelector(`[data-selected="true"]`);
if (selectedOption) {
if (selectedOption.textContent.trim() === correctOptionText.trim()) {
isCorrect = true;
}
}
if (isCorrect) {
feedbackDiv.textContent = '答對了!這個句子是最佳的結語句。';
feedbackDiv.style.color = 'green';
} else {
feedbackDiv.textContent = '這個選項不正確。請再試試看。';
feedbackDiv.style.color = 'red';
}
feedbackDiv.style.display = 'block';
};
const mcqLists = document.querySelectorAll('ul[id^="options-"]');
mcqLists.forEach(list => {
list.addEventListener('click', (e) => {
const selectedOption = e.target.closest('li');
if (!selectedOption) return;
list.querySelectorAll('li').forEach(li => {
delete li.dataset.selected;
});
selectedOption.dataset.selected = 'true';
});
});
// Input field checking for Practice D
window.checkInputAnswer = (id, correctText) => {
const inputElement = document.getElementById(id);
const feedbackDiv = document.getElementById(`feedback-${id}`);
const userAnswer = inputElement.value.trim().toLowerCase().replace(/[.,!?]/g, '');
const correctAnswer = correctText.toLowerCase().replace(/[.,!?]/g, '');
if (userAnswer === correctAnswer) {
feedbackDiv.textContent = '答對了!這個結語句非常精準。';
feedbackDiv.style.color = 'green';
} else {
feedbackDiv.textContent = `這個結語句似乎不夠全面或精確。一個可能的答案是: "${correctText}"`;
feedbackDiv.style.color = 'red';
}
feedbackDiv.style.display = 'block';
};
// Unrelated sentence check for Practice E
window.checkUnrelated = (id) => {
const list = document.getElementById(`options-${id}`);
const feedbackDiv = document.getElementById(`feedback-${id}`);
const options = list.querySelectorAll('li');
let allCorrect = true;
let foundCorrectSelection = false;
let foundIncorrectSelection = false;
options.forEach(option => {
const isSelected = option.dataset.selected === 'true';
const isCorrect = option.dataset.answer === 'true';
if (isSelected && isCorrect) {
option.classList.add('correct');
foundCorrectSelection = true;
} else if (isSelected && !isCorrect) {
option.classList.add('incorrect');
foundIncorrectSelection = true;
} else {
option.classList.remove('correct', 'incorrect');
}
});
if (foundCorrectSelection && !foundIncorrectSelection) {
feedbackDiv.textContent = '答對了!你成功找到所有無關的句子。';
feedbackDiv.style.color = 'green';
feedbackDiv.style.display = 'block';
} else if (foundIncorrectSelection) {
feedbackDiv.textContent = '請再檢查一下無關的句子。';
feedbackDiv.style.color = 'red';
feedbackDiv.style.display = 'block';
} else {
feedbackDiv.textContent = '請選擇無關的句子。';
feedbackDiv.style.color = 'red';
feedbackDiv.style.display = 'block';
}
};
const unrelatedLists = document.querySelectorAll('ul[id^="options-e"]');
unrelatedLists.forEach(list => {
list.addEventListener('click', (e) => {
const selectedOption = e.target.closest('li');
if (selectedOption) {
const isCurrentlySelected = selectedOption.dataset.selected === 'true';
selectedOption.dataset.selected = !isCurrentlySelected;
}
});
});
// Sortable answer check for Practice F
window.checkSortableAnswer = (id, correctOrder) => {
const answerBox = document.getElementById(id);
const feedbackDiv = document.getElementById(`feedback-${id}`);
const lines = answerBox.textContent.trim().split('\n').map(line => line.trim());
let isCorrect = true;
if (lines.length !== correctOrder.length) {
isCorrect = false;
} else {
for (let i = 0; i < lines.length; i++) {
if (lines[i].toLowerCase().replace(/[.,!?]/g, '') !== correctOrder[i].toLowerCase().replace(/[.,!?]/g, '')) {
isCorrect = false;
break;
}
}
}
if (isCorrect) {
feedbackDiv.textContent = '答對了!句子的順序非常正確。';
feedbackDiv.style.color = 'green';
} else {
feedbackDiv.textContent = '請檢查句子的順序是否正確。';
feedbackDiv.style.color = 'red';
}
feedbackDiv.style.display = 'block';
};
});
</script>
</body>
</html>