Initial commit

This commit is contained in:
Porawit Dongwang
2026-09-16 23:20:08 +07:00
commit 0041668dbb
32577 changed files with 3687927 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Wikimedia Error</title>
<style>
* { margin: 0; padding: 0; }
body { background: #fff; font: 15px/1.6 sans-serif; color: #333; }
.content { margin: 7% auto 0; padding: 2em 1em 1em; max-width: 640px; display: flex; flex-direction: row; flex-wrap: wrap; }
.footer { clear: both; margin-top: 14%; border-top: 1px solid #e5e5e5; background: #f9f9f9; padding: 2em 0; font-size: 0.8em; text-align: center; }
img { margin: 0 2em 2em 0; }
a img { border: 0; }
h1 { margin-top: 1em; font-size: 1.2em; }
.content-text { flex: 1; }
p { margin: 0.7em 0 1em 0; }
a { color: #0645ad; text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: sans-serif; }
summary { font-weight: bold; cursor: pointer; }
details[open] { background: #970302; color: #dfdedd; }
.text-muted { color: #777; }
@media (prefers-color-scheme: dark) {
a { color: #9e9eff; }
body { background: transparent; color: #ddd; }
.footer { border-top: 1px solid #444; background: #060606; }
#logo { filter: invert(1) hue-rotate(180deg); }
.text-muted { color: #888; }
}
</style>
<meta name="color-scheme" content="light dark">
<div class="content" role="main">
<a href="https://www.wikimedia.org"><img id="logo" src="https://www.wikimedia.org/static/images/wmf-logo.png" srcset="https://www.wikimedia.org/static/images/wmf-logo-2x.png 2x" alt="Wikimedia" width="135" height="101">
</a>
<div class="content-text">
<h1>Error</h1>
<p>Use thumbnail sizes listed on https://w.wiki/GHai</p>
</div>
</div>
<div class="footer"><p>If you report this error to the Wikimedia System Administrators, please include the details below.</p><p class="text-muted"><code>Request served via cp5032 cp5032, Varnish XID 363694007<br>Upstream caches: cp5032 int<br>Error: 400, Use thumbnail sizes listed on https://w.wiki/GHai at Mon, 13 Jul 2026 04:28:15 GMT<br><details><summary>Sensitive client information</summary>IP address: 183.88.231.187</details></code></p>
</div>
</html>
@@ -0,0 +1 @@
File not found: /v1/AUTH_mw/wikipedia-commons-local-public.c5/c/c5/Emblem_of_the_Ministry_of_Public_Health_of_Thailand.svg
@@ -0,0 +1,94 @@
// assets/js/app.js
document.addEventListener('DOMContentLoaded', () => {
// Initialization Charts Settings
Chart.register(ChartDataLabels);
Chart.defaults.font.family = "'Sarabun', sans-serif";
Chart.defaults.color = '#64748b';
Chart.defaults.scale.grid.color = '#f1f5f9';
Chart.defaults.scale.grid.drawBorder = false;
Chart.defaults.plugins.tooltip.backgroundColor = 'rgba(15, 23, 42, 0.9)';
Chart.defaults.plugins.tooltip.titleFont = { size: 12, family: "'Sarabun', sans-serif", weight: 'bold' };
Chart.defaults.plugins.tooltip.padding = 10;
Chart.defaults.plugins.tooltip.cornerRadius = 8;
});
// ============================================================================
// ฟังก์ชัน Global UI สำหรับจัดการแท็บและเมนู Sidebar (เพื่อทดแทน mock_data.js)
// ============================================================================
window.toggleSubmenu = function(id, btn) {
const el = document.getElementById(id);
const icon = btn.querySelector('.fa-chevron-down');
if (el && el.classList.contains('hidden')) {
el.classList.remove('hidden'); el.classList.add('flex');
if(icon) icon.classList.add('rotate-180');
btn.classList.add('text-white');
} else if (el) {
el.classList.add('hidden'); el.classList.remove('flex');
if(icon) icon.classList.remove('rotate-180');
btn.classList.remove('text-white');
}
};
window.switchTab = function(tabId, btnElement, pageTitle) {
// ซ่อนทุกแท็บก่อน
document.querySelectorAll('.tab-content').forEach(el => {
el.classList.add('hidden');
el.classList.remove('block', 'animate-fade-in');
});
// เคลียร์สถานะปุ่มเมนูทั้งหมด
document.querySelectorAll('.sidebar-tab').forEach(btn => {
btn.classList.remove('bg-blue-600/20', 'text-blue-400', 'font-bold', 'border-blue-500/20', 'shadow-[inset_0_1px_1px_rgba(255,255,255,0.05)]');
btn.classList.add('text-slate-400', 'font-medium', 'border-transparent');
});
// แสดงแท็บที่เลือก
const targetTab = document.getElementById(tabId);
if (targetTab) {
targetTab.classList.remove('hidden');
targetTab.classList.add('block', 'animate-fade-in');
}
// ไฮไลต์ปุ่มปัจจุบัน
btnElement.classList.remove('text-slate-400', 'font-medium', 'border-transparent');
btnElement.classList.add('bg-blue-600/20', 'text-blue-400', 'font-bold', 'border-blue-500/20', 'shadow-[inset_0_1px_1px_rgba(255,255,255,0.05)]');
// เปลี่ยนชื่อหัวเพจ
const pageTitleEl = document.getElementById('page-title');
if(pageTitleEl) pageTitleEl.innerText = pageTitle;
// เลื่อนหน้าจอกลับขึ้นบนสุด
const mainContent = document.getElementById('main-content');
if(mainContent) mainContent.scrollTop = 0;
// ปิด Sidebar หากเป็นหน้าจอมือถือ
if (window.innerWidth < 1024) window.closeSidebar();
// Trigger Resize ให้ Chart อัปเดตขนาดให้พอดี
window.dispatchEvent(new Event('resize'));
};
window.openSidebar = function() {
const sb = document.getElementById('sidebar');
const overlay = document.getElementById('sidebar-overlay');
if(sb) sb.classList.remove('-translate-x-full');
if(overlay) {
overlay.classList.remove('hidden');
setTimeout(() => {
overlay.classList.remove('opacity-0', 'pointer-events-none');
overlay.classList.add('opacity-100', 'pointer-events-auto');
}, 10);
}
};
window.closeSidebar = function() {
const sb = document.getElementById('sidebar');
const overlay = document.getElementById('sidebar-overlay');
if(sb) sb.classList.add('-translate-x-full');
if(overlay) {
overlay.classList.remove('opacity-100', 'pointer-events-auto');
overlay.classList.add('opacity-0', 'pointer-events-none');
setTimeout(() => overlay.classList.add('hidden'), 300);
}
};