แสกน QR เพื่อเปิดหน้านี้
สำหรับครูผู้สอน — ฉายหรือพิมพ์ QR ให้นักเรียนแสกน
https://krueng.ai/offline.html
ดาวน์โหลดคอร์สไว้ใช้ออฟไลน์

คอร์สนี้ครอบคลุม 12 หัวข้อ เต็มรูปแบบ — ศิลปะ, การทำอาหาร, สิ่งแวดล้อม, เทศกาล, อนาคต, สุขภาพ, อาชีพ, ดนตรี, อวกาศ, กีฬา, เทคโนโลยี, การเดินทาง

  • ใช้งานได้โดยไม่ต้องมีอินเทอร์เน็ต
  • บัตรคำศัพท์, เรื่องสั้น, เพลง, เกม, แบบทดสอบ และรางวัล
  • ดาวน์โหลดครั้งเดียว ใช้ได้นานเท่าที่ต้องการ
  • Works completely offline after install

ขนาดประมาณ 5–10 MB  ·  ~5–10 MB storage required

สำหรับผู้ใช้ iPhone / iPad (Safari) — How to install on iOS
1. กด "ติดตั้งคอร์ส" ด้านบนเพื่อดาวน์โหลดไฟล์ทั้งหมด
2. แตะปุ่ม แชร์ ที่ด้านล่างของ Safari
3. เลือก "Add to Home Screen" / "เพิ่มลงในหน้าจอหลัก"
4. แตะ "Add" — ไอคอนจะปรากฏบนหน้าจอหลัก
⚠ iOS จะลบข้อมูลออฟไลน์หากไม่ได้เปิดแอปนาน 7 วัน
กรุณาเปิดคอร์สอย่างน้อยสัปดาห์ละครั้ง
(iOS purges offline cache after ~7 days of non-use. Open the app at least once a week.)
กำลังติดตั้งคอร์ส… / Installing…
กรุณาอย่าปิดหน้านี้ระหว่างดาวน์โหลด
0 / 98 ไฟล์ 0%
Course Ready — Works Offline!
ติดตั้งเสร็จแล้ว ใช้งานได้โดยไม่ต้องมีอินเทอร์เน็ต
📋 ดูสารบัญทั้งหมด / Full Course Syllabus
เลือกบทเรียน / Choose a Lesson
⚠️
ดาวน์โหลดไม่สมบูรณ์ / Installation Error
บางไฟล์ดาวน์โหลดไม่สำเร็จ กรุณาลองใหม่อีกครั้ง

🏗️ How Offline Works / ระบบออฟไลน์ทำงานอย่างไร

Offline PWA — How It Works ระบบดาวน์โหลดคอร์สออฟไลน์ทำงานอย่างไร STEP 1: Scan QR Code / สแกน QR Code 📱 📷 krueng.ai/offline.html Facilitator shows QR at village, temple, school, or market อาสาสมัครแสดง QR ที่หมู่บ้าน วัด โรงเรียน STEP 2: One-Time Download / ดาวน์โหลดครั้งเดียว ⚡ Needs Internet ☁️ CloudFront CDN krueng.ai S3 → edge servers worldwide S3 → เซิร์ฟเวอร์ขอบทั่วโลก 98 files ~50MB ⚙️ Service Worker sw.js Downloads in batches of 10 ดาวน์โหลดทีละ 10 ไฟล์ cache 💾 Cache Storage tefl-offline-v1 Saved on your phone เก็บในโทรศัพท์ของคุณ Progress 72/98 ~1 min on 3G STEP 3: Use Offline Forever / ใช้งานออฟไลน์ตลอดไป ✅ No Internet Needed 📱 Your Phone โทรศัพท์ของคุณ 📚 App Icon Home Screen Add to Home Screen เพิ่มไปยังหน้าจอหลัก Works like a real app! tap ⚙️ Service Worker Intercepts Every page request goes through sw.js ทุกคำขอหน้าเว็บผ่าน sw.js 1. Check cache first / เช็คแคชก่อน 2. Found! Return instantly / เจอ! ส่งทันที 3. No cache? Try network / ไม่มี? ลองออนไลน์ 💾 Cache Storage 98 files on your phone 98 ไฟล์ในโทรศัพท์ 84× lesson HTML pages 12× hero images (PNG) 1× syllabus page 1× offline.html (this page) Total: ~50MB Stays until you clear browser data ⚡ Instant! Page loads from cache — no internet needed ⚡ Instant! Page loads from cache — no internet needed WHAT'S INSIDE: 12 Weeks × 7 Page Types = 84 Interactive Lessons เนื้อหา: 12 สัปดาห์ × 7 ประเภทหน้า = 84 บทเรียนอินเทอร์แอคทีฟ 📖 Stories เรื่องราว 6 หน้า + คำถาม 🎮 Games เกม Match/Scramble/Spell 🎵 Songs เพลง YouTube + Fill-in 📰 Reading บทอ่าน Thai+English 🃏 Flashcards แฟลชการ์ด Flip + Audio 🏆 Quizzes แบบทดสอบ 10 ข้อ + คะแนน 🌟 Rewards รางวัล + Confetti 🎉 🔊 Audio (TTS) อ่านออกเสียง ทุกคำศัพท์

