{"id":10466,"date":"2023-07-12T08:21:03","date_gmt":"2023-07-12T08:21:03","guid":{"rendered":"https:\/\/www.spent.or.th\/academic-conferences-hosted-by-spent\/annual-meeting\/"},"modified":"2026-06-25T09:10:06","modified_gmt":"2026-06-25T09:10:06","slug":"annual-meeting","status":"publish","type":"page","link":"https:\/\/www.spent.or.th\/en\/academic-conferences-hosted-by-spent\/annual-meeting\/","title":{"rendered":"Annual Meeting"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"10466\" class=\"elementor elementor-10466 elementor-9143\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-81941b0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"81941b0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-wide\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-16e3b80\" data-id=\"16e3b80\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cc34bff elementor-grid-3 elementor-grid-tablet-2 elementor-grid-mobile-1 elementor-widget elementor-widget-loop-grid\" data-id=\"cc34bff\" data-element_type=\"widget\" data-settings=\"{&quot;template_id&quot;:10858,&quot;_skin&quot;:&quot;post&quot;,&quot;columns&quot;:&quot;3&quot;,&quot;columns_tablet&quot;:&quot;2&quot;,&quot;columns_mobile&quot;:&quot;1&quot;,&quot;edit_handle_selector&quot;:&quot;[data-elementor-type=\\&quot;loop-item\\&quot;]&quot;,&quot;row_gap&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;row_gap_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;row_gap_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-widget_type=\"loop-grid.post\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"e-loop-nothing-found-message\">\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e9985ff elementor-widget elementor-widget-html\" data-id=\"e9985ff\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<script>\r\n  (function($) {\r\n    $(document).ready(function() {\r\n        \/\/ Find all elements with IDs starting with 'register_btn-'\r\n        $('[id^=\"register_btn-\"]').each(function() {\r\n            \/\/ Get the current element's ID\r\n            var btnID = $(this).attr('id');\r\n        \r\n            \/\/ Extract the post ID from the element's ID\r\n            var postID = btnID.substring(btnID.indexOf('-') + 1);\r\n        \r\n            \/\/ Get the date string from the corresponding ACF field using the post ID\r\n            var dateString = $.trim($('#acfdate-' + postID + ' .elementor-widget-container').html());\r\n        \r\n            \/\/ Extract the day, month, and year from the date string\r\n            var dateParts = dateString.split('\/');\r\n            var day = parseInt(dateParts[0]);\r\n            var month = parseInt(dateParts[1]) - 1; \/\/ Subtract 1 from the month since it's zero-based in JavaScript\r\n            var year = parseInt(dateParts[2]);\r\n        \r\n            \/\/ Create a Date object for the current date\r\n            var today = new Date();\r\n        \r\n            \/\/ Create a Date object for the date in the HTML div\r\n            var dateInDiv = new Date(year, month, day);\r\n        \r\n            \/\/ Check if the HTML div is empty or the date is equal to or less than today\r\n            if (dateString === '' || dateInDiv <= today) {\r\n                \/\/ Hide the current register button\r\n                $(this).hide();\r\n                \/\/ Hide the parent elements until reaching the element with class 'elementor-widget-the7_button_widget'\r\n                $(this).parentsUntil('.elementor-widget-the7_button_widget').hide();\r\n                \r\n                \/\/ Hide the parent element of the register button\r\n                $(this).parentsUntil('.elementor-widget-the7_button_widget').css('display','none');\r\n                \/\/ Remove the class 'upcoming' from the nearest .elementor-widget-image\r\n                $(this).closest('.elementor-widget-wrap').find('.elementor-widget-image.upcoming').removeClass('upcoming');\r\n            }\r\n        });\r\n    });\r\n  })(jQuery);\r\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-79b8bd2 elementor-widget elementor-widget-spacer\" data-id=\"79b8bd2\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":10450,"menu_order":140,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-10466","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/pages\/10466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/comments?post=10466"}],"version-history":[{"count":2,"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/pages\/10466\/revisions"}],"predecessor-version":[{"id":12839,"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/pages\/10466\/revisions\/12839"}],"up":[{"embeddable":true,"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/pages\/10450"}],"wp:attachment":[{"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/media?parent=10466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}