ฐานวิจัยข้อมูลแพทย์ประจำบ้าน

คลังข้อมูลผลงานวิจัย

 
 

บทความวิจัยตีพิมพ์ในวารสารระดับนานาชาติ

กำลังโหลดข้อมูลล่าสุดจาก Google Sheets...
 

 } }); } } }); } // ฟังก์ชันสลับหน้าจอ (Switch Tab) function switchTab(id) { // 1. เปลี่ยนสถานะปุ่ม $('.tab-btn').removeClass('active'); $('#btn' + id).addClass('active'); // 2. ซ่อนทุก Panel แล้วโชว์อันที่เลือก $('.content-panel').hide().removeClass('active'); $('#panel' + id).show().addClass('active'); // 3. สั่งให้ตารางจัดขนาดใหม่ (สำคัญมาก) setTimeout(function() { $($.fn.dataTable.tables(true)).DataTable().columns.adjust().responsive.recalc(); }, 200); } $(document).ready(function() { // โหลดข้อมูลทั้งสองตารางรอไว้เลย initTable(https://docs.google.com/spreadsheets/d/e/2PACX-1vQl2hiu_4d8bRfa5u_GlG7B…, 'table1'); initTable(https://docs.google.com/spreadsheets/d/e/2PACX-1vQl2hiu_4d8bRfa5u_GlG7B…, 'table2'); });