{"id":10452,"date":"2023-07-12T08:28:27","date_gmt":"2023-07-12T08:28:27","guid":{"rendered":"https:\/\/www.spent.or.th\/academic-conferences-hosted-by-spent\/lll-programme\/"},"modified":"2023-10-03T14:10:48","modified_gmt":"2023-10-03T14:10:48","slug":"lll-programme","status":"publish","type":"page","link":"https:\/\/www.spent.or.th\/en\/academic-conferences-hosted-by-spent\/lll-programme\/","title":{"rendered":"LLL programme"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"10452\" class=\"elementor elementor-10452 elementor-9175\" 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-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>\n  (function($) {\n    $(document).ready(function() {\n        \/\/ Find all elements with IDs starting with 'register_btn-'\n        $('[id^=\"register_btn-\"]').each(function() {\n            \/\/ Get the current element's ID\n            var btnID = $(this).attr('id');\n        \n            \/\/ Extract the post ID from the element's ID\n            var postID = btnID.substring(btnID.indexOf('-') + 1);\n        \n            \/\/ Get the date string from the corresponding ACF field using the post ID\n            var dateString = $.trim($('#acfdate-' + postID + ' .elementor-widget-container').html());\n        \n            \/\/ Extract the day, month, and year from the date string\n            var dateParts = dateString.split('\/');\n            var day = parseInt(dateParts[0]);\n            var month = parseInt(dateParts[1]) - 1; \/\/ Subtract 1 from the month since it's zero-based in JavaScript\n            var year = parseInt(dateParts[2]);\n        \n            \/\/ Create a Date object for the current date\n            var today = new Date();\n        \n            \/\/ Create a Date object for the date in the HTML div\n            var dateInDiv = new Date(year, month, day);\n        \n            \/\/ Check if the HTML div is empty or the date is equal to or less than today\n            if (dateString === '' || dateInDiv <= today) {\n                \/\/ Hide the current register button\n                $(this).hide();\n                \/\/ Hide the parent elements until reaching the element with class 'elementor-widget-the7_button_widget'\n                $(this).parentsUntil('.elementor-widget-the7_button_widget').hide();\n                \n                \/\/ Hide the parent element of the register button\n                $(this).parentsUntil('.elementor-widget-the7_button_widget').css('display','none');\n                \/\/ Remove the class 'upcoming' from the nearest .elementor-widget-image\n                $(this).closest('.elementor-widget-wrap').find('.elementor-widget-image.upcoming').removeClass('upcoming');\n                \n                \/\/ Hide the nearest .detail-btn element\n                $(this).closest('.elementor-widget-wrap').find('.detail-btn').show();\n                \n            }else{\n                 \/\/ Show the nearest .detail-btn element\n                $(this).closest('.elementor-widget-wrap').find('.detail-btn').hide();\n            }\n        });\n    });\n  })(jQuery);\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":"<p>Register Read More Load more<\/p>\n","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-10452","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/pages\/10452","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=10452"}],"version-history":[{"count":0,"href":"https:\/\/www.spent.or.th\/en\/wp-json\/wp\/v2\/pages\/10452\/revisions"}],"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=10452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}