社群

Mazii 日本學習社區

46 ngày đếm ngược. Tettei N1 bài 23. Chúc mn học tốt!!

name

꒰ა ☆ ໒꒱ Noa ♡✞

學習日語
1. 憧れ(あこがれ):Mơ ước, ngưỡng mộ 例:東京での一人暮らしが彼女の憧れだった。 Sống một mình ở Tokyo là ước mơ của cô ấy 2. 扱い(あつかい):Cách đối xử, cách xử lý 例:彼は子供の扱いが上手だ。 Anh ấy giỏi chăm trẻ con 3. 蓄え(たくわえ):Tích trữ, dự trữ 例:彼には蓄えが十分あった。 Anh ấy có đủ tiền tiết kiệm 4. 企み(たくらみ):Âm mưu, kế hoạch bí mật 例:彼には何か企みがあるようだ。 Có vẻ anh ấy đang âm mưu điều gì đó 5. 賭け(かけ):Cược, cá cược 例:彼は一か八かの賭けに出た。 Anh ấy đã đánh cược một phen may rủi 6. 過ち(あやまち):Sai lầm, lỗi lầm 例:若き日の過ちは誰にも経験があるだろう。 Ai cũng từng mắc sai lầm thời trẻ 7. 叫び(さけび):Tiếng kêu, tiếng hét 例:彼の絵は魂の叫びを表していた。 Bức tranh của anh ấy thể hiện tiếng gào thét của tâm hồn 8. 詫び(わび):Lời xin lỗi 例:迷惑をかけた親戚に詫びを入れた。 Đã xin lỗi người thân vì gây phiền phức 9. 憤り(いきどおり):Sự phẫn nộ, căm phẫn 例:彼の発言には憤りを覚える。 Tôi cảm thấy phẫn nộ trước phát ngôn của anh ấy 10. 夜更け(よふけ):Đêm khuya 例:こんな夜更けにやって来るなんて、誰だろう。 Ai lại đến vào đêm khuya thế này nhỉ 11. 彩り(いろどり):Màu sắc, sự tô điểm 例:花を飾り、食卓に彩りを添えた。 Trang trí hoa làm bàn ăn thêm sinh động 12. 誓い(ちかい):Lời thề, lời hứa 例:二人はいっしょに誓いの言葉を述べた。 Hai người cùng nói lời thề nguyện

評論

icon最古老的
name

TAO_A1

新成員
code flascard cho ae thích học Typing Flashcard body { font-family: Arial; text-align: center; background: #000; color: #fff; } .progress { width: 100%; height: 8px; background: #222; position: fixed; top: 0; left: 0; } .bar { height: 100%; background: #27ae60; width: 0%; } .container { width: 500px; margin: 80px auto; } .card { width: 100%; height: 320px; background: #111; padding: 20px; border-radius: 15px; border: 1px solid #333; box-shadow: 0 8px 20px rgba(255,255,255,0.08); display: flex; flex-direction: column; justify-content: space-between; position: relative; } .vietnamese { font-size: 36px; color: #00ff88; font-weight: bold; min-height: 40px; } input { width: 85%; padding: 12px; font-size: 18px; border-radius: 8px; border: 1px solid #444; margin: 0 auto; background: #1a1a1a; color: #fff; } .result { margin-top: 10px; font-size: 22px; height: 90px; overflow-y: auto; } .correct { color: #00ff88; } .wrong { color: #ff4d4d; } .switch-wrap { position: absolute; bottom: 10px; right: 15px; } .switch { position: relative; display: inline-block; width: 50px; height: 26px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; inset: 0; background-color: #444; transition: .3s; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; } input:checked + .slider { background-color: #27ae60; } input:checked + .slider:before { transform: translateX(24px); } #stats { margin: 10px 0 20px; font-size: 18px; color: #ccc; } 🧠 Typing Flashcard ✅ Đúng: 0 | ❌ Sai: 0 | 🎯 0% Load file để bắt đầu let cards = []; let index = 0; let wrongCount = 0; let totalCorrect = 0; let totalWrong = 0; let retryCards = []; let waitingNext = false; let nextTimeout = null; const vi = document.getElementById("vi"); const input = document.getElementById("answer"); const result = document.getElementById("result"); const bar = document.getElementById("bar"); const flipMode = document.getElementById("flipMode"); const stats = document.getElementById("stats"); function normalize(str){ return (str || "") .toLowerCase() .trim() .replace(/\s+/g, " "); } fileInput.onchange = e => { let reader = new FileReader(); reader.onload = ev => { cards = ev.target.result .split("
") .filter(l => l.trim()) .map(l => { let p = l.split("|"); if(p.length < 2) return null; return { en: normalize(p[0]), vi: normalize(p[1]), explain: p[2]?.trim() }; }) .filter(Boolean); shuffle(cards); index = 0; totalCorrect = 0; totalWrong = 0; retryCards = []; updateStats(); show(); }; reader.readAsText(e.target.files[0]); }; function shuffle(arr){ for(let i = arr.length - 1; i > 0; i--){ let j = Math.floor(Math.random() * (i + 1)); [arr[i], arr[j]] = [arr[j], arr[i]]; } } function normalize(str){ return (str || "") .toLowerCase() .trim() .replace(/\s+/g, " "); } function show(){ clearTimeout(nextTimeout); let c = cards[index]; vi.innerHTML = flipMode.checked ? c.en : c.vi; input.value = ""; result.innerHTML = ""; wrongCount = 0; waitingNext = false; input.focus(); updateBar(); } flipMode.addEventListener("change", show); input.addEventListener("keydown", e => { if(e.key === "Enter"){ if(waitingNext){ clearTimeout(nextTimeout); waitingNext = false; nextCard(); } else { check(); } } }); function check(){ let user = normalize(input.value); let c = cards[index]; let correct = flipMode.checked ? c.vi : c.en; if(user === correct){ totalCorrect++; result.className = "result correct"; result.innerHTML = c.explain || "✔ Đúng!"; waitingNext = true; nextTimeout = setTimeout(() => { waitingNext = false; nextCard(); }, 1200); } else { totalWrong++; wrongCount++; if(!retryCards.includes(c)){ retryCards.push(c); } result.className = "result wrong"; result.innerHTML = wrongCount >= 2 ? `Đáp án: ${correct}${c.explain || ""}` : "❌ Sai! Thử lại..."; } updateStats(); } function nextCard(){ index++; if(index >= cards.length){ if(retryCards.length > 0){ alert(`🔁 Ôn lại ${retryCards.length} câu sai`); cards = [...retryCards]; retryCards = []; shuffle(cards); index = 0; show(); return; } alert("🎉 Hoàn thành toàn bộ!"); index = 0; shuffle(cards); } show(); } function updateStats(){ let total = totalCorrect + totalWrong; let acc = total ? Math.round(totalCorrect / total * 100) : 0; stats.innerHTML = `✅ Đúng: ${totalCorrect} | ❌ Sai: ${totalWrong} | 🎯 ${acc}%`; } function updateBar(){ let percent = cards.length ? ((index + 1) / cards.length) * 100 : 0; bar.style.width = percent + "%"; }

圖表