Files
survey/stats.html
T

82 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ผลสถิติแบบสอบถาม - TPU Survey</title>
<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=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
'thai': ['"Noto Sans Thai"', 'sans-serif']
},
colors: {
'primary': { 50:'#eff6ff',100:'#dbeafe',200:'#bfdbfe',300:'#93c5fd',400:'#60a5fa',500:'#3b82f6',600:'#2563eb',700:'#1d4ed8',800:'#1e40af',900:'#1e3a8a' },
'accent': { 50:'#fffbeb',100:'#fef3c7',200:'#fde68a',300:'#fcd34d',400:'#fbbf24',500:'#f59e0b',600:'#d97706',700:'#b45309',800:'#92400e',900:'#78350f' }
}
}
}
}
</script>
<link rel="stylesheet" href="css/style.css?v=6">
<style>
body { background-color: var(--bg-color); font-family: 'Noto Sans Thai', sans-serif; }
.stats-view-container {
max-width: 1200px;
margin: 0 auto;
padding: 100px 20px 60px;
}
.stats-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--header-height);
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(12px);
border-bottom: 3px solid #fbbf24;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.stats-title {
font-size: 1.25rem;
font-weight: 800;
color: #1e3a8a;
}
</style>
</head>
<body class="font-thai">
<header class="stats-header">
<div class="d-flex items-center gap-16">
<button class="btn btn-ghost btn-sm" onclick="window.close()">✕ ปิด</button>
<div class="stats-title" id="statsSurveyTitle">กำลังโหลดผลสถิติ...</div>
</div>
<div id="statsActions" class="d-flex gap-12">
<!-- Buttons will be rendered here -->
</div>
</header>
<main class="stats-view-container">
<div id="statsMainContent">
<div class="loading" style="padding: 100px 0;">
<div class="spinner"></div>
<p>กำลังรวบรวมข้อมูลสถิติ...</p>
</div>
</div>
</main>
<script src="js/app.js"></script>
<script src="js/stats.js"></script>
</body>
</html>