📖 How the Offline System Works / ระบบออฟไลน์ทำงานอย่างไร

Step 1: Scan & Open / สแกนและเปิด

A facilitator (volunteer, teacher, health worker) shows the QR code at a village, temple, school, or market. Anyone with a smartphone scans it — the browser opens krueng.ai/offline.html (this page).

อาสาสมัคร ครู หรือเจ้าหน้าที่สาธารณสุข แสดง QR Code ที่หมู่บ้าน วัด โรงเรียน หรือตลาด ทุกคนที่มีสมาร์ทโฟนสแกนได้ — เบราว์เซอร์จะเปิดหน้า krueng.ai/offline.html (หน้านี้)

Step 2: One-Time Download / ดาวน์โหลดครั้งเดียว

Tap "Install Course". The Service Worker (sw.js) downloads all 98 files from the CloudFront CDN in batches of 10. A progress bar shows how many files are cached. On 3G, this takes about 1 minute. The files are stored in your phone's Cache Storage — a built-in browser feature that saves web pages for offline use.

  • 84 lesson pages — each is a complete standalone HTML file with all CSS, JavaScript, games, quizzes, and interactivity built in
  • 12 hero images — one per week, AI-generated illustrations
  • 1 syllabus page — course overview with links to all 12 weeks
  • 1 offline page — this page, which becomes the app's home screen

If the download fails partway (bad signal), just tap Retry — it picks up where it left off.

กด "ติดตั้งคอร์ส" Service Worker (sw.js) จะดาวน์โหลดไฟล์ทั้งหมด 98 ไฟล์จาก CloudFront CDN ทีละ 10 ไฟล์ แถบความคืบหน้าแสดงจำนวนไฟล์ที่แคชแล้ว บน 3G ใช้เวลาประมาณ 1 นาที ไฟล์จะถูกเก็บใน Cache Storage ของโทรศัพท์ — ฟีเจอร์ของเบราว์เซอร์ที่บันทึกหน้าเว็บสำหรับใช้งานออฟไลน์ หากดาวน์โหลดไม่สำเร็จ (สัญญาณไม่ดี) กด ลองใหม่ — ระบบจะดาวน์โหลดต่อจากที่ค้างไว้

Step 3: Use Offline Forever / ใช้งานออฟไลน์ตลอดไป

Once downloaded, the course works with zero internet. Here's how:

  1. You tap a lesson page (e.g. Week 3: Space Story)
  2. Your browser asks the Service Worker for the file
  3. The Service Worker checks the Cache Storage — found it!
  4. The page loads instantly from your phone's memory — no network request at all

Every page includes text-to-speech pronunciation (built into the browser), interactive games, flip flashcards, quizzes with scoring, and bilingual Thai/English content. All of this works offline because it's all inside the HTML file itself — no external servers needed.

You can also Add to Home Screen — the course appears as an app icon on your phone. Tap it and it opens full-screen, just like a real app.

