Files
Bkk1234 4f74a509d5 intro-irre: แปลงตำราวิศวกรรมชลประทานเบื้องต้นเป็นเว็บเอกสาร 10 บท
- tools/extract.py: PDF 300 หน้า -> extracted/pages.json + crop ภาพ/ตาราง/สมการ 423 รูป
  (ถอด PUA วรรณยุกต์ไทย, รวมสระอำ, แยกหัวข้อที่ระดับ span)
- tools/build.py: generator หน้า docs แบบ static (สารบัญซ้าย/เนื้อหา/ในหน้านี้)
- index.html + chapters/ch01..10.html + css/docs.css + js/docs.js
  (ธีม K2D, ค้นหาเต็มเล่มผ่าน data/search.json, dark mode, drawer มือถือ)
- README.md: วิธี build และข้อจำกัดที่รู้อยู่
2026-11-19 01:34:49 +07:00

208 lines
15 KiB
HTML

<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>วิศวกรรมชลประทานเบื้องต้น · Introduction to Irrigation Engineering</title>
<meta name="description" content="ตำราออนไลน์ วิศวกรรมชลประทานเบื้องต้น 10 บท">
<meta name="theme-color" content="#1e3a8a">
<link rel="icon" href="assets/favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="css/docs.css">
</head>
<body data-root="">
<a class="skip" href="#main">ข้ามไปที่เนื้อหา</a>
<header class="topbar">
<button class="icon-btn only-mobile" id="navToggle" aria-label="เปิดสารบัญ" aria-expanded="false">
<svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true"><path d="M3 6h18M3 12h18M3 18h18" stroke="currentColor" stroke-width="2" stroke-linecap="round" fill="none"/></svg>
</button>
<a class="brand" href="index.html">
<svg class="brand-mark" viewBox="0 0 24 24" width="22" height="22" aria-hidden="true">
<path d="M12 2.5c3.6 4.4 6.5 8 6.5 11.2A6.5 6.5 0 0 1 5.5 13.7C5.5 10.5 8.4 6.9 12 2.5Z" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round"/>
<path d="M9 14.4c1.6-1.2 3.4-1.2 5 0" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
</svg>
<span class="brand-text"><strong>วิศวกรรมชลประทานเบื้องต้น</strong><small>02207211</small></span>
</a>
<div class="topbar-actions">
<button class="search-btn" id="searchOpen" aria-label="ค้นหาในตำรา">
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><circle cx="11" cy="11" r="6.5" fill="none" stroke="currentColor" stroke-width="2"/><path d="m16 16 4.5 4.5" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
<span>ค้นหา</span><kbd>Ctrl K</kbd>
</button>
<button class="icon-btn" id="themeToggle" aria-label="สลับโหมดสว่าง/มืด" aria-pressed="false">
<svg class="i-sun" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><circle cx="12" cy="12" r="4.2" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M12 2.6v2.2M12 19.2v2.2M2.6 12h2.2M19.2 12h2.2M5.4 5.4l1.6 1.6M17 17l1.6 1.6M18.6 5.4 17 7M7 17l-1.6 1.6" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>
<svg class="i-moon" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path d="M20 14.5A8.2 8.2 0 0 1 9.5 4a8.4 8.4 0 1 0 10.5 10.5Z" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/></svg>
</button>
</div>
</header>
<main id="main" class="home">
<section class="hero">
<div class="hero-copy">
<p class="eyebrow">ตำราออนไลน์ · 02207211</p>
<h1>วิศวกรรมชลประทานเบื้องต้น</h1>
<p class="hero-sub">Introduction to Irrigation Engineering</p>
<p class="hero-lead">เรียบเรียงเนื้อหาครบทั้ง 10 บท จากต้นฉบับ วิศวกรรมชลประทานเบื้องต้น พิมพ์ครั้งที่ 10 · พ.ศ. 2558
แปลงเป็นเว็บเอกสารที่ค้นหาได้ทุกย่อหน้า เลือกคัดลอกข้อความได้ และเปิดอ่านได้ทุกขนาดหน้าจอ</p>
<div class="hero-actions">
<a class="btn primary" href="chapters/ch01.html">เริ่มอ่านบทที่ 1</a>
<button class="btn ghost" id="searchOpenHero">ค้นหาคำในตำรา</button>
</div>
<dl class="stats">
<div><dt>บท</dt><dd>10</dd></div>
<div><dt>หัวข้อ</dt><dd>65</dd></div>
<div><dt>ภาพและตาราง</dt><dd>423</dd></div>
</dl>
</div>
<figure class="hero-cover">
<img src="assets/cover.jpg" width="640" height="906" alt="หน้าปกตำรา วิศวกรรมชลประทานเบื้องต้น" loading="eager">
<figcaption>ภาควิชาวิศวกรรมชลประทาน มหาวิทยาลัยเกษตรศาสตร์</figcaption>
</figure>
</section>
<section class="chapters">
<h2>สารบัญ</h2>
<ul class="chapter-grid">
<li class="chapter-card">
<a href="chapters/ch01.html">
<span class="card-num">บทที่ 1</span>
<span class="card-title">บทนำ (Introduction)</span>
<span class="card-meta">9 หัวข้อ · หน้า 7–35</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
<li class="chapter-card">
<a href="chapters/ch02.html">
<span class="card-num">บทที่ 2</span>
<span class="card-title">ความสัมพันธ์ระหว่างดิน นํ้า และพืช (Soil-Water-Plant Relationships)</span>
<span class="card-meta">14 หัวข้อ · หน้า 36–76</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
<li class="chapter-card">
<a href="chapters/ch03.html">
<span class="card-num">บทที่ 3</span>
<span class="card-title">ความต้องการนํ้าของพืช (Crop Water Requirements)</span>
<span class="card-meta">10 หัวข้อ · หน้า 77–146</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
<li class="chapter-card">
<a href="chapters/ch04.html">
<span class="card-num">บทที่ 4</span>
<span class="card-title">ความต้องการนํ้าชลประทาน (Irrigation Water Requirements)</span>
<span class="card-meta">11 หัวข้อ · หน้า 147–188</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
<li class="chapter-card">
<a href="chapters/ch05.html">
<span class="card-num">บทที่ 5</span>
<span class="card-title">การกำหนดการให้นํ้าแก่พืช (Irrigation Scheduling)</span>
<span class="card-meta">5 หัวข้อ · หน้า 189–229</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
<li class="chapter-card">
<a href="chapters/ch06.html">
<span class="card-num">บทที่ 6</span>
<span class="card-title">วิธีการให้นํ้าชลประทาน (Irrigation Methods)</span>
<span class="card-meta">2 หัวข้อ · หน้า 230–265</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
<li class="chapter-card">
<a href="chapters/ch07.html">
<span class="card-num">บทที่ 7</span>
<span class="card-title">การส่งนํ้าชลประทาน (Irrigation Water Delivery)</span>
<span class="card-meta">4 หัวข้อ · หน้า 266–277</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
<li class="chapter-card">
<a href="chapters/ch08.html">
<span class="card-num">บทที่ 8</span>
<span class="card-title">การระบายนํ้า (Drainage)</span>
<span class="card-meta">4 หัวข้อ · หน้า 278–285</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
<li class="chapter-card">
<a href="chapters/ch09.html">
<span class="card-num">บทที่ 9</span>
<span class="card-title">การควบคุมการส่งนํ้า (Water Delivery Control)</span>
<span class="card-meta">3 หัวข้อ · หน้า 286–291</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
<li class="chapter-card">
<a href="chapters/ch10.html">
<span class="card-num">บทที่ 10</span>
<span class="card-title">ความรู้พื้นฐานเกี่ยวกับการออกแบบระบบชลประทาน (Basic Foundamental of Canal</span>
<span class="card-meta">3 หัวข้อ · หน้า 292–300</span>
<span class="card-cta">อ่านบทนี้
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
</a>
</li>
</ul>
</section>
<section class="about">
<h2>เกี่ยวกับตำราเล่มนี้</h2>
<div class="about-grid">
<div>
<h3>เนื้อหา</h3>
<p>ครอบคลุมตั้งแต่ความหมายและขอบเขตงานวิศวกรรมชลประทาน ความสัมพันธ์ระหว่างดิน–น้ำ–พืช
ความต้องการน้ำของพืช การกำหนดการให้น้ำ วิธีการให้น้ำ การส่งน้ำ การระบายน้ำ
การควบคุมการส่งน้ำ ไปจนถึงพื้นฐานการออกแบบคลองส่งน้ำ</p>
</div>
<div>
<h3>รูปแบบเอกสาร</h3>
<p>ทุกหัวข้อมีเลขหน้าอ้างอิงถึงต้นฉบับ ภาพประกอบและสมการคงรูปแบบเดิมจากหนังสือ
ส่วนเนื้อความถูกแปลงเป็นข้อความจริงสำหรับการค้นหาและคัดลอก</p>
</div>
<div>
<h3>การใช้งาน</h3>
<p>กด <kbd>Ctrl</kbd> + <kbd>K</kbd> เพื่อค้นหาทั้งเล่ม ใช้สารบัญด้านซ้ายเพื่อข้ามบท
และสารบัญด้านขวาสำหรับข้ามหัวข้อภายในบทนั้น</p>
</div>
</div>
</section>
<footer class="home-foot">
<p>ภาควิชาวิศวกรรมชลประทาน มหาวิทยาลัยเกษตรศาสตร์ · พิมพ์ครั้งที่ 10 · พ.ศ. 2558</p>
<p>เอกสารอิเล็กทรอนิกส์เพื่อการเรียนการสอน · แปลงจากต้นฉบับ PDF</p>
</footer>
</main>
<div class="scrim" id="scrim" hidden></div>
<div class="search-modal" id="searchModal" role="dialog" aria-modal="true" aria-labelledby="searchTitle" hidden>
<div class="search-head">
<h2 id="searchTitle" class="sr">ค้นหา</h2>
<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><circle cx="11" cy="11" r="6.5" fill="none" stroke="currentColor" stroke-width="2"/><path d="m16 16 4.5 4.5" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
<input id="searchInput" type="search" placeholder="พิมพ์คำค้น เช่น ความชื้น, ประสิทธิภาพการชลประทาน" autocomplete="off" aria-label="คำค้น">
<button class="icon-btn" id="searchClose" aria-label="ปิด"><svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg></button>
</div>
<div class="search-results" id="searchResults"><p class="search-hint">พิมพ์อย่างน้อย 2 ตัวอักษร · ค้นทั้งเล่ม 10 บท</p></div>
</div>
<script src="js/docs.js" defer></script>
</body>
</html>