Course information


<!DOCTYPE html>

<html lang="th">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">


<title>หลักสูตรบริหารธุรกิจบัณฑิต | SSRU Ranong</title>


<style>


/* =========================

พื้นฐานเว็บไซต์

========================= */


* {

box-sizing: border-box;

}


body {

font-family: "Sarabun", "Tahoma", sans-serif;

margin: 0;

padding: 30px 15px;

background: #f7f7fb;

color: #333;

}


/* =========================

ส่วนหัวหลักสูตร

========================= */


.course-header {

max-width: 1150px;

margin: 0 auto 35px;

padding: 38px 20px;

text-align: center;

background: linear-gradient(135deg, #7136a5, #a45ac5);

border-radius: 18px;

color: white;

box-shadow: 0 6px 18px rgba(113,54,165,0.20);

}


.course-header h1 {

font-size: 32px;

margin: 0 0 15px;

font-weight: bold;

line-height: 1.5;

}


.course-header h2 {

font-size: 23px;

margin: 0 0 15px;

font-weight: normal;

line-height: 1.7;

}


.course-header p {

font-size: 19px;

margin: 0;

color: #f5eaff;

font-weight: bold;

}


/* =========================

เมนู 3 หัวข้อ

========================= */


.course-menu {

display: flex;

justify-content: center;

gap: 20px;

flex-wrap: wrap;

max-width: 1150px;

margin: 0 auto 30px;

}


.menu-btn {

flex: 1;

min-width: 220px;

min-height: 120px;

padding: 25px 18px;

border: none;

border-radius: 16px;

color: white;

font-size: 20px;

font-weight: bold;

cursor: pointer;

transition: all 0.3s ease;

box-shadow: 0 5px 12px rgba(0,0,0,0.12);

}


/* ปุ่มที่ 1 สีม่วง */


.menu-btn:nth-child(1) {

background: linear-gradient(135deg, #7136a5, #a45ac5);

}


.menu-btn:nth-child(1):hover {

background: linear-gradient(135deg, #512078, #7d35a5);

}


/* ปุ่มที่ 2 สีน้ำเงิน */


.menu-btn:nth-child(2) {

background: linear-gradient(135deg, #2878c7, #48a5e8);

}


.menu-btn:nth-child(2):hover {

background: linear-gradient(135deg, #14518f, #2478c4);

}


/* ปุ่มที่ 3 สีเขียวอมฟ้า */


.menu-btn:nth-child(3) {

background: linear-gradient(135deg, #159b91, #36bca8);

}


.menu-btn:nth-child(3):hover {

background: linear-gradient(135deg, #08746c, #159b91);

}


/* เอฟเฟกต์เมื่อเอาเมาส์ชี้ */


.menu-btn:hover {

transform: translateY(-6px) scale(1.02);

box-shadow: 0 10px 22px rgba(0,0,0,0.20);

}


/* สถานะปุ่มที่เลือก */


.menu-btn.active {

outline: 4px solid #e4c8fa;

outline-offset: 3px;

transform: translateY(-3px);

box-shadow: 0 8px 20px rgba(0,0,0,0.18);

}


/* =========================

พื้นที่แสดงเอกสาร

========================= */


.document-box {

max-width: 1150px;

margin: 0 auto;

padding: 25px;

background: #ffffff;

border-radius: 16px;

box-shadow: 0 4px 15px rgba(0,0,0,0.07);

}


.document-heading {

display: flex;

align-items: center;

justify-content: space-between;

flex-wrap: wrap;

gap: 12px;

margin-bottom: 18px;

}


.document-box h3 {

color: #7136a5;

font-size: 24px;

margin: 0;

}


.pdf-frame {

display: block;

width: 100%;

height: 800px;

border: 1px solid #e5e5e5;

border-radius: 10px;

background: #f5f5f5;

}


/* ปุ่มเปิดเอกสาร */


.open-document {

display: inline-block;

padding: 10px 18px;

background: #7136a5;

color: white;

text-decoration: none;

border-radius: 8px;

font-size: 15px;

transition: 0.3s;

}


.open-document:hover {

background: #512078;

}


/* =========================

Responsive มือถือ

========================= */


@media (max-width: 768px) {


body {

padding: 15px 10px;

}


.course-header {

padding: 28px 15px;

}


.course-header h1 {

font-size: 25px;

}


.course-header h2 {

font-size: 19px;

}


.course-header p {

font-size: 17px;

}


.course-menu {

flex-direction: column;

gap: 15px;

}


.menu-btn {

width: 100%;

min-height: 90px;

font-size: 19px;

}


.document-box {

padding: 15px;

}


.document-box h3 {

font-size: 20px;

}


.pdf-frame {

height: 600px;

}

}


</style>

</head>


<body>


<!-- =========================

ส่วนหัวหลักสูตร

========================= -->


<div class="course-header">


<h1>หลักสูตรบริหารธุรกิจบัณฑิต</h1>


<h2>

สาขาวิชาการจัดการธุรกิจบริการ<br>

การท่องเที่ยวและการโรงแรม

</h2>


<p>หลักสูตรใหม่ พ.ศ. 2569</p>


</div>



<!-- =========================

เมนูหลัก 3 หัวข้อ

========================= -->


<div class="course-menu">


<button class="menu-btn active"

onclick="showDocument('course', this)">

????<br>

รายละเอียดหลักสูตร

</button>


<button class="menu-btn"

onclick="showDocument('plan', this)">

????<br>

แผนการศึกษา

</button>


<button class="menu-btn"

onclick="showDocument('teacher', this)">

????‍????<br>

อาจารย์ประจำหลักสูตร

</button>


</div>



<!-- =========================

พื้นที่แสดงเอกสาร PDF

========================= -->


<div class="document-box">


<div class="document-heading">


<h3 id="document-title">

รายละเอียดหลักสูตร

</h3>


<a id="open-link"

class="open-document"

href="https://drive.google.com/file/d/FILE_ID_1/view"

target="_blank">

↗ เปิดเอกสาร

</a>


</div>


<iframe

id="document-frame"

class="pdf-frame"

src="https://drive.google.com/file/d/FILE_ID_1/preview"

allow="autoplay">

</iframe>


</div>



<!-- =========================

JavaScript

========================= -->


<script>


// กำหนดเอกสาร Google Drive ทั้ง 3 หัวข้อ


const documents = {


course: {

title: "รายละเอียดหลักสูตร",

url: "https://drive.google.com/file/d/1f8cN46drTH3UsCkq4HQufYtVfoiT0aiY/preview",

openUrl: "https://drive.google.com/file/d/1f8cN46drTH3UsCkq4HQufYtVfoiT0aiY/view"

},


plan: {

title: "แผนการศึกษา",

url: "https://drive.google.com/file/d/FILE_ID_2/preview",

openUrl: "https://drive.google.com/file/d/FILE_ID_2/view"

},


teacher: {

title: "อาจารย์ประจำหลักสูตร",

url: "https://drive.google.com/file/d/FILE_ID_3/preview",

openUrl: "https://drive.google.com/file/d/FILE_ID_3/view"

}


};



// ฟังก์ชันเปลี่ยนเอกสาร


function showDocument(type, button) {


const selectedDocument = documents[type];


// เปลี่ยนชื่อหัวข้อ

document.getElementById("document-title")

.innerText = selectedDocument.title;


// เปลี่ยนเอกสาร PDF

document.getElementById("document-frame")

.src = selectedDocument.url;


// เปลี่ยนลิงก์เปิดเอกสาร

document.getElementById("open-link")

.href = selectedDocument.openUrl;


// ล้างสถานะปุ่มเดิม

document.querySelectorAll(".menu-btn")

.forEach(btn => btn.classList.remove("active"));


// กำหนดสถานะปุ่มที่เลือก

button.classList.add("active");


}


</script>


</body>

</html>