เมื่อดาวน์โหลดแล้ว คอร์สทำงานได้โดยไม่ต้องมีอินเทอร์เน็ต: เมื่อคุณเปิดหน้าบทเรียน เบราว์เซอร์จะถาม Service Worker → Service Worker เช็ค Cache Storage → เจอ! → หน้าโหลดทันทีจากหน่วยความจำโทรศัพท์ ไม่มีการเรียกเครือข่ายเลย ทุกหน้ามีฟังก์ชันอ่านออกเสียง เกมอินเทอร์แอคทีฟ แฟลชการ์ดพลิกได้ แบบทดสอบพร้อมคะแนน และเนื้อหาสองภาษาไทย/อังกฤษ ทั้งหมดทำงานออฟไลน์เพราะทุกอย่างอยู่ในไฟล์ HTML เดียว คุณยังสามารถเพิ่มไปยังหน้าจอหลักได้ — คอร์สจะปรากฏเป็นไอคอนแอปบนโทรศัพท์

Sharing / การแชร์

The course can spread from phone to phone without internet:

  • QR Code — print it on paper and post it anywhere
  • Bluetooth / Wi-Fi Direct — share the cached files between nearby phones
  • SD Card — copy the files to a micro SD card and pass it around
  • Local hotspot — one phone with the course runs a Wi-Fi hotspot, others connect and download

Cost: Free forever. No app store. No subscription. No account. No tracking. No ads.

คอร์สแพร่กระจายจากโทรศัพท์สู่โทรศัพท์ได้โดยไม่ต้องมีอินเทอร์เน็ต: QR Code พิมพ์บนกระดาษ, Bluetooth/Wi-Fi Direct, SD Card, หรือฮอตสปอตในเครื่อง ฟรีตลอดไป ไม่มี App Store ไม่มีสมัครสมาชิก ไม่มีบัญชี ไม่มีการติดตาม ไม่มีโฆษณา

Course Content / เนื้อหาคอร์ส

12 weeks, 84 pages, 120 vocabulary words

💻 Technology ✈️ Travel 🚀 Space 🌿 Environment 🎵 Music 💪 Health 🍳 Cooking 🎉 Festivals 👩‍🔬 Jobs ⚽ Sports 🎨 Art 🌟 Future

Each week: Story, Game, Song, Reading, Flashcards, Quiz, Reward — all bilingual Thai/English with text-to-speech.

แต่ละสัปดาห์: เรื่องราว เกม เพลง บทอ่าน แฟลชการ์ด แบบทดสอบ รางวัล — สองภาษาไทย/อังกฤษ พร้อมอ่านออกเสียง

Technical Details / รายละเอียดทางเทคนิค

ComponentWhat It Does / ทำอะไร
sw.js (Service Worker)Runs in the background. Intercepts every page request and serves from cache. Downloads files in batches of 10 on install. / ทำงานเบื้องหลัง ดักจับทุกคำขอหน้าเว็บและส่งจากแคช ดาวน์โหลดทีละ 10 ไฟล์ตอนติดตั้ง
Cache APIBrowser's built-in offline storage. Saves complete web pages on your phone. Persists until you clear browser data. / พื้นที่เก็บข้อมูลออฟไลน์ของเบราว์เซอร์ บันทึกหน้าเว็บบนโทรศัพท์ คงอยู่จนกว่าจะล้างข้อมูล
manifest.jsonMakes this page installable as a PWA. Adds an app icon to your home screen. Opens full-screen. / ทำให้หน้านี้ติดตั้งเป็น PWA ได้ เพิ่มไอคอนแอปบนหน้าจอหลัก เปิดแบบเต็มจอ
Standalone HTMLEach lesson is one HTML file with ALL code inside — no external CSS, JS, or API calls. This is why it works offline. / แต่ละบทเรียนเป็นไฟล์ HTML หนึ่งไฟล์ที่มีโค้ดทั้งหมดอยู่ภายใน — ไม่มี CSS, JS หรือ API ภายนอก นี่คือเหตุผลที่ทำงานออฟไลน์ได้
Web Speech APIText-to-speech pronunciation built into every phone's browser. Tap any English word to hear it. / อ่านออกเสียงในเบราว์เซอร์ของทุกโทรศัพท์ แตะคำภาษาอังกฤษเพื่อฟัง