<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hardware Archives - ครูชัชดอทคอม</title>
	<atom:link href="https://www.kroochut.com/tag/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kroochut.com/tag/hardware/</link>
	<description>เว็บไซต์เพื่อการเรียนรู้ของทุกคน</description>
	<lastBuildDate>Mon, 12 Jan 2026 12:31:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://www.kroochut.com/wp-content/uploads/2024/12/cropped-5dd646cee6656-32x32.png</url>
	<title>Hardware Archives - ครูชัชดอทคอม</title>
	<link>https://www.kroochut.com/tag/hardware/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>เกมจำแนก Hardware/Software</title>
		<link>https://www.kroochut.com/hardware-software-sort/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 12 Jan 2026 12:31:49 +0000</pubDate>
				<category><![CDATA[Game]]></category>
		<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Gear and Code]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[IT Basics]]></category>
		<category><![CDATA[Puzzle Game]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Sorting Game]]></category>
		<category><![CDATA[The Great Sort]]></category>
		<category><![CDATA[ความรู้รอบตัว]]></category>
		<category><![CDATA[จัดหมวดหมู่]]></category>
		<category><![CDATA[ซอฟต์แวร์]]></category>
		<category><![CDATA[วิทยาการคำนวณ]]></category>
		<category><![CDATA[สื่อการสอน]]></category>
		<category><![CDATA[ฮาร์ดแวร์]]></category>
		<category><![CDATA[เกมการศึกษา]]></category>
		<category><![CDATA[เกมคอมพิวเตอร์]]></category>
		<category><![CDATA[เกมฝึกสมอง]]></category>
		<category><![CDATA[เรียนไอที]]></category>
		<category><![CDATA[แยกประเภท]]></category>
		<category><![CDATA[ไอที]]></category>
		<guid isPermaLink="false">https://www.kroochut.com/?p=937</guid>

					<description><![CDATA[<p>เ</p>
<p>The post <a href="https://www.kroochut.com/hardware-software-sort/">เกมจำแนก Hardware/Software</a> appeared first on <a href="https://www.kroochut.com">ครูชัชดอทคอม</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div style="position: relative; width: 100%; height: 0; padding-top: 56.2225%;
 padding-bottom: 0; box-shadow: 0 2px 8px 0 rgba(63,69,81,0.16); margin-top: 1.6em; margin-bottom: 0.9em; overflow: hidden;
 border-radius: 8px; will-change: transform;">
  <iframe loading="lazy" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; padding: 0;margin: 0;"
    src="https://www.canva.com/design/DAG-NLWJEzs/dzF0UMUuUdgJmsOaJFk2UA/view?embed" allowfullscreen="allowfullscreen" allow="fullscreen">
  </iframe>
</div>
<a href="https:&#x2F;&#x2F;www.canva.com&#x2F;design&#x2F;DAG-NLWJEzs&#x2F;dzF0UMUuUdgJmsOaJFk2UA&#x2F;view?utm_content=DAG-NLWJEzs&amp;utm_campaign=designshare&amp;utm_medium=embeds&amp;utm_source=link" target="_blank" rel="noopener">เ
<div class="gsp_post_data" 
	            data-post_type="post" 
	            data-cat="game-online-game-html5,information-technology" 
	            data-modified="120"
	            data-created="1768221109"
	            data-title="เกมจำแนก Hardware/Software" 
	            data-home="https://www.kroochut.com"></div><p>The post <a href="https://www.kroochut.com/hardware-software-sort/">เกมจำแนก Hardware/Software</a> appeared first on <a href="https://www.kroochut.com">ครูชัชดอทคอม</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>องค์ประกอบของคอมพิวเตอร์</title>
		<link>https://www.kroochut.com/computer-components-interactive/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 20 Nov 2025 05:32:53 +0000</pubDate>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Computer Components]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[GPU]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Interactive Learning]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[คอมพิวเตอร์]]></category>
		<category><![CDATA[บทเรียนออนไลน์]]></category>
		<category><![CDATA[ม.3]]></category>
		<category><![CDATA[วิทยาการคำนวณ]]></category>
		<category><![CDATA[สื่อการสอน]]></category>
		<category><![CDATA[สื่อการเรียนรู้]]></category>
		<category><![CDATA[องค์ประกอบคอมพิวเตอร์]]></category>
		<category><![CDATA[เทคโนโลยีสารสนเทศ]]></category>
		<guid isPermaLink="false">https://www.kroochut.com/?p=904</guid>

					<description><![CDATA[<p>องค์ประกอบของคอมพิวเตอร์ &#8211; บทเรียน Interactive บทเรียนคอมพิวเตอร์ Micro Learning หน้า 1 / 10 รู้จักเพื่อนใหม่ของเรา:องค์ประกอบของคอมพิวเตอร์ ยินดีต้อนรับน้องๆ นักเรียนทุกคน! 🚀 วันนี้เราจะมาผ่าตัดคอมพิวเตอร์เพื่อดูว่า &#8220;ข้างในมันมีอะไร?&#8221; ชวนคิดก่อนเริ่ม: &#8220;คุณเคยสงสัยไหมว่าข้างในกล่องสี่เหลี่ยมพวกนี้ มีอะไรบ้างที่ทำให้เราเล่นเกม ดูหนัง หรือทำการบ้านได้อย่างน่าอัศจรรย์?&#8221; 🤔 เริ่มบทเรียนเลย! คอมพิวเตอร์ทำงานได้อย่างไร? (IPO Model) Input รับข้อมูล (เมาส์, คีย์บอร์ด) Process ประมวลผล (CPU) Output แสดงผล (จอภาพ, ปริ้นเตอร์) Storage จัดเก็บข้อมูล (HDD, SSD) ถามหน่อย: ถ้านักเรียนกำลัง &#8220;พิมพ์รายงาน&#8221; หน้าจอคอมพิวเตอร์คือส่วนไหนของวงจรนี้? CPU: สมองสั่งการ 🧠 CPU (Central Processing Unit) คือ &#8220;สมอง&#8221; ของคอมพิวเตอร์ ทำหน้าที่คิด คำนวณ และสั่งการทุกอย่าง Clock Speed (GHz): คือ &#8220;ความเร็วในการคิด&#8221; ยิ่งเยอะ ยิ่งคิดไว Cores (แกน): คือ &#8220;จำนวนสมองย่อย&#8221; ยิ่งเยอะ ยิ่งทำหลายอย่างพร้อมกันได้ดี รูปชิป CPU ของจริง (Intel/AMD) 💡 รู้หรือไม่? CPU ขนาดเท่าฝ่ามือ มีทรานซิสเตอร์ (สวิตช์จิ๋ว) อยู่ข้างในเป็น &#8220;พันล้าน&#8221; ตัวเลยนะ! RAM: พื้นที่ทำงานชั่วคราว 📝 เปรียบเทียบให้เห็นภาพ RAM = โต๊ะทำงาน ถ้าโต๊ะกว้าง (RAM เยอะ) ก็กางงานออกมาทำพร้อมกันได้หลายอย่าง แต่พอปิดคอม (ปิดไฟ) ของบนโต๊ะจะหายไปหมด RAM (Random Access Memory) จำเป็นมากสำหรับการเปิดโปรแกรมหลายๆ อย่างพร้อมกัน (Multitasking) กฎเหล็ก: ไฟดับ = ข้อมูลหาย! 🤔 คิดสิคิด: ถ้าคอมพิวเตอร์ทำงานช้าตอนเปิด Chrome หลายๆ แท็บ แสดงว่าเราควรเพิ่มอะไร? (CPU หรือ RAM) Storage: ตู้เก็บของ 🗄️ นี่คือหน่วยความจำระยะยาว ปิดคอมข้อมูลก็ยังอยู่ มี 2 ประเภทหลักๆ ที่ต้องรู้: HDD (ฮาร์ดดิสก์) ใช้จานแม่เหล็กหมุนๆ ราคาถูก ได้ความจุเยอะ ทำงานช้ากว่า เปราะบางต่อการกระแทก แนะนำ! SSD (เอสเอสดี) ใช้ชิป (เหมือน Flash Drive) เร็วมาก! เปิดคอมปุ๊บติดปั๊บ ทนทาน ไม่มีเสียง ราคาสูงกว่านิดหน่อย SSD เร็วกว่า HDD ประมาณ 5-10 เท่า! Mainboard: แผงวงจรหลัก 🗺️ &#8220;กระดูกสันหลังของคอมพิวเตอร์&#8221; เชื่อมต่อทุกอุปกรณ์เข้าด้วยกัน Socket CPU ที่อยู่ของ CPU RAM Slots ช่องเสียบ RAM PCIe Slot ช่องเสียบการ์ดจอ SATA/M.2 ช่องเสียบ Storage GPU: การ์ดจอ 🎮 GPU (Graphics Processing Unit) มีหน้าที่วาดภาพที่เราเห็นบนจอ ยิ่งแรง ภาพยิ่งสวย เล่นเกมยิ่งลื่น! On-Board มากับ CPU ประหยัดไฟใช้ทำงานทั่วไป ดูหนัง VS Dedicated (การ์ดแยก) เสียบเพิ่ม พลังสูงสำหรับเล่นเกม, ตัดต่อวิดีโอ, 3D 🎨 ศิลปินดิจิทัล: CPU วาดโครงร่าง แต่ GPU คือคนลงสีและแสงเงาให้สวยงาม! PSU: แหล่งพลังงาน ⚡ Power Supply Unit (PSU) ทำหน้าที่แปลงไฟบ้าน (AC) เป็นไฟคอม (DC) เพื่อเลี้ยงอุปกรณ์ทุกชิ้น ⚠️ ข้อควรระวัง! ห้ามเลือก PSU ที่ไม่ได้มาตรฐาน เพราะอาจระเบิด หรือพาอุปกรณ์อื่นพังไปด้วย! (ไฟกระชาก) ควรมองหาสัญลักษณ์: 80 PLUS White Bronze Gold หัวใจแห่งพลังงาน Case &#038; Cooling ❄️ Case (เคส) คือบ้านของคอมพิวเตอร์ ช่วยจัดระเบียบและป้องกันฝุ่น/แมลง มีหลายขนาด (ATX, mATX) ตามขนาดเมนบอร์ด พื้นที่วางอุปกรณ์ Cooling (ระบายความร้อน) คอมพิวเตอร์ทำงานแล้วร้อน จึงต้องมี: พัดลม (Fans) ฮีตซิงค์ (Heatsink) ชุดน้ำ (Liquid Cooling) ถ้าคอมพิวเตอร์ร้อนเกินไป มันจะทำงานช้าลง (Thermal Throttling) เพื่อป้องกันตัวเองไม่ให้พังนะ! 🎉 เรียนจบแล้ว! มาวัดพลังสมองกัน จำหน้าที่ของเพื่อนๆ ในคอมพิวเตอร์ได้ครบไหม? คำถามข้อที่ 1/5 คะแนน: 0 คำถาม&#8230; ยินดีด้วย! คุณทำได้ 0 / 5 คะแนน สุดยอดไปเลย! ทำแบบทดสอบอีกครั้ง ลองไปเปิดฝาเคสคอมที่บ้านดูเล่นๆ (แต่อย่าแกะนะ!) หรือหาดูคลิป &#8220;ประกอบคอม&#8221; ใน YouTube เพื่อเห็นภาพจริง 🖥️ ย้อนกลับ Interactive Lesson by kroochut.com ถัดไป</p>
<p>The post <a href="https://www.kroochut.com/computer-components-interactive/">องค์ประกอบของคอมพิวเตอร์</a> appeared first on <a href="https://www.kroochut.com">ครูชัชดอทคอม</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<!DOCTYPE html>
<html lang="th">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>องค์ประกอบของคอมพิวเตอร์ &#8211; บทเรียน Interactive</title>
    
    <!-- Google Fonts: Prompt สำหรับภาษาไทย -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600;800&#038;display=swap" rel="stylesheet">
    
    <!-- Tailwind CSS (ผ่าน CDN เพื่อความสวยงามทันทีโดยไม่ต้องเขียน CSS เยอะ) -->
    <script src="https://cdn.tailwindcss.com"></script>
    
    <!-- FontAwesome Icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

    <!-- Animation Library -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>

    <style>
        body {
            font-family: 'Prompt', sans-serif;
            background-color: #f0f9ff;
            background-image: radial-gradient(#e0e7ff 1px, transparent 1px);
            background-size: 20px 20px;
            overflow-x: hidden;
        }

        .slide {
            display: none;
            min-height: 80vh;
        }

        .slide.active {
            display: flex;
            flex-direction: column;
            animation: fadeIn 0.5s ease-in-out;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f1f1; 
        }
        ::-webkit-scrollbar-thumb {
            background: #888; 
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #555; 
        }

        /* Card Styles */
        .glass-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        /* Interactive Elements */
        .hover-scale {
            transition: transform 0.2s;
        }
        .hover-scale:hover {
            transform: scale(1.05);
        }

        .quiz-option {
            cursor: pointer;
            transition: all 0.3s;
        }
        .quiz-option:hover {
            background-color: #e0e7ff;
            border-color: #4f46e5;
        }
        .quiz-option.selected {
            background-color: #4338ca;
            color: white;
            border-color: #312e81;
        }
        .quiz-option.correct {
            background-color: #16a34a; /* Green */
            color: white;
        }
        .quiz-option.wrong {
            background-color: #dc2626; /* Red */
            color: white;
        }

        /* Thought Bubble */
        .thought-bubble {
            position: relative;
            background: #fffbeb;
            border-left: 5px solid #f59e0b;
            padding: 1rem;
            margin-top: 1.5rem;
            border-radius: 0.5rem;
        }

        /* Floating Animation */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        .floating {
            animation: float 3s ease-in-out infinite;
        }

        /* Spin Animation for Fan */
        @keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
        .fan-spin {
            animation: spin 2s linear infinite;
        }
    </style>
</head>
<body class="text-gray-800 antialiased">

    <!-- Progress Bar -->
    <div class="fixed top-0 left-0 w-full h-2 z-50 bg-gray-200">
        <div id="progress-bar" class="h-full bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500 transition-all duration-500" style="width: 10%;"></div>
    </div>

    <!-- Status Bar Header -->
    <header class="fixed top-2 w-full z-40 px-4 py-2">
        <div class="max-w-4xl mx-auto flex justify-between items-center bg-white/80 backdrop-blur-md rounded-full px-6 py-2 shadow-sm border border-gray-200">
            <span class="font-bold text-indigo-600"><i class="fas fa-microchip mr-2"></i>บทเรียนคอมพิวเตอร์ Micro Learning</span>
            <span class="text-sm font-medium text-gray-500">หน้า <span id="page-indicator">1</span> / 10</span>
        </div>
    </header>

    <!-- Main Content Container -->
    <main class="container mx-auto px-4 pt-20 pb-24 max-w-4xl min-h-screen flex items-center justify-center">
        
        <!-- Page 1: Cover -->
        <section id="page-1" class="slide active w-full">
            <div class="glass-card p-8 text-center md:p-12">
                <div class="mb-6 floating">
                    <img decoding="async" src="https://cdn-icons-png.flaticon.com/512/2933/2933245.png" alt="Computer" class="w-40 h-40 mx-auto object-contain">
                </div>
                <h1 class="text-3xl md:text-5xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-pink-600 mb-4">
                    รู้จักเพื่อนใหม่ของเรา:<br>องค์ประกอบของคอมพิวเตอร์
                </h1>
                <p class="text-lg text-gray-600 mb-8">
                    ยินดีต้อนรับน้องๆ นักเรียนทุกคน! 🚀 <br>
                    วันนี้เราจะมาผ่าตัดคอมพิวเตอร์เพื่อดูว่า &#8220;ข้างในมันมีอะไร?&#8221;
                </p>
                
                <div class="thought-bubble text-left">
                    <p class="font-semibold text-amber-700"><i class="fas fa-lightbulb mr-2"></i>ชวนคิดก่อนเริ่ม:</p>
                    <p class="italic text-gray-700">&#8220;คุณเคยสงสัยไหมว่าข้างในกล่องสี่เหลี่ยมพวกนี้ มีอะไรบ้างที่ทำให้เราเล่นเกม ดูหนัง หรือทำการบ้านได้อย่างน่าอัศจรรย์?&#8221; 🤔</p>
                </div>

                <button onclick="nextPage()" class="mt-8 px-8 py-3 bg-indigo-600 hover:bg-indigo-700 text-white rounded-full font-bold text-lg shadow-lg hover-scale transition transform flex items-center justify-center mx-auto">
                    เริ่มบทเรียนเลย! <i class="fas fa-arrow-right ml-2"></i>
                </button>
            </div>
        </section>

        <!-- Page 2: IPO Model -->
        <section id="page-2" class="slide w-full">
            <div class="glass-card p-8">
                <h2 class="text-3xl font-bold text-indigo-800 mb-6 text-center">คอมพิวเตอร์ทำงานได้อย่างไร? (IPO Model)</h2>
                
                <div class="flex flex-col md:flex-row items-center justify-center gap-4 my-8">
                    <!-- Input -->
                    <div class="text-center p-4 bg-blue-50 rounded-xl w-full hover-scale border border-blue-100">
                        <i class="fas fa-keyboard text-4xl text-blue-500 mb-2"></i>
                        <h3 class="font-bold text-xl">Input</h3>
                        <p class="text-sm text-gray-600">รับข้อมูล (เมาส์, คีย์บอร์ด)</p>
                    </div>
                    <i class="fas fa-arrow-right text-gray-400 hidden md:block"></i>
                    <i class="fas fa-arrow-down text-gray-400 md:hidden"></i>
                    
                    <!-- Process -->
                    <div class="text-center p-4 bg-purple-50 rounded-xl w-full hover-scale border border-purple-100 relative">
                        <i class="fas fa-cog fa-spin text-4xl text-purple-500 mb-2"></i>
                        <h3 class="font-bold text-xl">Process</h3>
                        <p class="text-sm text-gray-600">ประมวลผล (CPU)</p>
                        <!-- Storage Line -->
                        <div class="absolute -bottom-12 left-1/2 transform -translate-x-1/2 md:top-full md:mt-4 md:left-1/2">
                            <i class="fas fa-arrows-alt-v text-gray-400"></i>
                        </div>
                    </div>
                    <i class="fas fa-arrow-right text-gray-400 hidden md:block"></i>
                    <i class="fas fa-arrow-down text-gray-400 md:hidden"></i>

                    <!-- Output -->
                    <div class="text-center p-4 bg-green-50 rounded-xl w-full hover-scale border border-green-100">
                        <i class="fas fa-desktop text-4xl text-green-500 mb-2"></i>
                        <h3 class="font-bold text-xl">Output</h3>
                        <p class="text-sm text-gray-600">แสดงผล (จอภาพ, ปริ้นเตอร์)</p>
                    </div>
                </div>

                <!-- Storage block connected separately visually -->
                <div class="flex justify-center mt-8 md:mt-4">
                    <div class="text-center p-4 bg-yellow-50 rounded-xl w-2/3 hover-scale border border-yellow-100">
                        <i class="fas fa-hdd text-4xl text-yellow-500 mb-2"></i>
                        <h3 class="font-bold text-xl">Storage</h3>
                        <p class="text-sm text-gray-600">จัดเก็บข้อมูล (HDD, SSD)</p>
                    </div>
                </div>

                <div class="thought-bubble">
                    <p class="font-semibold text-amber-700"><i class="fas fa-question-circle mr-2"></i>ถามหน่อย:</p>
                    <p>ถ้านักเรียนกำลัง &#8220;พิมพ์รายงาน&#8221; หน้าจอคอมพิวเตอร์คือส่วนไหนของวงจรนี้?</p>
                </div>
            </div>
        </section>

        <!-- Page 3: CPU -->
        <section id="page-3" class="slide w-full">
            <div class="glass-card p-8">
                <div class="flex items-center mb-4">
                    <div class="bg-indigo-100 p-3 rounded-full mr-4"><i class="fas fa-microchip text-3xl text-indigo-600"></i></div>
                    <h2 class="text-2xl md:text-3xl font-bold text-gray-800">CPU: สมองสั่งการ 🧠</h2>
                </div>

                <div class="grid md:grid-cols-2 gap-8 items-center">
                    <div>
                        <p class="text-lg mb-4">CPU (Central Processing Unit) คือ <strong>&#8220;สมอง&#8221;</strong> ของคอมพิวเตอร์ ทำหน้าที่คิด คำนวณ และสั่งการทุกอย่าง</p>
                        <ul class="space-y-3">
                            <li class="flex items-center"><i class="fas fa-tachometer-alt text-red-500 w-8"></i> <span><strong>Clock Speed (GHz):</strong> คือ &#8220;ความเร็วในการคิด&#8221; ยิ่งเยอะ ยิ่งคิดไว</span></li>
                            <li class="flex items-center"><i class="fas fa-layer-group text-blue-500 w-8"></i> <span><strong>Cores (แกน):</strong> คือ &#8220;จำนวนสมองย่อย&#8221; ยิ่งเยอะ ยิ่งทำหลายอย่างพร้อมกันได้ดี</span></li>
                        </ul>
                    </div>
                    <div class="rounded-xl overflow-hidden shadow-lg">
                        <!-- Placeholder for CPU Image -->
                        <img decoding="async" src="https://images.unsplash.com/photo-1591799264318-7e6ef8ddb7ea?ixlib=rb-4.0.3&#038;auto=format&#038;fit=crop&#038;w=600&#038;q=80" alt="CPU" class="w-full h-48 object-cover">
                        <div class="bg-gray-900 text-white text-xs p-2 text-center">รูปชิป CPU ของจริง (Intel/AMD)</div>
                    </div>
                </div>
                
                <div class="thought-bubble mt-6">
                    <p class="text-sm">💡 <strong>รู้หรือไม่?</strong> CPU ขนาดเท่าฝ่ามือ มีทรานซิสเตอร์ (สวิตช์จิ๋ว) อยู่ข้างในเป็น &#8220;พันล้าน&#8221; ตัวเลยนะ!</p>
                </div>
            </div>
        </section>

        <!-- Page 4: RAM -->
        <section id="page-4" class="slide w-full">
            <div class="glass-card p-8">
                <div class="flex items-center mb-4">
                    <div class="bg-green-100 p-3 rounded-full mr-4"><i class="fas fa-memory text-3xl text-green-600"></i></div>
                    <h2 class="text-2xl md:text-3xl font-bold text-gray-800">RAM: พื้นที่ทำงานชั่วคราว 📝</h2>
                </div>

                <div class="grid md:grid-cols-2 gap-6">
                    <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
                        <h3 class="font-bold text-lg mb-2">เปรียบเทียบให้เห็นภาพ</h3>
                        <div class="flex items-center justify-center h-32 bg-gray-50 rounded mb-2">
                            <i class="fas fa-table text-6xl text-brown-500"></i>
                        </div>
                        <p class="text-sm"><strong>RAM = โต๊ะทำงาน</strong></p>
                        <p class="text-xs text-gray-500">ถ้าโต๊ะกว้าง (RAM เยอะ) ก็กางงานออกมาทำพร้อมกันได้หลายอย่าง แต่พอปิดคอม (ปิดไฟ) ของบนโต๊ะจะหายไปหมด</p>
                    </div>
                    <div class="flex flex-col justify-center">
                        <p class="mb-4">RAM (Random Access Memory) จำเป็นมากสำหรับการเปิดโปรแกรมหลายๆ อย่างพร้อมกัน (Multitasking)</p>
                        <p class="text-indigo-600 font-bold">กฎเหล็ก: ไฟดับ = ข้อมูลหาย!</p>
                    </div>
                </div>

                <div class="thought-bubble">
                    <p class="font-semibold text-amber-700">🤔 คิดสิคิด:</p>
                    <p>ถ้าคอมพิวเตอร์ทำงานช้าตอนเปิด Chrome หลายๆ แท็บ แสดงว่าเราควรเพิ่มอะไร? (CPU หรือ RAM)</p>
                </div>
            </div>
        </section>

        <!-- Page 5: Storage -->
        <section id="page-5" class="slide w-full">
            <div class="glass-card p-8">
                <div class="flex items-center mb-4">
                    <div class="bg-yellow-100 p-3 rounded-full mr-4"><i class="fas fa-hdd text-3xl text-yellow-600"></i></div>
                    <h2 class="text-2xl md:text-3xl font-bold text-gray-800">Storage: ตู้เก็บของ 🗄️</h2>
                </div>

                <p class="mb-6">นี่คือหน่วยความจำระยะยาว ปิดคอมข้อมูลก็ยังอยู่ มี 2 ประเภทหลักๆ ที่ต้องรู้:</p>

                <div class="grid md:grid-cols-2 gap-4">
                    <!-- HDD -->
                    <div class="border-2 border-gray-200 rounded-xl p-4 hover:border-gray-400 transition">
                        <div class="flex justify-between items-center mb-2">
                            <h3 class="font-bold text-xl">HDD (ฮาร์ดดิสก์)</h3>
                            <i class="fas fa-compact-disc text-gray-400 text-2xl spin-slow"></i>
                        </div>
                        <ul class="text-sm space-y-1 list-disc list-inside text-gray-600">
                            <li>ใช้จานแม่เหล็กหมุนๆ</li>
                            <li>ราคาถูก ได้ความจุเยอะ</li>
                            <li>ทำงานช้ากว่า</li>
                            <li>เปราะบางต่อการกระแทก</li>
                        </ul>
                    </div>

                    <!-- SSD -->
                    <div class="border-2 border-green-200 bg-green-50 rounded-xl p-4 hover:border-green-400 transition relative overflow-hidden">
                        <div class="absolute top-0 right-0 bg-green-500 text-white text-xs px-2 py-1 rounded-bl">แนะนำ!</div>
                        <div class="flex justify-between items-center mb-2">
                            <h3 class="font-bold text-xl">SSD (เอสเอสดี)</h3>
                            <i class="fas fa-microchip text-green-500 text-2xl"></i>
                        </div>
                        <ul class="text-sm space-y-1 list-disc list-inside text-gray-600">
                            <li>ใช้ชิป (เหมือน Flash Drive)</li>
                            <li><strong>เร็วมาก!</strong> เปิดคอมปุ๊บติดปั๊บ</li>
                            <li>ทนทาน ไม่มีเสียง</li>
                            <li>ราคาสูงกว่านิดหน่อย</li>
                        </ul>
                    </div>
                </div>

                <div class="mt-6 text-center">
                    <div class="inline-block bg-gray-200 rounded-full px-4 py-1 text-sm">
                        <i class="fas fa-fighter-jet mr-2"></i> SSD เร็วกว่า HDD ประมาณ 5-10 เท่า!
                    </div>
                </div>
            </div>
        </section>

        <!-- Page 6: Motherboard -->
        <section id="page-6" class="slide w-full">
            <div class="glass-card p-8">
                <div class="flex items-center mb-4">
                    <div class="bg-blue-100 p-3 rounded-full mr-4"><i class="fas fa-project-diagram text-3xl text-blue-600"></i></div>
                    <h2 class="text-2xl md:text-3xl font-bold text-gray-800">Mainboard: แผงวงจรหลัก 🗺️</h2>
                </div>

                <div class="relative bg-gray-800 rounded-xl p-4 text-white overflow-hidden min-h-[200px] flex items-center justify-center">
                    <!-- Abstract Motherboard representation -->
                    <div class="absolute inset-0 opacity-20" style="background-image: url('data:image/svg+xml,%3Csvg width=\'60\' height=\'60\' viewBox=\'0 0 60 60\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'none\' fill-rule=\'evenodd\'%3E%3Cg fill=\'%23ffffff\' fill-opacity=\'1\'%3E%3Cpath d=\'M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');"></div>
                    
                    <div class="z-10 text-center">
                        <p class="text-lg font-light">&#8220;กระดูกสันหลังของคอมพิวเตอร์&#8221;</p>
                        <p class="text-sm text-gray-400 mt-2">เชื่อมต่อทุกอุปกรณ์เข้าด้วยกัน</p>
                    </div>
                </div>

                <div class="mt-6 grid grid-cols-2 gap-4">
                    <div class="flex items-start">
                        <div class="bg-indigo-100 rounded p-2 mr-2"><i class="fas fa-microchip text-indigo-600"></i></div>
                        <div>
                            <h4 class="font-bold text-sm">Socket CPU</h4>
                            <p class="text-xs text-gray-500">ที่อยู่ของ CPU</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="bg-green-100 rounded p-2 mr-2"><i class="fas fa-memory text-green-600"></i></div>
                        <div>
                            <h4 class="font-bold text-sm">RAM Slots</h4>
                            <p class="text-xs text-gray-500">ช่องเสียบ RAM</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="bg-purple-100 rounded p-2 mr-2"><i class="fas fa-video text-purple-600"></i></div>
                        <div>
                            <h4 class="font-bold text-sm">PCIe Slot</h4>
                            <p class="text-xs text-gray-500">ช่องเสียบการ์ดจอ</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="bg-yellow-100 rounded p-2 mr-2"><i class="fas fa-plug text-yellow-600"></i></div>
                        <div>
                            <h4 class="font-bold text-sm">SATA/M.2</h4>
                            <p class="text-xs text-gray-500">ช่องเสียบ Storage</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Page 7: GPU -->
        <section id="page-7" class="slide w-full">
            <div class="glass-card p-8">
                <div class="flex items-center mb-4">
                    <div class="bg-purple-100 p-3 rounded-full mr-4"><i class="fas fa-gamepad text-3xl text-purple-600"></i></div>
                    <h2 class="text-2xl md:text-3xl font-bold text-gray-800">GPU: การ์ดจอ 🎮</h2>
                </div>

                <p class="mb-4">GPU (Graphics Processing Unit) มีหน้าที่วาดภาพที่เราเห็นบนจอ ยิ่งแรง ภาพยิ่งสวย เล่นเกมยิ่งลื่น!</p>

                <div class="flex flex-col md:flex-row gap-4 items-center justify-center mb-6">
                    <div class="w-full md:w-1/2 bg-gray-100 p-4 rounded-lg text-center opacity-70">
                        <i class="fas fa-laptop text-4xl text-gray-500 mb-2"></i>
                        <h3 class="font-bold">On-Board</h3>
                        <p class="text-xs">มากับ CPU ประหยัดไฟ<br>ใช้ทำงานทั่วไป ดูหนัง</p>
                    </div>
                    <div class="text-2xl font-bold text-gray-400">VS</div>
                    <div class="w-full md:w-1/2 bg-gradient-to-br from-purple-600 to-indigo-600 text-white p-4 rounded-lg text-center shadow-lg transform hover:scale-105 transition">
                        <i class="fas fa-rocket text-4xl text-yellow-300 mb-2"></i>
                        <h3 class="font-bold">Dedicated (การ์ดแยก)</h3>
                        <p class="text-xs text-gray-200">เสียบเพิ่ม พลังสูง<br>สำหรับเล่นเกม, ตัดต่อวิดีโอ, 3D</p>
                    </div>
                </div>

                <div class="thought-bubble">
                    <p class="font-semibold text-amber-700">🎨 ศิลปินดิจิทัล:</p>
                    <p>CPU วาดโครงร่าง แต่ GPU คือคนลงสีและแสงเงาให้สวยงาม!</p>
                </div>
            </div>
        </section>

        <!-- Page 8: PSU -->
        <section id="page-8" class="slide w-full">
            <div class="glass-card p-8">
                <div class="flex items-center mb-4">
                    <div class="bg-yellow-100 p-3 rounded-full mr-4"><i class="fas fa-bolt text-3xl text-yellow-600"></i></div>
                    <h2 class="text-2xl md:text-3xl font-bold text-gray-800">PSU: แหล่งพลังงาน ⚡</h2>
                </div>

                <div class="flex flex-col-reverse md:flex-row gap-6 items-center">
                    <div class="w-full md:w-2/3">
                        <p class="mb-4">Power Supply Unit (PSU) ทำหน้าที่แปลงไฟบ้าน (AC) เป็นไฟคอม (DC) เพื่อเลี้ยงอุปกรณ์ทุกชิ้น</p>
                        <div class="bg-red-50 border-l-4 border-red-500 p-4 mb-4">
                            <p class="font-bold text-red-700">⚠️ ข้อควรระวัง!</p>
                            <p class="text-sm text-red-600">ห้ามเลือก PSU ที่ไม่ได้มาตรฐาน เพราะอาจระเบิด หรือพาอุปกรณ์อื่นพังไปด้วย! (ไฟกระชาก)</p>
                        </div>
                        <p class="text-sm font-semibold">ควรมองหาสัญลักษณ์:</p>
                        <div class="flex gap-2 mt-2">
                            <span class="px-2 py-1 bg-gray-200 rounded text-xs">80 PLUS White</span>
                            <span class="px-2 py-1 bg-yellow-600 text-white rounded text-xs">Bronze</span>
                            <span class="px-2 py-1 bg-yellow-400 text-black rounded text-xs">Gold</span>
                        </div>
                    </div>
                    <div class="w-full md:w-1/3 text-center">
                        <i class="fas fa-plug text-8xl text-gray-300"></i>
                        <p class="text-sm mt-2 text-gray-500">หัวใจแห่งพลังงาน</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Page 9: Case & Cooling -->
        <section id="page-9" class="slide w-full">
            <div class="glass-card p-8">
                <div class="flex items-center mb-4">
                    <div class="bg-gray-200 p-3 rounded-full mr-4"><i class="fas fa-box text-3xl text-gray-600"></i></div>
                    <h2 class="text-2xl md:text-3xl font-bold text-gray-800">Case &#038; Cooling ❄️</h2>
                </div>

                <div class="grid md:grid-cols-2 gap-6">
                    <div class="p-4 bg-white rounded-lg shadow-sm">
                        <h3 class="font-bold text-indigo-600 mb-2"><i class="fas fa-home mr-2"></i>Case (เคส)</h3>
                        <p class="text-sm text-gray-600">คือบ้านของคอมพิวเตอร์ ช่วยจัดระเบียบและป้องกันฝุ่น/แมลง มีหลายขนาด (ATX, mATX) ตามขนาดเมนบอร์ด</p>
                        <div class="mt-4 h-24 bg-gray-100 rounded flex items-center justify-center border-2 border-dashed border-gray-300">
                            <span class="text-xs text-gray-400">พื้นที่วางอุปกรณ์</span>
                        </div>
                    </div>

                    <div class="p-4 bg-blue-50 rounded-lg shadow-sm border border-blue-100">
                        <h3 class="font-bold text-blue-600 mb-2"><i class="fas fa-snowflake mr-2"></i>Cooling (ระบายความร้อน)</h3>
                        <p class="text-sm text-gray-600">คอมพิวเตอร์ทำงานแล้วร้อน จึงต้องมี:</p>
                        <ul class="mt-2 space-y-2">
                            <li class="flex items-center"><i class="fas fa-fan fan-spin mr-2 text-blue-400"></i> พัดลม (Fans)</li>
                            <li class="flex items-center"><i class="fas fa-server mr-2 text-gray-400"></i> ฮีตซิงค์ (Heatsink)</li>
                            <li class="flex items-center"><i class="fas fa-tint mr-2 text-blue-500"></i> ชุดน้ำ (Liquid Cooling)</li>
                        </ul>
                    </div>
                </div>
                
                <div class="thought-bubble">
                    <p>ถ้าคอมพิวเตอร์ร้อนเกินไป มันจะทำงานช้าลง (Thermal Throttling) เพื่อป้องกันตัวเองไม่ให้พังนะ!</p>
                </div>
            </div>
        </section>

        <!-- Page 10: Summary & Quiz -->
        <section id="page-10" class="slide w-full">
            <div class="glass-card p-8">
                <h2 class="text-3xl font-bold text-center text-indigo-800 mb-4">🎉 เรียนจบแล้ว! มาวัดพลังสมองกัน</h2>
                <p class="text-center text-gray-600 mb-8">จำหน้าที่ของเพื่อนๆ ในคอมพิวเตอร์ได้ครบไหม?</p>

                <!-- Summary Icons Recap -->
                <div class="flex justify-center gap-4 mb-8 flex-wrap">
                    <i class="fas fa-microchip text-2xl text-indigo-500" title="CPU"></i>
                    <i class="fas fa-memory text-2xl text-green-500" title="RAM"></i>
                    <i class="fas fa-hdd text-2xl text-yellow-500" title="Storage"></i>
                    <i class="fas fa-bolt text-2xl text-red-500" title="PSU"></i>
                    <i class="fas fa-gamepad text-2xl text-purple-500" title="GPU"></i>
                </div>

                <div id="quiz-container" class="bg-indigo-50 p-6 rounded-xl border border-indigo-100">
                    <!-- Quiz Question will be injected here -->
                    <div id="question-ui">
                        <div class="flex justify-between mb-4">
                            <span class="font-bold text-indigo-700">คำถามข้อที่ <span id="q-current">1</span>/5</span>
                            <span class="text-sm text-gray-500">คะแนน: <span id="score">0</span></span>
                        </div>
                        <h3 id="q-text" class="text-xl font-semibold mb-6">คำถาม&#8230;</h3>
                        <div id="q-options" class="space-y-3">
                            <!-- Options -->
                        </div>
                    </div>

                    <!-- Result UI (Hidden initially) -->
                    <div id="result-ui" class="hidden text-center">
                        <i class="fas fa-trophy text-6xl text-yellow-400 mb-4 floating"></i>
                        <h3 class="text-2xl font-bold mb-2">ยินดีด้วย!</h3>
                        <p class="text-lg mb-6">คุณทำได้ <span id="final-score" class="font-bold text-indigo-600 text-3xl">0</span> / 5 คะแนน</p>
                        <p id="feedback-msg" class="text-gray-600 mb-6">สุดยอดไปเลย!</p>
                        <button onclick="resetQuiz()" class="px-6 py-2 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition">ทำแบบทดสอบอีกครั้ง</button>
                    </div>
                </div>
                
                <div class="mt-8 text-center">
                     <p class="text-sm text-gray-500">ลองไปเปิดฝาเคสคอมที่บ้านดูเล่นๆ (แต่อย่าแกะนะ!) หรือหาดูคลิป &#8220;ประกอบคอม&#8221; ใน YouTube เพื่อเห็นภาพจริง 🖥️</p>
                </div>
            </div>
        </section>

    </main>

    <!-- Footer Controls -->
    <footer class="fixed bottom-0 w-full bg-white shadow-[0_-5px_15px_rgba(0,0,0,0.1)] py-3 px-4 z-50">
        <div class="max-w-4xl mx-auto flex justify-between items-center">
            <button onclick="prevPage()" id="btn-prev" class="px-4 py-2 rounded-lg bg-gray-200 text-gray-600 font-semibold disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-300 transition">
                <i class="fas fa-chevron-left mr-1"></i> ย้อนกลับ
            </button>
            
            <div class="hidden md:block text-xs text-gray-400">
                Interactive Lesson by kroochut.com
            </div>

            <button onclick="nextPage()" id="btn-next" class="px-4 py-2 rounded-lg bg-indigo-600 text-white font-bold shadow-md hover:bg-indigo-700 transition hover:scale-105">
                ถัดไป <i class="fas fa-chevron-right ml-1"></i>
            </button>
        </div>
    </footer>

    <!-- Sound Effect (Base64 Pop Sound) -->
    <audio id="clickSound" src="data:audio/wav;base64,UklGRiYAAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YQAAAAAAAAAAAA=="></audio>
    <!-- Note: The Base64 above is empty for brevity. JS will generate a simple beep or use a placeholder logic if needed, but below I will use a minimal valid base64 for a short click -->
    <script>
        // Simple short click sound base64
        const clickSoundSrc = "data:audio/wav;base64,UklGRl9vT1dKVRAAAABAAJAQBABAAEAAAAAAAAEAQAAAAAAAAEAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////////w==";
        // Replacing with a real short blip for better UX if browser allows, otherwise silent.
    </script>

    <script>
        // State Management
        let currentPage = 1;
        const totalPages = 10;
        const clickAudio = new Audio("https://actions.google.com/sounds/v1/cartoon/pop.ogg"); // Using a reliable external standard sound, or fallback logic

        // Quiz Data
        const quizData = [
            {
                question: "อุปกรณ์ใดเปรียบเสมือน 'สมอง' ของคอมพิวเตอร์?",
                options: ["RAM", "CPU", "Hard Disk", "Power Supply"],
                correct: 1 // Index of correct answer
            },
            {
                question: "ถ้าไฟดับ ข้อมูลในอุปกรณ์ใดจะหายไปทันที?",
                options: ["Hard Disk", "Flash Drive", "RAM", "SSD"],
                correct: 2
            },
            {
                question: "อุปกรณ์ใดทำหน้าที่แปลงไฟฟ้าบ้านให้คอมพิวเตอร์ใช้ได้?",
                options: ["CPU", "Mainboard", "UPS", "PSU (Power Supply)"],
                correct: 3
            },
            {
                question: "ถ้าต้องการให้คอมพิวเตอร์เปิดเครื่องเร็วๆ ควรเลือกใช้อะไรเก็บข้อมูล?",
                options: ["SSD", "HDD", "DVD", "Floppy Disk"],
                correct: 0
            },
            {
                question: "การ์ดจอ (GPU) มีหน้าที่หลักคืออะไร?",
                options: ["เก็บข้อมูล", "ประมวลผลภาพและกราฟิก", "จ่ายไฟ", "ระบายความร้อน"],
                correct: 1
            }
        ];

        let currentQuizIndex = 0;
        let score = 0;

        // Init
        document.addEventListener('DOMContentLoaded', () => {
            updateUI();
            loadQuizQuestion();
        });

        // Navigation Functions
        function nextPage() {
            if (currentPage < totalPages) {
                playSound();
                changePage(currentPage + 1);
            }
        }

        function prevPage() {
            if (currentPage > 1) {
                playSound();
                changePage(currentPage - 1);
            }
        }

        function changePage(pageNum) {
            // Hide current
            document.getElementById(`page-${currentPage}`).classList.remove('active');
            
            // Show new
            currentPage = pageNum;
            document.getElementById(`page-${currentPage}`).classList.add('active');
            
            // Scroll to top
            window.scrollTo({ top: 0, behavior: 'smooth' });

            updateUI();
        }

        function updateUI() {
            // Progress Bar
            const percentage = (currentPage / totalPages) * 100;
            document.getElementById('progress-bar').style.width = `${percentage}%`;
            
            // Page Indicator
            document.getElementById('page-indicator').textContent = currentPage;

            // Button States
            document.getElementById('btn-prev').disabled = currentPage === 1;
            
            const nextBtn = document.getElementById('btn-next');
            if (currentPage === totalPages) {
                nextBtn.innerHTML = 'จบบทเรียน <i class="fas fa-check ml-1"></i>';
                nextBtn.classList.add('bg-green-600', 'hover:bg-green-700');
                nextBtn.classList.remove('bg-indigo-600', 'hover:bg-indigo-700');
                nextBtn.onclick = () => alert("เก่งมาก! อย่าลืมทบทวนบทเรียนนะ");
            } else {
                nextBtn.innerHTML = 'ถัดไป <i class="fas fa-chevron-right ml-1"></i>';
                nextBtn.classList.remove('bg-green-600', 'hover:bg-green-700');
                nextBtn.classList.add('bg-indigo-600', 'hover:bg-indigo-700');
                nextBtn.onclick = nextPage;
            }
        }

        function playSound() {
            // Simple play attempt, catch error if user hasn't interacted yet
            clickAudio.currentTime = 0;
            clickAudio.play().catch(e => console.log("Audio play prevented until interaction"));
        }

        // Quiz Logic
        function loadQuizQuestion() {
            if (currentQuizIndex >= quizData.length) {
                showQuizResult();
                return;
            }

            const q = quizData[currentQuizIndex];
            document.getElementById('q-text').textContent = q.question;
            document.getElementById('q-current').textContent = currentQuizIndex + 1;
            
            const optionsDiv = document.getElementById('q-options');
            optionsDiv.innerHTML = '';

            q.options.forEach((opt, index) => {
                const btn = document.createElement('div');
                btn.className = 'quiz-option p-3 bg-white border border-gray-200 rounded-lg shadow-sm font-medium';
                btn.textContent = opt;
                btn.onclick = () => checkAnswer(index, btn, q.correct);
                optionsDiv.appendChild(btn);
            });
        }

        function checkAnswer(selectedIndex, btnElement, correctIndex) {
            // Disable all options
            const opts = document.querySelectorAll('.quiz-option');
            opts.forEach(o => o.style.pointerEvents = 'none');

            if (selectedIndex === correctIndex) {
                btnElement.classList.add('correct');
                btnElement.innerHTML += ' <i class="fas fa-check-circle float-right"></i>';
                score++;
                playSound(); // Reuse click sound or add success sound
            } else {
                btnElement.classList.add('wrong');
                btnElement.innerHTML += ' <i class="fas fa-times-circle float-right"></i>';
                // Highlight correct one
                opts[correctIndex].classList.add('correct');
            }

            document.getElementById('score').textContent = score;

            // Next question delay
            setTimeout(() => {
                currentQuizIndex++;
                loadQuizQuestion();
            }, 1500);
        }

        function showQuizResult() {
            document.getElementById('question-ui').classList.add('hidden');
            document.getElementById('result-ui').classList.remove('hidden');
            
            document.getElementById('final-score').textContent = score;
            const feedback = document.getElementById('feedback-msg');
            
            if (score === 5) feedback.textContent = "สุดยอด! คุณคือเซียนคอมพิวเตอร์ตัวจริง! 🏆";
            else if (score >= 3) feedback.textContent = "ทำได้ดีมาก! เกือบเต็มแล้ว 👍";
            else feedback.textContent = "ไม่เป็นไรนะ ลองทบทวนอีกรอบ สู้ๆ! ✌️";
        }

        function resetQuiz() {
            currentQuizIndex = 0;
            score = 0;
            document.getElementById('score').textContent = '0';
            document.getElementById('question-ui').classList.remove('hidden');
            document.getElementById('result-ui').classList.add('hidden');
            loadQuizQuestion();
        }

    </script>
<div id="gsp_data_html" data-g_version="3.20.1" data-w_id="8ee335ae8ad86099f21d5aed437a1c00" data-s_enc="" data-h_enc="" data-hh_enc="" data-lazy_load="1" data-reload_session="0" data-gt-w="gsp_clgtranslate_wrapper" data-vv_index="15" data-ref=""></div>
</body>
</html>
<div class="gsp_post_data" 
	            data-post_type="post" 
	            data-cat="information-technology" 
	            data-modified="120"
	            data-created="1763616773"
	            data-title="องค์ประกอบของคอมพิวเตอร์" 
	            data-home="https://www.kroochut.com"></div><p>The post <a href="https://www.kroochut.com/computer-components-interactive/">องค์ประกอบของคอมพิวเตอร์</a> appeared first on <a href="https://www.kroochut.com">ครูชัชดอทคอม</a>.</p>
]]></content:encoded>
					
		
		<enclosure url="https://actions.google.com/sounds/v1/cartoon/pop.ogg" length="15571" type="audio/ogg" />

			</item>
	</channel>
</rss>
