{"id":438,"date":"2024-08-07T17:42:35","date_gmt":"2024-08-07T10:42:35","guid":{"rendered":"https:\/\/tubtimsiam04.ac.th\/?page_id=438"},"modified":"2026-04-02T15:57:09","modified_gmt":"2026-04-02T08:57:09","slug":"home","status":"publish","type":"page","link":"https:\/\/tubtimsiam04.ac.th\/","title":{"rendered":"HOME-\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e23\u0e01"},"content":{"rendered":"\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7617\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=11FcwcP-aqVWX0_-VHsB3WYUEo_rzJdxR&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7613\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1ZGw7So00weB7PTOZ_cphPjLVOcLtd_kE&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7608\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1ApQWTRlvgg6TojB-QA3u4uVUMvhul8SJ&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7590\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1j47IqpaXMDdvaydMWaDPFqPZL5xQEvun&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7549\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1DwMn0da2eyag1AS1lNgddc-Z7lvgXzkN&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7556\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=16ikMd838oQieTICddzSPK_KbxL-xDOne&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7490\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1vcc-o7Wm2KWlrO-pel22EBS2hDmsZMmc&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7459\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1HZMej3aDY3ZuFh3rVBGXgUybG7gjCjla&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7434\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1wOcVDd_YYLzjw-a9GDYr5YiTfxOC9rZr&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7365\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1KddYLyKZI15E-G_-nX0B_hasvbX4HZ2e&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7206\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1ySDT2_2ylX1bRxBzYQa0-VoKOBheYnz-&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=5418\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1y-ZZ35wEZJqxyhNWXfLQK2Bo3m3JjouZ&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u0e02\u0e2d\u0e02\u0e2d\u0e1a\u0e1e\u0e23\u0e30\u0e04\u0e38\u0e13\u0e1c\u0e39\u0e49\u0e23\u0e48\u0e27\u0e21\u0e17\u0e33\u0e1a\u0e38\u0e0d\u0e17\u0e38\u0e01\u0e17\u0e48\u0e32\u0e19<\/h2>\n\n\n\n<!DOCTYPE html>\n<html lang=\"th\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>papa \u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e2b\u0e38\u0e48\u0e19\u0e22\u0e19\u0e15\u0e4c\u0e08\u0e32\u0e01 Google Drive<\/title>\n\n    <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/1.6.7\/axios.min.js\"><\/script>\n    <link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/open-sans\/1.1.0\/sans\/400.min.css\" rel=\"stylesheet\">\n    <link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/open-sans\/1.1.0\/sans\/700.min.css\" rel=\"stylesheet\">\n\n    <style>\n        .papa-image-gallery {\n            display: grid;\n            grid-template-columns: repeat(2, 1fr);\n            gap: 0px;\n            margin-bottom: 5px;\n            width: 100%;\n        }\n        .papa-image-item {\n            text-align: center;\n        }\n        .papa-image-item img {\n            width: 100%;\n            height: auto;\n            object-fit: cover;\n            display: block;\n            cursor: pointer;\n            transition: transform 0.3s ease, box-shadow 0.3s ease;\n        }\n        .papa-image-item img:hover {\n            transform: scale(1.30);\n            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);\n        }\n\n        .papa-pagination {\n            display: flex;\n            justify-content: center;\n            align-items: center;\n            margin: 20px 0;\n            flex-wrap: wrap;\n        }\n        .papa-pagination button {\n            background-color: #3498db;\n            color: white;\n            border: none;\n            padding: 10px 15px;\n            margin: 5px;\n            cursor: pointer;\n            border-radius: 5px;\n            font-weight: 700;\n        }\n        .papa-pagination button:hover {\n            background-color: #2980b9;\n        }\n        .papa-pagination button:disabled {\n            background-color: #bdc3c7;\n            cursor: not-allowed;\n        }\n        .papa-pagination button.active {\n            background-color: #95a5a6;\n        }\n\n        .papa-fullscreen-overlay {\n            display: none;\n            position: fixed;\n            top: 0;\n            left: 0;\n            width: 100%;\n            height: 100%;\n            background-color: rgba(0, 0, 0, 0.9);\n            z-index: 1000;\n            justify-content: center;\n            align-items: center;\n        }\n        .papa-fullscreen-image {\n            max-width: 90%;\n            max-height: 90%;\n            object-fit: contain;\n        }\n        .papa-close-button {\n            position: absolute;\n            top: 20px;\n            right: 30px;\n            color: #f1f1f1;\n            font-size: 40px;\n            font-weight: bold;\n            transition: 0.3s;\n            cursor: pointer;\n        }\n        .papa-close-button:hover {\n            color: #bbb;\n        }\n\n        .papa-nav-button {\n            position: absolute;\n            top: 50%;\n            transform: translateY(-50%);\n            color: #f1f1f1;\n            font-size: 40px;\n            font-weight: bold;\n            transition: 0.3s;\n            cursor: pointer;\n            background: none;\n            border: none;\n            padding: 0 20px;\n        }\n        .papa-nav-button:hover {\n            color: #bbb;\n        }\n        .papa-nav-button.prev {\n            left: 20px;\n        }\n        .papa-nav-button.next {\n            right: 20px;\n        }\n    <\/style>\n<\/head>\n\n<body>\n\n    <div id=\"papaImageGallery\" class=\"papa-image-gallery\"><\/div>\n    <div id=\"papaPaginationBottom\" class=\"papa-pagination\"><\/div>\n\n    <div id=\"papaFullscreenOverlay\" class=\"papa-fullscreen-overlay\">\n        <span class=\"papa-close-button\" onclick=\"papa_closeFullscreen()\">&times;<\/span>\n        <button class=\"papa-nav-button prev\" onclick=\"papa_navigateFullscreen(-1)\">&#10094;<\/button>\n        <img decoding=\"async\" id=\"papaFullscreenImage\" class=\"papa-fullscreen-image\" src=\"\" alt=\"Fullscreen Image\">\n        <button class=\"papa-nav-button next\" onclick=\"papa_navigateFullscreen(1)\">&#10095;<\/button>\n    <\/div>\n\n    <script>\n        const papa_API_KEY = 'AIzaSyDESM8XwBxuDqRj-yW-2cHHBEyf8NJ5CUo';\n        const papa_FOLDER_ID = '1YSYV0OyCjXKWYKhFjn3dgkRgY8jh7Zi_';\n        const papa_IMAGES_PER_PAGE = 6;\n\n        let papa_allImages = [];\n        let papa_currentPage = 1;\n        let papa_currentFullscreenIndex = 0;\n\n        async function papa_loadImages() {\n            try {\n                const response = await axios.get(`https:\/\/www.googleapis.com\/drive\/v3\/files`, {\n                    params: {\n                        q: `'${papa_FOLDER_ID}' in parents and mimeType contains 'image\/'`,\n                        fields: 'files(id, name, modifiedTime, webViewLink, thumbnailLink)',\n                        key: papa_API_KEY\n                    }\n                });\n\n                \/\/papa_allImages = response.data.files.sort((a, b) => b.name.localeCompare(a.name));\n\t\t\t\tpapa_allImages = response.data.files.sort(\n\t\t\t\t\t(a, b) => new Date(b.modifiedTime) - new Date(a.modifiedTime)\n\t\t\t\t);\n\n                papa_displayImages(1);\n                papa_setupPagination();\n            } catch (error) {\n                console.error('papa error loading images:', error);\n                document.getElementById('papaImageGallery').innerHTML =\n                    '<p style=\"color: red; text-align: center;\">\u0e42\u0e2b\u0e25\u0e14\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e44\u0e21\u0e48\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48<\/p>';\n            }\n        }\n\n        function papa_displayImages(page) {\n            const gallery = document.getElementById('papaImageGallery');\n            const startIndex = (page - 1) * papa_IMAGES_PER_PAGE;\n            const endIndex = startIndex + papa_IMAGES_PER_PAGE;\n\n            const pageImages = papa_allImages.slice(startIndex, endIndex);\n\n            gallery.innerHTML = '';\n\n            pageImages.forEach((image, index) => {\n                const item = document.createElement('div');\n                item.className = 'papa-image-item';\n                item.innerHTML = `\n                    <img decoding=\"async\" src=\"${image.thumbnailLink.replace('=s220', '=w1204')}\"\n                         alt=\"${image.name}\"\n                         onclick=\"papa_openFullscreen(${startIndex + index})\">\n                `;\n                gallery.appendChild(item);\n            });\n\n            papa_currentPage = page;\n            papa_updatePaginationButtons();\n        }\n\n        function papa_setupPagination() {\n            const totalPages = Math.ceil(papa_allImages.length \/ papa_IMAGES_PER_PAGE);\n            const pagination = document.getElementById('papaPaginationBottom');\n\n            pagination.innerHTML = '';\n\n            const prevButton = papa_createButton('\u0e22\u0e49\u0e2d\u0e19\u0e01\u0e25\u0e31\u0e1a', () => papa_displayImages(papa_currentPage - 1));\n            pagination.appendChild(prevButton);\n\n            for (let i = 1; i <= totalPages; i++) {\n                if (i <= 3 || i > totalPages - 2 || Math.abs(i - papa_currentPage) <= 1) {\n                    const btn = papa_createButton(i.toString(), () => papa_displayImages(i));\n                    pagination.appendChild(btn);\n                } else if (pagination.lastChild.textContent !== '...') {\n                    const ellipsis = document.createElement('span');\n                    ellipsis.textContent = '...';\n                    pagination.appendChild(ellipsis);\n                }\n            }\n\n            const nextButton = papa_createButton('\u0e16\u0e31\u0e14\u0e44\u0e1b', () => papa_displayImages(papa_currentPage + 1));\n            pagination.appendChild(nextButton);\n\n            papa_updatePaginationButtons();\n        }\n\n        function papa_createButton(text, onClick) {\n            const btn = document.createElement('button');\n            btn.textContent = text;\n            btn.onclick = onClick;\n            return btn;\n        }\n\n        function papa_updatePaginationButtons() {\n            const buttons = document.querySelectorAll('.papa-pagination button');\n            const totalPages = Math.ceil(papa_allImages.length \/ papa_IMAGES_PER_PAGE);\n\n            buttons.forEach(button => {\n                if (button.textContent === '\u0e22\u0e49\u0e2d\u0e19\u0e01\u0e25\u0e31\u0e1a') {\n                    button.disabled = papa_currentPage === 1;\n                } else if (button.textContent === '\u0e16\u0e31\u0e14\u0e44\u0e1b') {\n                    button.disabled = papa_currentPage === totalPages;\n                } else {\n                    button.classList.toggle(\n                        'active',\n                        parseInt(button.textContent) === papa_currentPage\n                    );\n                }\n            });\n        }\n\n        function papa_openFullscreen(index) {\n            papa_currentFullscreenIndex = index;\n\n            const overlay = document.getElementById('papaFullscreenOverlay');\n            const img = document.getElementById('papaFullscreenImage');\n\n            img.src = papa_allImages[index].thumbnailLink.replace('=s220', '=w1920');\n            overlay.style.display = 'flex';\n        }\n\n        function papa_closeFullscreen() {\n            document.getElementById('papaFullscreenOverlay').style.display = 'none';\n        }\n\n        function papa_navigateFullscreen(direction) {\n            papa_currentFullscreenIndex += direction;\n\n            if (papa_currentFullscreenIndex < 0) {\n                papa_currentFullscreenIndex = papa_allImages.length - 1;\n            } else if (papa_currentFullscreenIndex >= papa_allImages.length) {\n                papa_currentFullscreenIndex = 0;\n            }\n\n            papa_openFullscreen(papa_currentFullscreenIndex);\n        }\n\n        document.getElementById('papaFullscreenImage').addEventListener('click', e => {\n            e.stopPropagation();\n            papa_navigateFullscreen(1);\n        });\n\n        document.addEventListener('keydown', function(e) {\n            const overlay = document.getElementById('papaFullscreenOverlay');\n\n            if (overlay.style.display === 'flex') {\n                if (e.key === 'ArrowLeft') papa_navigateFullscreen(-1);\n                else if (e.key === 'ArrowRight') papa_navigateFullscreen(1);\n                else if (e.key === 'Escape') papa_closeFullscreen();\n            }\n        });\n\n        papa_loadImages();\n    <\/script>\n\n<\/body>\n<\/html>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7083\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1EidYVAJ_ccF9H466kD9n10jdfl1q0LzK&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=7051\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1jk0C5McBvu7s5Y4FDgNkdNLZeBHasCFE&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<!DOCTYPE html>\n<html lang=\"th\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e08\u0e32\u0e01 Google Drive<\/title>\n    <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/1.6.7\/axios.min.js\"><\/script>\n    <link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/open-sans\/1.1.0\/sans\/400.min.css\" rel=\"stylesheet\">\n    <link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/open-sans\/1.1.0\/sans\/700.min.css\" rel=\"stylesheet\">\n    <link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.5.1\/css\/all.min.css\">\n    \n    <style>\n        body {\n            margin: 0 auto;\n            padding: 20px;\n            max-width: 1400px;\n        }\n        .loading {\n            position: fixed;\n            top: 50%;\n            left: 50%;\n            width: 350px;\n            transform: translate(-50%, -50%);\n            background: rgba(0, 0, 139, 0.9);\n            color: #ffffff;\n            padding: 20px;\n            border-radius: 8px;\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n            z-index: 1000;\n        }\n        .fa-spin {\n            margin-right: 8px;\n        }\n            \n        .image-gallery {\n            display: grid;\n            grid-template-columns: repeat(4, 1fr);\n            gap: 15px;\n            margin-bottom: 10px;\n            justify-content: center;\n        }\n        .image-item {\n            text-align: center;\n        }\n        .image-item img {\n            width: 100%;\n            max-width: 320px;\n            height: auto;\n            border-radius: 5px;\n            box-shadow: 0 2px 5px rgba(0,0,0,0.3);\n            cursor: pointer;\n            transition: transform 0.3s ease, box-shadow 0.3s ease;\n        }\n        .image-item img:hover {\n            transform: scale(1.10);\n            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);\n        }\n        .pagination {\n            display: flex;\n            justify-content: center;\n            align-items: center;\n            margin: 20px 0;\n            flex-wrap: wrap;\n        }\n        .pagination button {\n            background-color: #3498db;\n            color: white;\n            border: none;\n            padding: 10px 15px;\n            margin: 5px;\n            cursor: pointer;\n            border-radius: 5px;\n            font-weight: 700;\n        }\n        .pagination button:hover {\n            background-color: #2980b9;\n        }\n        .pagination button:disabled {\n            background-color: #bdc3c7;\n            cursor: not-allowed;\n        }\n        .pagination button.active {\n            background-color: #95a5a6;\n        }\n        .fullscreen-overlay {\n            display: none;\n            position: fixed;\n            top: 0;\n            left: 0;\n            width: 100%;\n            height: 100%;\n            background-color: rgba(0, 0, 0, 0.9);\n            z-index: 1000;\n            justify-content: center;\n            align-items: center;\n        }\n        .fullscreen-image {\n            max-width: 90%;\n            max-height: 90%;\n            object-fit: contain;\n        }\n        .close-button {\n            position: absolute;\n            top: 20px;\n            right: 30px;\n            color: #f1f1f1;\n            font-size: 40px;\n            font-weight: bold;\n            transition: 0.3s;\n            cursor: pointer;\n        }\n        .close-button:hover {\n            color: #bbb;\n        }\n        .nav-button {\n            position: absolute;\n            top: 50%;\n            transform: translateY(-50%);\n            color: #f1f1f1;\n            font-size: 40px;\n            font-weight: bold;\n            transition: 0.3s;\n            cursor: pointer;\n            background: none;\n            border: none;\n            padding: 0 20px;\n        }\n        .nav-button:hover {\n            color: #bbb;\n        }\n        .nav-button.prev {\n            left: 20px;\n        }\n        .nav-button.next {\n            right: 20px;\n        }\n\n        @media (max-width: 768px) {\n            .image-gallery {\n                grid-template-columns: repeat(4, 1fr);\n            }\n        }\n    <\/style>\n<\/head>\n<body>\n    <script>\n        const gd_link = 'https:\/\/drive.google.com\/drive\/u\/1\/folders\/1bnpWuOPhQ3XvtanQUj2cQwTIBF2_0F3V';\n        const FOLDER_ID = gd_link.split('\/').pop();\n\n        document.addEventListener('DOMContentLoaded', function() {\n            const linkElement = document.getElementById('driveLink');\n            linkElement.href = gd_link;\n            linkElement.textContent = gd_link; \n        });\n\n        function showLoading(show = true) {\n            const loadingDiv = document.createElement('div');\n            loadingDiv.id = 'loadingIndicator';\n            loadingDiv.className = 'loading';\n            loadingDiv.innerHTML = '<i class=\"fas fa-spinner fa-spin\"><\/i>  \u0e01\u0e33\u0e25\u0e31\u0e07\u0e42\u0e2b\u0e25\u0e14... ';\n            \n            if (show) {\n                document.body.appendChild(loadingDiv);\n            } else {\n                const existingLoader = document.getElementById('loadingIndicator');\n                if (existingLoader) {\n                    existingLoader.remove();\n                }\n            }\n        }\n        \n        function delay(ms) {\n            return new Promise(resolve => setTimeout(resolve, ms));\n        }\n        showLoading(true);\n    <\/script>\n\n    <div id=\"scroll_up\"><\/div>\n    <h4>\u0e27\u0e32\u0e23\u0e2a\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e2a\u0e31\u0e21\u0e1e\u0e31\u0e19\u0e18\u0e4c\u0e42\u0e23\u0e07\u0e40\u0e23\u0e35\u0e22\u0e19<\/h4>\n    \n    <div id=\"imageGallery\" class=\"image-gallery\"><\/div>\n    <div id=\"paginationBottom\" class=\"pagination\"><\/div>\n\n    <div id=\"fullscreenOverlay\" class=\"fullscreen-overlay\">\n        <span class=\"close-button\" onclick=\"closeFullscreen()\">&times;<\/span>\n        <button class=\"nav-button prev\" onclick=\"navigateFullscreen(-1)\">&#10094;<\/button>\n        <img decoding=\"async\" id=\"fullscreenImage\" class=\"fullscreen-image\" src=\"\" alt=\"Fullscreen Image\">\n        <button class=\"nav-button next\" onclick=\"navigateFullscreen(1)\">&#10095;<\/button>\n    <\/div>\n\n    <script>\n        const API_KEY = 'AIzaSyDESM8XwBxuDqRj-yW-2cHHBEyf8NJ5CUo';\n        const IMAGES_PER_PAGE = 8;\n        let allImages = [];\n        let currentPage = 1;\n        let currentFullscreenIndex = 0;\n\n        async function loadImages() {\n            try {\n                const response = await axios.get(`https:\/\/www.googleapis.com\/drive\/v3\/files`, {\n                    params: {\n                        q: `'${FOLDER_ID}' in parents and mimeType contains 'image\/'`,\n                        fields: 'files(id, name, modifiedTime, webViewLink, thumbnailLink)',\n                        key: API_KEY\n                    }\n                });\n\n                allImages = response.data.files.sort((b, a) => a.name.localeCompare(b.name));\n                displayImages(1);\n                setupPagination();\n                \n                await delay(1000);\n                showLoading(false);\n            } catch (error) {\n                console.error('\u0e40\u0e01\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14\u0e43\u0e19\u0e01\u0e32\u0e23\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25:', error);\n                document.getElementById('imageGallery').innerHTML = '<p style=\"color: red; text-align: center;\">\u0e40\u0e01\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14\u0e43\u0e19\u0e01\u0e32\u0e23\u0e42\u0e2b\u0e25\u0e14\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e \u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07<\/p>';\n            }\n        }\n\n        function displayImages(page) {\n            const gallery = document.getElementById('imageGallery');\n            const startIndex = (page - 1) * IMAGES_PER_PAGE;\n            const endIndex = startIndex + IMAGES_PER_PAGE;\n            const pageImages = allImages.slice(startIndex, endIndex);\n\n            gallery.innerHTML = '';\n            pageImages.forEach((image, index) => {\n                const imageElement = document.createElement('div');\n                imageElement.className = 'image-item';\n                imageElement.innerHTML = `\n                    <img decoding=\"async\" src=\"${image.thumbnailLink.replace('=s220', '=w320')}\" alt=\"${image.name}\" onclick=\"openFullscreen(${startIndex + index})\">\n                `;\n                gallery.appendChild(imageElement);\n            });\n\n            currentPage = page;\n            updatePaginationButtons();\n        }\n\n        function setupPagination() {\n            const totalPages = Math.ceil(allImages.length \/ IMAGES_PER_PAGE);\n            const paginationBottom = document.getElementById('paginationBottom');\n            paginationBottom.innerHTML = '';\n\n            const prevButton = createButton('\u0e22\u0e49\u0e2d\u0e19\u0e01\u0e25\u0e31\u0e1a', () => displayImages(currentPage - 1));\n            paginationBottom.appendChild(prevButton);\n\n            for (let i = 1; i <= totalPages; i++) {\n                if (i <= 3 || i > totalPages - 2 || Math.abs(i - currentPage) <= 1) {\n                    const pageButton = createButton(i.toString(), () => displayImages(i));\n                    paginationBottom.appendChild(pageButton);\n                } else if (paginationBottom.lastChild.textContent !== '...') {\n                    const ellipsis = document.createElement('span');\n                    ellipsis.textContent = '...';\n                    paginationBottom.appendChild(ellipsis);\n                }\n            }\n\n            const nextButton = createButton('\u0e16\u0e31\u0e14\u0e44\u0e1b', () => displayImages(currentPage + 1));\n            paginationBottom.appendChild(nextButton);\n\n            updatePaginationButtons();\n        }\n\n        function updatePaginationButtons() {\n            const buttons = document.querySelectorAll('.pagination button');\n            const totalPages = Math.ceil(allImages.length \/ IMAGES_PER_PAGE);\n\n            buttons.forEach(button => {\n                if (button.textContent === '\u0e22\u0e49\u0e2d\u0e19\u0e01\u0e25\u0e31\u0e1a') {\n                    button.disabled = currentPage === 1;\n                } else if (button.textContent === '\u0e16\u0e31\u0e14\u0e44\u0e1b') {\n                    button.disabled = currentPage === totalPages;\n                } else {\n                    button.classList.toggle('active', parseInt(button.textContent) === currentPage);\n                }\n            });\n        }\n\n        function openFullscreen(index) {\n            currentFullscreenIndex = index;\n            const fullscreenOverlay = document.getElementById('fullscreenOverlay');\n            const fullscreenImage = document.getElementById('fullscreenImage');\n            fullscreenImage.src = allImages[index].thumbnailLink.replace('=s220', '=w1920');\n            fullscreenOverlay.style.display = 'flex';\n        }\n\n        function closeFullscreen() {\n            const fullscreenOverlay = document.getElementById('fullscreenOverlay');\n            fullscreenOverlay.style.display = 'none';\n        }\n\n        function navigateFullscreen(direction) {\n            currentFullscreenIndex += direction;\n            if (currentFullscreenIndex < 0) {\n                currentFullscreenIndex = allImages.length - 1;\n            } else if (currentFullscreenIndex >= allImages.length) {\n                currentFullscreenIndex = 0;\n            }\n            openFullscreen(currentFullscreenIndex);\n        }\n\n        function scrollToTop() {\n            const scrollUp = document.getElementById('scroll_up'); \t\n            scrollUp.scrollIntoView({ behavior: 'smooth' });\n        }\t\t\n\n        function createButton(text, onClick) {\n            const button = document.createElement('button');\n            button.textContent = text;\n            button.onclick = () => {\n                onClick();\n                scrollToTop();\n            };\n            return button;\n        }\n\n        document.getElementById('fullscreenImage').addEventListener('click', function(e) {\n            e.stopPropagation();\n            navigateFullscreen(1);\n        });\n\n        document.addEventListener('keydown', function(e) {\n            if (document.getElementById('fullscreenOverlay').style.display === 'flex') {\n                if (e.key === 'ArrowLeft') {\n                    navigateFullscreen(-1);\n                } else if (e.key === 'ArrowRight') {\n                    navigateFullscreen(1);\n                } else if (e.key === 'Escape') {\n                    closeFullscreen();\n                }\n            }\n        });\n\n        \/\/loadImages();\n    <\/script>\n<\/body>\n<\/html>\n\n\n\n<p><\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=6984\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1dk6Lg3PAHlu4wmaBhseT-6omVBBQZRQ5&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1KBqOKPcw1VA8ASER5uDQ1EebX_7GFqe2&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=6802\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1T548QDpGRq5HVquBafELdF_QyF249tZi&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=6751\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1c7ObbXTsl3HTjAfQ5oePjFZl2IUW618g&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=6751\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1hhERUpGztrfRp1PYzq06XtAM8IUVojSx&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=6751\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1wvd1zSHG1L4mVNLUX8lw8FhrUqdvsCez&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1jjOKLXnNw-Z6IYNj13T7Q1PI8H8orThT&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=6528\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1DOaJIoWnUr1sn021aT5gJ0TOKVRoSs3X&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1IhSfdJTXt7xZ7bCeMmqO7D6hKLiRwT2J&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=5194\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1tCcPMbGgkxmfdELaJotdler3NM1WAgqc&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=5904\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1Mj_Z9R4IcZUTxY3G7jCu4f0uiW83G2iJ&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:5px\"\/><\/a><\/figure>\n\n\n\n<div style=\"position: relative; width: 100%; height: 0; padding-top: 56.2500%;\n 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;\n border-radius: 8px; will-change: transform;\">\n  <iframe loading=\"lazy\" style=\"position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; padding: 0;margin: 0;\"\n    src=\"https:\/\/www.canva.com\/design\/DAGc4WH5w8A\/9iD-kBhtAsdq1CJ9ZVbAtA\/watch?embed\" allowfullscreen=\"allowfullscreen\" allow=\"fullscreen\">\n  <\/iframe>\n<\/div>\n\n\n\n<div style=\"position: relative; width: 100%; height: 0; padding-top: 56.25%;\n 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;\n border-radius: 8px; will-change: transform;\">\n  <iframe loading=\"lazy\" style=\"position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; padding: 0;margin: 0;\"\n    src=\"https:\/\/www.youtube.com\/embed\/riKtEtRn-9c?si=BaBv1BGAXh9UaZgm\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen>\n  <\/iframe>\n<\/div>\n\n\n\n<p><strong>Best Practice MT We Care Model \u0e42\u0e04\u0e23\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e16\u0e32\u0e19\u0e28\u0e36\u0e01\u0e29\u0e32\u0e2a\u0e35\u0e02\u0e32\u0e27\u0e1b\u0e25\u0e2d\u0e14\u0e22\u0e32\u0e40\u0e2a\u0e1e\u0e15\u0e34\u0e14\u0e41\u0e25\u0e30\u0e2d\u0e1a\u0e32\u0e22\u0e21\u0e38\u0e02<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><a href=\"https:\/\/tubtimsiam04.ac.th\/?p=3788\"><img decoding=\"async\" src=\"https:\/\/drive.google.com\/thumbnail?id=1_RXMo9sDdL3lVcmWO1VtZbaLXD2xVzNG&amp;sz=s1024\" alt=\"\" style=\"border-style:none;border-width:0px;border-radius:10px\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p> &nbsp;&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><a href=\"https:\/\/tubtimsiam04.ac.th\/?page_id=3408\">\u0e2b\u0e19\u0e49\u0e32\u0e16\u0e31\u0e14\u0e44\u0e1b &gt;&gt;<\/a><\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p> &nbsp;&nbsp;<\/p>\n\n\n\n<script>\n        \/\/ \u0e40\u0e23\u0e34\u0e48\u0e21\u0e42\u0e2b\u0e25\u0e14 \u0e27\u0e32\u0e23\u0e2a\u0e32\u0e23 \u0e08\u0e32\u0e01 GoogleDrive\n        \/\/loadImages();\n        \/\/ \u0e40\u0e23\u0e34\u0e48\u0e21\u0e42\u0e2b\u0e25\u0e14 \u0e27\u0e32\u0e23\u0e2a\u0e32\u0e23 \u0e14\u0e49\u0e32\u0e19\u0e02\u0e49\u0e32\u0e07 10 \u0e41\u0e1c\u0e48\u0e19\n        \/\/loadAutoImages();\n    <\/script>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e02\u0e2d\u0e02\u0e2d\u0e1a\u0e1e\u0e23\u0e30\u0e04\u0e38\u0e13\u0e1c\u0e39\u0e49\u0e23\u0e48\u0e27\u0e21\u0e17\u0e33<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"class_list":["post-438","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/tubtimsiam04.ac.th\/index.php?rest_route=\/wp\/v2\/pages\/438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tubtimsiam04.ac.th\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tubtimsiam04.ac.th\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tubtimsiam04.ac.th\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tubtimsiam04.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=438"}],"version-history":[{"count":233,"href":"https:\/\/tubtimsiam04.ac.th\/index.php?rest_route=\/wp\/v2\/pages\/438\/revisions"}],"predecessor-version":[{"id":7622,"href":"https:\/\/tubtimsiam04.ac.th\/index.php?rest_route=\/wp\/v2\/pages\/438\/revisions\/7622"}],"wp:attachment":[{"href":"https:\/\/tubtimsiam04.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}