CINXE.COM

Bangkok Post exclusive content

<!doctype html> <html lang="en"> <head> <title>Bangkok Post exclusive content</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="keywords" content="Find all exclusive content, English-language media in Thailand here in one spot." /> <meta name="description" content=" Find all exclusive content produced by #1 English-language media in Thailand here in one spot." /> <meta name="author" content="Bangkok Post Public Company Limited" /> <meta name="rating" content="General" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="facebook-domain-verification" content="8j201jekybttvoogrdxq5eq1bkqefn" /> <meta property="fb:pages" content="133643127712" /> <meta name="robots" content="index,follow,NOODP" /> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> <!-- Meta tag Lead DMP --> <!-- Google Tag Manager --> <script> (function(w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-MLF6WTD'); </script> <!-- End Google Tag Manager --> <!-- Andbeyond start remove by ad op team 2021-01-20--> <!-- Andbeyond end --> <link rel="dns-prefetch" href="//static.bangkokpost.com"> <link rel="dns-prefetch" href="//www.googletagservices.com"> <link rel="dns-prefetch" href="//lvs.truehits.in.th"> <link rel="dns-prefetch" href="//adservice.google.co.th"> <link rel="dns-prefetch" href="//adservice.google.com"> <link rel="dns-prefetch" href="//connect.facebook.net"> <link rel="dns-prefetch" href="//ads3.bangkokpost.co.th"> <link rel="dns-prefetch" href="//www.instagram.com"> <link rel="dns-prefetch" href="//widgets.outbrain.com"> <link rel="dns-prefetch" href="//platform.twitter.com"> <meta name="apple-mobile-web-app-title" content="Bangkok Post Website" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> <meta name="msapplication-TileColor" content="#213c70" /> <meta name="msapplication-TileImage" content="https://bangkokpost.com/newdesign/assets/images/app_icon/icon-144x144.png" /> <meta name="theme-color" content="#213c70" /> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> <link rel="icon" href="/favicon.ico" type="image/x-icon"> <link rel="manifest" href="/manifest.json" /> <link rel="shortcut icon" href="https://static.bangkokpost.com/newdesign/assets/images/bp-icon.png" type="image/x-icon"> <!-- HTML5 Shim for IE --> <!--[if IE]> <script src="https://static.bangkokpost.com/newdesign/assets/js/html5.js"></script> <![endif]--> <!-- Anymind Game --> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9610599349523776" crossorigin="anonymous"></script> <script type="text/javascript"> if ('serviceWorker' in navigator) { window.addEventListener('load', function() { navigator.serviceWorker.register('/service-worker.js?v=6').then(function(registration) { // Registration was successful // console.log('Registration was successful'); }, function(err) { // registration failed :( // console.log('registration failed'); }); }); } </script> <script type="text/javascript" src="https://static.bangkokpost.com/newdesign/assets/js/jquery.min.js?v=0.077"></script> <link href="https://static.bangkokpost.com/newdesign/assets/bootstrap/css/bootstrap.min.css?v=0.24" rel="stylesheet"> <script src="https://static.bangkokpost.com/newdesign/assets/bootstrap/js/bootstrap.min.js?v=0.077"></script> <link href="https://static.bangkokpost.com/newdesign/assets/css/animate.min.css?v=0.24" rel="stylesheet"> <link href="https://static.bangkokpost.com/newdesign/assets/fontawesome-5.6.3/css/all.min.css?v=0.24" rel="stylesheet"> <!-- Owl Stylesheets --> <link href="https://static.bangkokpost.com/newdesign/assets/plugins/owlcarousel/assets/owl.carousel.min.css?v=0.24" rel="stylesheet"> <link href="https://static.bangkokpost.com/newdesign/assets/plugins/owlcarousel/assets/owl.theme.default.min.css?v=0.24" rel="stylesheet"> <script defer src="https://static.bangkokpost.com/newdesign/assets/plugins/owlcarousel/owl.carousel.min.js?v=0.077"></script> <!-- Hotjar Tracking Code for https://www.bangkokpost.com/ --> <!-- <script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:3047351,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); </script> --> <!-- bxslider --> <link href="https://static.bangkokpost.com/newdesign/assets/plugins/bxslider/jquery.bxslider.min.css?v=0.24" rel="stylesheet" /> <script defer src="https://static.bangkokpost.com/newdesign/assets/plugins/bxslider/jquery.bxslider.min.js?v=0.077"></script> <link href="https://static.bangkokpost.com/newdesign/assets/css/custom.min.css?v=0.24" rel="stylesheet" type="text/css"> <link href="https://static.bangkokpost.com/newdesign/assets/css/component.min.css?v=0.24" rel="stylesheet" type="text/css"> <link href="https://static.bangkokpost.com/newdesign/assets/css/style.min.css?v=0.24" rel="stylesheet" type="text/css"> <!-- ceo phase2 --> <!-- ceo winner --> <!-- reader choice voting --> <!-- rca winner --> <!-- women 2022 --> <!-- world cup qatar --> <!-- APEC 2022 --> <!-- style anni75_2021 --> <!-- /style anni75_2021 --> <link href="https://static.bangkokpost.com/newdesign/assets/css/style_custom.css?v=0.24" rel="stylesheet" type="text/css"> <script type="text/javascript" src="https://static.bangkokpost.com/newdesign/assets/js/scripts.js?v=0.077"></script> <script type="text/javascript" src="https://static.bangkokpost.com/newdesign/assets/custom/js/jquery.lazy.min.js?v=0.077"></script> <script> var initGPT = function() { var gads = document.createElement("script"); gads.async = true; gads.type = "text/javascript"; var useSSL = "https:" == document.location.protocol; gads.src = (useSSL ? "https:" : "http:") + "//securepubads.g.doubleclick.net/tag/js/gpt.js"; var node = document.getElementsByTagName("script")[0]; node.parentNode.insertBefore(gads, node); }; </script> <script> var time = 0; /* App nexus 2 (initial) */ var PREBID_TIMEOUT = 700; var pbjs = pbjs || {}; pbjs.que = pbjs.que || []; setTimeout(initGPT, 100); </script> <!-- 2022-12-01 remove Anymind --> <script type="application/javascript" src="//anymind360.com/js/1855/ats.js"></script> <script type="text/javascript"> /** * Get the URL parameters * @param {String} url The URL * @return {Object} The URL parameters */ var getParams = function(url) { var params = {}; var parser = document.createElement('a'); parser.href = url; var query = parser.search.substring(1); var vars = query.split('&'); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split('='); params[pair[0]] = decodeURIComponent(pair[1]); } return params; }; // Global variable // var g_page_type = ''; var g_section = ''; var g_sub_section = ''; var g_content_id = ''; var g_topic_id = ''; var g_url_path = window.location.pathname.split('/'); var g_window_width = window.innerWidth; var g_url_params = getParams(window.location.href); // Initial g_url_path index for (i = 0; i <= 5; i++) { if (typeof g_url_path[i] === 'undefined') g_url_path[i] = ''; } if (g_content_id != '') { g_page_type = 'article'; g_section = g_url_path[1]; g_sub_section = g_url_path[2]; } else if (g_url_path[1] == '') { g_page_type = 'homepage'; g_section = 'homepage'; } else if (g_url_path[2] != '') { g_page_type = 'sub_section'; g_section = g_url_path[1]; g_sub_section = g_url_path[2]; } else { g_page_type = 'section'; g_section = g_url_path[1]; } var g_ad = { ad_type: '', get_ad_type: function() { var _t = this; var _width = g_window_width; if (_width >= 950) { _t.ad_type = "desktop"; } else if (_width < 950 && _width >= 768) { _t.ad_type = "tablet"; } else if (_width < 768 && _width >= 336) { _t.ad_type = "mobile"; } else if (_width < 336) { _t.ad_type = "other"; } return _t.ad_type; }, get_gpt_slot: function(position, section) { var _t = this; var _slot = []; return _slot; }, get_ad_section: function() { ad_section = g_section; if (ad_section == 'sports') { ad_section = 'sport'; } else if (ad_section == 'vdo') { ad_section = 'video'; } else if (ad_section == 'most-recent') { ad_section = 'mostrecent'; } else if (ad_section == 'topstories') { ad_section = 'others'; } return ad_section; } } var gptadslots = []; var googletag = googletag || { cmd: [] }; var g_ad_type = g_ad.get_ad_type(); // window.googletag = window.googletag || {cmd: []}; var ad_section = g_ad.get_ad_section(); var ad_slot_multi_0 = []; var add_size_inread_0 = []; var add_size_inread_1 = []; var add_size_inread2_0 = []; var add_size_inread2_1 = []; var add_size_multi_0 = []; var add_size_multi_1 = []; var ad_slot_inread_0 = []; var ad_slot_inread_1 = []; var add_size_leaderboard_0 = []; var add_size_hybrid_0 = []; var ad_slot_hybrid_0 = []; if (ad_section == 'homepage') { add_size_sticky_0 = [ [300, 250] ]; add_size_sticky_1 = [ [300, 250] ]; add_size_multi_0 = [ [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; add_size_multi_1 = [ [336, 280], [300, 250] ]; add_size_hybrid_1 = [ [300, 250] ]; ad_slot_leaderboard_0 = [ [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; ad_slot_hybrid_0 = [ [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; if (g_ad.get_ad_type() == 'tablet') { ad_slot_hybrid_0 = [ [728, 90] ]; add_size_hybrid_0 = [ [728, 90] ]; add_size_leaderboard_0 = [ [728, 90] ]; } else if (g_ad.get_ad_type() == 'desktop') { ad_slot_hybrid_0 = [ [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; add_size_hybrid_0 = [ [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; add_size_leaderboard_0 = [ [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; } ad_slot_multi_0 = [ [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; ad_slot_sticky_0 = [ [1,1], [300, 250] ]; } else { add_size_hybrid_1 = [ [1, 1], [300, 250] ]; add_size_sticky_0 = [ [1, 1], [300, 250] ]; add_size_sticky_1 = [ [1, 1], [300, 250] ]; ad_slot_leaderboard_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; if (g_ad.get_ad_type() == 'tablet') { ad_slot_hybrid_0 = [ [1, 1], [728, 90] ]; add_size_hybrid_0 = [ [1, 1], [728, 90] ]; add_size_leaderboard_0 = [ [1, 1], [728, 90] ]; } else if (g_ad.get_ad_type() == 'desktop') { ad_slot_hybrid_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; add_size_hybrid_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; add_size_leaderboard_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; } ad_slot_sticky_0 = [ [1, 1], [300, 250] ]; add_size_inread_0 = [ [1, 1], [336, 280], [300, 250], [640, 360] ]; add_size_inread_1 = [ [1, 1], [300, 250], [336, 280] ]; add_size_inread2_0 = add_size_inread_0; add_size_inread2_1 = add_size_inread_1; ad_slot_inread_0 = [ [1, 1], [336, 280], [300, 250] ]; if (ad_section == 'business') { add_size_hybrid_1 = [ [1, 1], [300, 250] ]; add_size_sticky_0 = [ [1, 1], [300, 250] ]; add_size_sticky_1 = [ [1, 1], [300, 250] ]; ad_slot_leaderboard_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; if (g_ad.get_ad_type() == 'tablet') { ad_slot_hybrid_0 = [ [1, 1], [728, 90] ]; add_size_hybrid_0 = [ [1, 1], [728, 90] ]; add_size_leaderboard_0 = [ [1, 1], [728, 90] ]; } else if (g_ad.get_ad_type() == 'desktop') { ad_slot_hybrid_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90], [1600, 250] ]; add_size_hybrid_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90], [1600, 250] ]; add_size_leaderboard_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; } ad_slot_sticky_0 = [ [1, 1], [300, 250] ]; } else if (ad_section == 'life' || ad_section == 'travel') { add_size_inread_0 = [ [336, 280], [300, 250] ]; add_size_inread_1 = [ [320, 100], [300, 250], [336, 280], [250, 250] ]; add_size_inread2_0 = add_size_inread_0; add_size_inread2_1 = add_size_inread_1; ad_slot_inread_0 = [ [336, 280], [300, 250] ]; } if (g_page_type == 'article' && ad_section != 'video' && ad_section != 'photo' && g_url_path[2] != 'postbag') { // hybrid article //console.log('hybrid article : business'); add_size_hybrid_0 = [ [1, 1], [300, 250] ]; add_size_hybrid_1 = [ [1, 1], [300, 250] ]; ad_slot_hybrid_0 = [ [1, 1], [300, 250] ]; } if (g_page_type == 'article' && ad_section == 'life' || ad_section == 'travel') { add_size_hybrid_1 = [ [1, 1], [300, 250] ]; if (g_ad.get_ad_type() == 'tablet') { ad_slot_hybrid_0 = [ [728, 90] ]; add_size_hybrid_0 = [ [1, 1], [728, 90] ]; } else if (g_ad.get_ad_type() == 'desktop') { ad_slot_hybrid_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; add_size_hybrid_0 = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; } } if (ad_section == 'life' && g_ad.get_ad_type() == 'mobile') { ad_slot_hybrid_0 = [ [1, 1], [300, 250] ]; } } googletag.cmd.push(function() { var adUnits = []; /* Start size mapping, remove unused ad type */ if (g_page_type == 'homepage') { var mappingleaderboard = googletag.sizeMapping() .addSize([800, 600], add_size_leaderboard_0) .addSize([0, 0], [ [320, 100], [320, 50] ]) .build(); } else { var mappingleaderboard = googletag.sizeMapping() .addSize([800, 600], add_size_leaderboard_0) .addSize([0, 0], [ [320, 100], [320, 50] ]) .build(); var mappingleaderboard1 = googletag.sizeMapping() .addSize([800, 600], [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]) .addSize([0, 0], [ [1, 1], [300, 250], [320, 50] ]) .build(); var mappingleaderboard_life = googletag.sizeMapping() .addSize([800, 600], [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]) // ,[1500,300],[1920,300] .addSize([0, 0], [ [1, 1], [320, 100], [320, 50] ]) .build(); var mappingleaderboard_business = googletag.sizeMapping() .addSize([800, 600], [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]) // ,[1500,300],[1920,300] .addSize([0, 0], [ [1, 1], [320, 100], [320, 50] ]) .build(); if (ad_section == "business") { var mappingleaderboard = googletag.sizeMapping() .addSize([800, 600], [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90], [1500, 300] ]) .addSize([0, 0], [ [1, 1], [320, 50] ]) .build(); } } var mappinghybrid = googletag.sizeMapping() .addSize([800, 600], add_size_hybrid_0) .addSize([0, 0], add_size_hybrid_1) .build(); var mappingsticky = googletag.sizeMapping() .addSize([800, 600], add_size_sticky_0) .addSize([0, 0], add_size_sticky_1) .build(); var mappinginread = googletag.sizeMapping() .addSize([800, 600], add_size_inread_0) .addSize([0, 0], add_size_inread_1) .build(); var mappinginread2 = googletag.sizeMapping() .addSize([800, 600], add_size_inread2_0) .addSize([0, 0], add_size_inread2_1) .build(); var mappingmulti = googletag.sizeMapping() .addSize([800, 600], add_size_multi_0) .addSize([0, 0], add_size_multi_1) .build(); /* End size mapping */ // leader board var leaderboard_size; if (g_ad_type == 'tablet') { leaderboard_size = [ [728, 90] ]; } else if (g_ad_type == 'desktop') { leaderboard_size = [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ]; } if (g_topic_id == '1752179') { //console.log('=>bkp_edu2019_lb'); gptadslots.push(googletag.defineSlot('/2776261/bkp_edu2019_lb', leaderboard_size, 'div-gpt-ad-leaderboard-0') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard) .addService(googletag.pubads())); } else if (g_topic_id == '1802499') { //console.log('topics lb bangkokpost_event : topic_id 1802499'); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_event/leaderboard', leaderboard_size, 'div-gpt-ad-leaderboard-0') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard) .addService(googletag.pubads())); } else if (g_topic_id == '1824599') { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_wsj/WSJ_BP_LB1', [ [728, 90], [970, 90], [1200, 90], [970, 250], [1, 1], [1200, 250] ], 'div-gpt-ad-leaderboard-0') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard) .addService(googletag.pubads())); if (g_ad.get_ad_type() == 'desktop') { // console.log('topics lb bottom div-gpt-ad-leaderboard-1 : bangkokpost_wsj/WSJ_BP_LB2'); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_wsj/WSJ_BP_LB2', [ [1, 1], [300, 250] ], 'div-gpt-ad-leaderboard-1') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard1) .addService(googletag.pubads())); } } else if (g_section == "specials" && (g_url_path[2] == "delivery" || g_url_path[2] == "covid19")) { // console.log('leaderboard specials : delivery covid19'); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_COVID-19/leaderboard', leaderboard_size, 'div-gpt-ad-leaderboard-0') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard) .addService(googletag.pubads())); } else if (g_section == "campaign" && (g_url_path[2] == "world-cup-qatar")) { // 2022-11-25 console.log(' landing leaderboard campaign : world-cup-qatar'); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_worldcup2022/leaderboard1', [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ], 'div-gpt-ad-leaderboard-0') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard_life) .addService(googletag.pubads())); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_worldcup2022/leaderboard2', [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ], 'div-gpt-ad-leaderboard-2') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard_life) .addService(googletag.pubads())); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_worldcup2022/leaderboard3', [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ], 'div-gpt-ad-leaderboard-3') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard_life) .addService(googletag.pubads())); } else { if (ad_section == "life" || ad_section == "sport") { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/leaderboard', [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ], 'div-gpt-ad-leaderboard-0') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard_life) .addService(googletag.pubads())); //} console.log('normal lb section 1 : ' + ad_section + ' :' + g_ad.get_ad_type()); } else if (ad_section == "business") { if (g_ad.get_ad_type() != "mobile") { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/leaderboard', [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ], 'div-gpt-ad-leaderboard-0') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard_business) .addService(googletag.pubads())); console.log('normal lb section business. : ' + ad_section + ' :' + g_ad.get_ad_type()); } } else { if (ad_section != "world" && ad_section != "thailand" && ad_section != "homepage" && ad_section != "opinion") { // 2021-08-25 world ปิดชั่วคราว //console.log('normal lb section : bangkokpost_' + ad_section + '/leaderboard'); // remove Anymind 2022-12-01 if (ad_section != "guru") { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/leaderboard', [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ], 'div-gpt-ad-leaderboard-0') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard) .addService(googletag.pubads())); console.log('normal lb section 2 : ' + ad_section + ' :' + g_ad.get_ad_type()); // console.log('=slot LB name ==>' + '/2776261/bangkokpost_' + ad_section + '/leaderboard'); } } } } // end leaderboard // start leaderboard top if (ad_section == 'homepage') { //if(g_ad.get_ad_type() == 'desktop'){ console.log('Top lb : bangkokpost_' + ad_section + '/lb_top'); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_homepage/lb_top', [ [1920, 300], [1, 1] ], 'div-gpt-ad-leaderboard-top') .setTargeting('unit_type', ['leaderboard']) .addService(googletag.pubads())); //} } // end leaderboard top // sticky // - หน้า homepage & main section sticky ad บน desktop size จะแสดงผล ad คนละจุดกับ size อื่นๆ // - หน้า section video & photo จะไม่แสดง sticy ad // - หน้า sub_section video & photo จะไม่แสดง sticy ad // - หน้า article section life & travel จะไม่แสดง sticky ad // - หน้า article และ sub_section ต้องไม่ใช่ postbag if (g_page_type == 'homepage' || g_page_type == 'section' && (ad_section != 'video' && ad_section != 'photo' && ad_section != 'others' && ad_section != 'mostrecent') ) { if (ad_section == "learning") { // กรณี Learning มี ตำแหน่งเดียว gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-0') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); } else { if (ad_section != "world" && ad_section != "thailand" && g_page_type != 'homepage' && ad_section != 'opinion') { // Remove GAM 2023-01-17 // remove Anymind 2022-12-01 if (ad_section != "guru" && ad_section != "campaign" ) { if (g_ad_type != 'desktop') { // กรณีไม่ใช่ desktop gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-0') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); console.log('sticky-0-0 maping size : ' + mappingsticky); } else { // กรณี desktop gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-1') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); console.log('sticky-0-1 maping size : ' + mappingsticky); } console.log('header sticky : ' + ad_section + ' : ' + g_ad_type); } } } } else if ((g_page_type == 'sub_section' && (ad_section != 'video' && ad_section != 'photo' && g_url_path[2] != 'columnist')) || (g_page_type == 'article' && (g_url_path[2] != 'postbag' && ad_section != 'travel' && ad_section != 'life' && ad_section != 'photo' && ad_section != 'video')) ) { if (g_topic_id == '1752179') { //console.log('topics sticky 0-0 : topic_id 1752179'); gptadslots.push(googletag.defineSlot('/2776261/bkp_edu2019_sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-0') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); } else if (g_topic_id == '1802499') { //console.log('topics sticky 0-0 : topic_id 1802499'); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_event/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-0') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); } else if (g_topic_id == '1824599') { console.log('topics sticky 0-0 : topic_id 1824599'); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_wsj/WSJ_BP_Sticky', [ [1, 1], [300, 250] ], 'div-gpt-ad-sticky-0-0') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); } else { if (g_section != "specials" && ad_section != "guru" && ad_section != "world" && ad_section != "thailand" && ad_section != "opinion") { // if(ad_section != "world" && ad_section != "thailand" && ad_section != "opinion") // { // 2021-08-25 world ปิดชั่วคราว // remove Anymind 2022-12-01 // if(ad_section == "homepage" ) // { // posttoday testing by tong // gptadslots.push(googletag.defineSlot('/143557018/bangkokpost_' + ad_section + '/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-0') // .setTargeting('unit_type', ['sticky']) // .defineSizeMapping(mappingsticky) // .addService(googletag.pubads())); // console.log('normal sticky-0-0 : bangkokpost_' + ad_section +'/sticky'); // } if (g_page_type == "sub_section" && g_section == "topics") { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-0') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); console.log('header topics sticky-0-0 : bangkokpost_' + ad_section + '/sticky'); } else { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-0') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); console.log('normal sticky-0-0 : bangkokpost_' + ad_section + '/sticky'); } // } } } } if (ad_section == 'guru') { if (g_page_type == "section") { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/leaderboard', [ [1, 1], [970, 250], [970, 90], [970, 70], [728, 90], [1200, 250], [1200, 90] ], 'div-gpt-ad-leaderboard-0') .setTargeting('unit_type', ['leaderboard']) .defineSizeMapping(mappingleaderboard) .addService(googletag.pubads())); console.log('guru lb section : ' + ad_section + ' :' + g_ad.get_ad_type()); // Rec if (g_ad_type != 'desktop') { // กรณีไม่ใช่ desktop gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/rec1', [ [1, 1], [300, 250] ], 'div-gpt-ad-rec-0') .setTargeting('unit_type', ['rec1']) .defineSizeMapping([ [1, 1], [300, 250] ]) .addService(googletag.pubads())); } else { // กรณี desktop gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/rec1', [ [1, 1], [300, 250] ], 'div-gpt-ad-rec-1') .setTargeting('unit_type', ['rec1']) .defineSizeMapping([ [1, 1], [300, 250] ]) .addService(googletag.pubads())); } console.log('rec : ' + ad_section + ' : ' + g_ad_type); //end Rec } else if (g_page_type == "sub_section") { // sticky if (g_ad_type != 'desktop') { // กรณีไม่ใช่ desktop gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-0') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); console.log('sticky-0-0 maping size : ' + mappingsticky); } else { // กรณี desktop gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-1') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) .addService(googletag.pubads())); console.log('sticky-0-1 maping size : ' + mappingsticky); } console.log('header sticky ad_section : ' + ad_section + ' : ' + g_ad_type); // end sticky } } // inread if (g_page_type == 'article' && ad_section != 'video' && ad_section != 'photo' && g_url_path[2] != 'postbag') { $(function() { var _index_p1 = 0; var _index_p2 = 0; var p2_img = 0; var article_p = $('.articl-content p'); var paragraph_inread1 = false; var paragraph_inread2 = false; if (article_p.eq(3).length) { _index_p1 = 3; $('.articl-content p').eq(3).nextAll().each(function(index) { if (index == 0) { if ($(this).find("a.js-img-viwer.gallery-icon img").length) { _index_p1--; } } }); } if (article_p.eq(6).length) { _index_p2 = 6; $('.articl-content p').eq(6).nextAll().each(function(index) { if (index == 0) { if ($(this).find("a.js-img-viwer.gallery-icon img").length) { _index_p2--; p2_img = _index_p2; } } }); } else if (article_p.eq(5).length) { _index_p2 = 5; p2_img = _index_p2; } if (article_p.eq(_index_p1).parent().attr('class') != 'articl-content') { _index_p1--; } if (_index_p1 > 0) { paragraph_inread1 = article_p.eq(_index_p1); } if (_index_p2 > 0) { if (article_p.eq(_index_p2).parent().attr('class') != 'articl-content') { _index_p2--; } paragraph_inread2 = article_p.eq(_index_p2); } if (paragraph_inread1 != false) { // if (paragraph_inread1 != false && ad_section !='business' ) { //console.log('normal inread1 : bangkokpost_' + ad_section + '/inread'); // if( // business inread mobile /* ad_section !='business' || (ad_section == 'business' && g_ad.get_ad_type() == 'mobile') */ // ){ if (ad_section != "world" && ad_section != "thailand" && ad_section != "opinion") { // 2021-08-25 world ปิดชั่วคราว // remove Anymind 2022-12-01 // if(ad_section == "business" ){ // if(g_ad.get_ad_type() == 'mobile'){ // console.log('mobile inread1 : bangkokpost_' + ad_section + '/inread'); // gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/inread', // ad_slot_inread_0, 'div-gpt-ad-inread-0') // .setTargeting('unit_type', ['inread']) // .defineSizeMapping(mappinginread) //delete line if not responsive // .addService(googletag.pubads())); // } // } else { เปิด business desktop & mobile console.log('normal inread1 : bangkokpost_' + ad_section + '/inread'); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/inread', ad_slot_inread_0, 'div-gpt-ad-inread-0') .setTargeting('unit_type', ['inread']) .defineSizeMapping(mappinginread) //delete line if not responsive .addService(googletag.pubads())); //} } if (_index_p1 == 2) { // if(ad_section !='world' && ad_section !='thailand' && ad_section !='opinion' ) // { // 2021-08-25 world ปิดชั่วคราว // remove Anymind 2022-12-01 // if(ad_section == "business" ){ // if( g_ad.get_ad_type() == 'mobile'){ // paragraph_inread1.after( // '<div class="ads ads-boombox" id="ads-inread-0">\ // <div style="font-size: 10px; margin-bottom: 1rem; color: #8a9299;">ADVERTISEMENT</div>\ // <div id="div-gpt-ad-inread-0"></div>\ // </div>' // ); // } //}else { paragraph_inread1.after( '<div class="ads ads-boombox" id="ads-inread-0">\ <div style="font-size: 10px; margin-bottom: 1rem; color: #8a9299;">ADVERTISEMENT</div>\ <div id="div-gpt-ad-inread-0"></div>\ </div>' ); //} // } } else { paragraph_inread1.before( '<div class="ads ads-boombox" id="ads-inread-0">\ <div style="font-size: 10px; margin-bottom: 1rem; color: #8a9299;">ADVERTISEMENT</div>\ <div id="div-gpt-ad-inread-0"></div>\ </div>' ); } inread_element_1 = $('#ads-inread-0'); // Hide ad inread inread_element_1.css({ "visibility": "hidden", "height": "0", "padding": "0", "margin": "0" }); //} } //=====wjs ===== //=====wsj ===== /* // close inread2 by CR if (paragraph_inread2 != false && ad_section !='business') { //console.log('inread2'); gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/inread2', ad_slot_inread_0, 'div-gpt-ad-inread-1') .setTargeting('unit_type', ['inread']) .defineSizeMapping(mappinginread) //delete line if not responsive .addService(googletag.pubads())); if(_index_p2 == p2_img){ //console.log(' paragraph_inread2 after :' +_index_p2); paragraph_inread2.after( '<div class="ads ads-boombox" id="ads-inread-1">\ <div id="div-gpt-ad-inread-1"></div>\ </div>' ); }else{ //console.log(' paragraph_inread2 before :' +_index_p2); paragraph_inread2.before( '<div class="ads ads-boombox" id="ads-inread-1">\ <div id="div-gpt-ad-inread-1"></div>\ </div>' ); } inread_element_2 = $('#ads-inread-1'); // Hide ad inread inread_element_2.css({ "visibility": "hidden", "height": "0","padding": "0","margin": "0"}); } */ $(document).scroll(function() { // if ($('#ads-inread-0').length && paragraph_inread1 != false && ad_section !='business') { if ($('#ads-inread-0').length && paragraph_inread1 != false) { // if( // ad_section !='business' || // (ad_section == 'business' && g_ad.get_ad_type() == 'mobile') // ){ if (ad_section != "world" && ad_section != "thailand" && ad_section != "opinion") { // remove Anymind 2022-12-01 var scroll = $(window).scrollTop(); position_check_ads = ($(window).height() / 2) + scroll; var currentAdsBox = inread_element_1.offset().top; inread_element_1 = $('#ads-inread-0'); if (!inread_element_1.hasClass("active")) { if (position_check_ads > currentAdsBox) { // if(ad_section !='world' && ad_section !='thailand' ) // { // 2021-08-25 world ปิดชั่วคราว // remove Anymind 2022-12-01 googletag.cmd.push(function() { googletag.display("div-gpt-ad-inread-0"); }); //} // Show ad inread inread_element_1.addClass('active'); inread_element_1.css({ 'height': '0', 'opacity': 0, 'visibility': "visible", 'padding-bottom': "10px", 'padding-top': "10px", 'margin-bottom': 20 }).animate({ 'height': '100%', 'opacity': 1 }, 500); // inread_element_1.css({'height':'0' ,'opacity': 0, 'visibility': "visible", 'margin-bottom' : 20}).animate({'height':'200','opacity': 1}, 500); } } } } /* close inread2 by CR if ($('#ads-inread-1').length && paragraph_inread2 != false && ad_section !='business') { var scroll = $(window).scrollTop(); position_check_ads = ($(window).height() / 2) + scroll; var currentAdsBox = inread_element_2.offset().top; inread_element_2 = $('#ads-inread-1'); if (!inread_element_2.hasClass("active")) { if (position_check_ads > currentAdsBox) { googletag.cmd.push(function(){ googletag.display("div-gpt-ad-inread-1");}); // Show ad inread inread_element_2.addClass('active'); inread_element_2.css({'height':'0' ,'opacity': 0, 'visibility': "visible", 'padding-bottom': "10px", 'padding-top': "10px", 'margin-bottom' : 20}).animate({'height':'100%','opacity': 1}, 500); // inread_element_2.css({'height':'0' ,'opacity': 0, 'visibility': "visible", 'margin-bottom' : 20}).animate({'height':'200','opacity': 1}, 500); } } } */ //=====wsj ===== //=====wsj===== }); }); } // hybrid // show in homepage, section, photo article //console.log('g_page_type',g_page_type); //console.log('ad_section',ad_section); if ((g_page_type == 'sub_section') || (g_page_type == 'section' && ad_section == 'mostrecent') || (g_page_type == 'section' && ad_section == 'others') || (g_page_type == 'sub_section' && ad_section != 'topics') ) { if (ad_section != 'guru') { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/sticky', ad_slot_sticky_0, 'div-gpt-ad-sticky-0-0') .setTargeting('unit_type', ['sticky']) .defineSizeMapping(mappingsticky) //delete line if not responsive .addService(googletag.pubads())); // console.log('header ad_slot_sticky_0 ==> : ' + ad_section); } } // hybrid article if (g_page_type == 'article' && ad_section != 'video' && ad_section != "world" && ad_section != "thailand" && ad_section != "opinion") // && ad_section != 'opinion' { if (ad_section == 'business') { ad_slot_hybrid_0 = [ [1, 1], [300, 250] ]; } // remove Anymind 2022-12-01 // if(ad_section != 'world' && ad_section != 'thailand' ) // { // 2021-08-25 world ปิดชั่วคราว gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/hybrid', ad_slot_hybrid_0, 'div-gpt-ad-hybrid-0') .setTargeting('unit_type', ['hybrid']) .defineSizeMapping(ad_slot_hybrid_0) //delete line if not responsive .addService(googletag.pubads())); console.log(' normal div-gpt-ad-hybrid-0 article : bangkokpost_' + ad_section + '/hybrid ' + 'size ' + ad_slot_hybrid_0); // } } // hybrid homepage & section if ((g_page_type == 'section' && ad_section != 'photo' && ad_section != 'video' && ad_section != 'mostrecent' && ad_section != 'others')) // g_page_type == 'homepage' || { if (ad_section == 'life' || ad_section == 'travel') { if (typeof ad_slot_hybrid_0 !== 'undefined') { // remove Anymind 2022-12-01 && g_page_type != 'homepage' // Remove Ad unit homepage 2022-01-24 // if(ad_section == "homepage") // { // posttoday testing by tong // gptadslots.push(googletag.defineSlot('/143557018/bangkokpost_' + ad_section + '/hybrid', // ad_slot_hybrid_0, 'div-gpt-ad-hybrid-0') // .setTargeting('unit_type', ['hybrid']) // .defineSizeMapping(mappinghybrid) //delete line if not responsive // .addService(googletag.pubads())); // console.log(' div-gpt-ad-hybrid-0 posttoday: ' + ad_section); // } // else // { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/hybrid', ad_slot_hybrid_0, 'div-gpt-ad-hybrid-0') .setTargeting('unit_type', ['hybrid']) .defineSizeMapping(mappinghybrid) //delete line if not responsive .addService(googletag.pubads())); console.log(' div-gpt-ad-hybrid-0 v1: ' + ad_section); //} } } else if (ad_section == 'auto' || ad_section == 'sport' || ad_section == 'tech' || ad_section == 'property' || ad_section == 'business') // remove GAM 2023-01-17 || ad_section == 'opinion' || ad_section == 'world' || ad_section == 'thailand' { // 2021-08-25 world thailand ปิดชั่วคราว ปิด business PMT if (ad_section == 'business') { ad_slot_hybrid_0 = [ [1, 1], [300, 250] ]; } else { ad_slot_hybrid_0 = [ [1, 1], [300, 250] ]; } // if(ad_section == 'thailand') // { // posttoday testing by tong // gptadslots.push(googletag.defineSlot('/143557018/bangkokpost_' + ad_section + '/hybrid', // ad_slot_hybrid_0, 'div-gpt-ad-hybrid-0') // .setTargeting('unit_type', ['hybrid']) // .defineSizeMapping(ad_slot_hybrid_0) //delete line if not responsive // .addService(googletag.pubads())); // console.log(' div-gpt-ad-hybrid-0 posttoday: ' + ad_section + ' ad_slot_hybrid_0' + ad_slot_hybrid_0 ); // } // else // { gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/hybrid', ad_slot_hybrid_0, 'div-gpt-ad-hybrid-0') .setTargeting('unit_type', ['hybrid']) .defineSizeMapping(ad_slot_hybrid_0) //delete line if not responsive .addService(googletag.pubads())); console.log(' div-gpt-ad-hybrid-0 v2: ' + ad_section + ' ad_slot_hybrid_0' + ad_slot_hybrid_0); //} } } /* // Remove GAM 2023-01-17 if (g_page_type == 'homepage') { // remove Anymind 2022-12-01 open multi // multi gptadslots.push(googletag.defineSlot('/2776261/bangkokpost_' + ad_section + '/multi', ad_slot_multi_0, 'div-gpt-ad-multi-0') .setTargeting('unit_type', ['multi']) .defineSizeMapping(mappingmulti) //delete line if not responsive .addService(googletag.pubads())); } */ // remove by tong 2021-10-04 googletag.pubads().enableSingleRequest(); // testing by tong 2021-08-25 googletag.pubads().setTargeting('page_type', ['bangkokpost_' + ad_section]); googletag.pubads().setCentering(true); /* if (typeof cX.getUserSegmentIds !== "undefined") googletag.pubads().setTargeting("CxSegments",cX.getUserSegmentIds({persistedQueryId:"10e5dfb6eaedc4830f2907303add881df700be72"})); */ googletag.pubads().collapseEmptyDivs(); // setTimeout(function() { // sendAdserverRequest(); // ปิดชั่วคราว 2023-01-17 // }, PREBID_TIMEOUT); googletag.enableServices(); googletag.pubads().addEventListener('slotRenderEnded', function(event) { if (event.isEmpty) { // remove by Tong 2021-09-29 googletag.pubads().refresh([event.slot], {changeCorrelator: false}); } if (event.size && event.size[0] == 1 && event.size[1] == 1) { $(event.slot.getHtml()).each(function(index, obj) { }); } }); }); var insertAds = function(event_slot) { time++; if (time && time != null && time < 10) { setTimeout(function() { insertAds(event_slot); }, 400); } if (time == 10) { // remove by Tong 2021-09-29 googletag.pubads().refresh([event_slot], {changeCorrelator: false}); } } var g_obj_bp = { escape_html: function(text) { var map = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#039;' }; return text.replace(/[&<>"']/g, function(m) { return map[m]; }); } } var g_member = { _callback_login: [], /** * 0 ยังไม่ได้ call * 1 กำลัง call * 2 call เรียบร้อยแล้ว */ _is_get_login_calling: 0, is_member_login: false, id: '', usrename: '', name: '', lastname: '', email: '', avatar: '', get_url_login: function() { return 'https://member.bangkokpost.com/login.php'; }, get_url_logout: function() { return 'https://www.bangkokpost.com/global_member/cw.php?xType=logout'; }, get_login_template: function() { var _t = this; _t.get_member_login(function() { if (_t.is_member_login) { // <a href="/member/profile"></a> // <a href="/member/profile">My profile</a> | $('#signin-container').html('<span class="box-signout"><i class="icon-sign-in"></i><span><a href="/member/profile">' + _t.usrename + '</a></span><a href="' + _t.get_url_logout() + '" id="signout">SIGN OUT</a></span>'); $('#signin-container2').html( '<div class="box-btnsingout">\ <i class="icon-sign-in"></i> <a href="/member/profile">' + _t.usrename + '</a>\ <div class="box-signout-link">\ <a href="' + _t.get_url_logout() + '">Sign out</a>\ </div>\ </div>' ); } else { $('#signin-container').html('<span class="box-signin"><i class="icon-sign-in"></i><a href="' + _t.get_url_login() + '" id="signin">SIGN IN</a></span>'); $('#signin-container2').html('<div class="box-btnsingin"><a href="https://member.bangkokpost.com/login.php" class="btn-signin" title="SIGN IN" ><i class="icon-sign-in"></i> SIGN IN</a></div>'); } }); }, get_member_login: function(_callback) { var _t = this; if (typeof _callback == 'function') { _t._callback_login.push(_callback); } // call แล้ว if (_t._is_get_login_calling == 2) { // Callback all $.each(_t._callback_login, function(k, v) { v(); }); _t._callback_login = []; return true; } if (_t._is_get_login_calling <= 0) { _t._is_get_login_calling = 1; $.get("/member/get_member_login", function(data) { if (typeof data.userID != 'undefined') { _t.id = data.userID; _t.usrename = data.user_display_name; _t.name = data.user_name; _t.lastname = data.user_surname; _t.email = data.user_email; _t.avatar = data.user_avatar; _t.is_member_login = true; } _t._is_get_login_calling = 2; // Callback all $.each(_t._callback_login, function(k, v) { v(); }); _t._callback_login = []; }, "json"); } } } g_member.get_member_login(); if (g_page_type == 'article') { var g_like_article = { fn_like_unlike: function(src_id, status) { if (src_id == '' && status == '') { //console.log('content :' +src_id +' >> return false '); return false; } if (typeof status === 'undefined') { // only show like/unlike (not set) //console.log('content >> undefined '); status = 99; } $.post("/ajax/_getLikeUnlike.php", { src_id: src_id, status: status, act: 'CONV3' }, function(data) { //console.log('data =>' + data); if (data != '') { $('div#like-dislike-article.f-comment').html(data); } return false; }); }, fn_show_block: function(content_id) { this.fn_like_unlike(content_id); // this.fn_like_unlike(content_id,1); // this.fn_like_unlike(content_id,0); } } } </script> <!--BEGIN WEB STAT CODE--> <script type="text/javascript"> var g_truehits_options = { strictMode: false, key: ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor"], q: { name: "queryKey", parser: /(?:^|&)([^&=]*)=?([^&]*)/g }, parser: { strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ } } var g_truehits = { var_default_name: "homepage", fn_parseUri: function(str) { var o = g_truehits_options; m = o.parser[o.strictMode ? "strict" : "loose"].exec(str); uri = {}; i = 14; while (i--) uri[o.key[i]] = m[i] || ""; uri[o.q.name] = {}; uri[o.key[12]].replace(o.q.parser, function($0, $1, $2) { if ($1) uri[o.q.name][$1] = $2; }); return uri; }, fn_decode: function(encoded) { return decodeURIComponent(encoded.replace(/\+/g, " ")); }, fn_getTruehitsName: function() { var this_url = this.fn_parseUri(window.location.href + ''); var page = ''; var paths = this.fn_decode(this_url['directory']).split('/'); var paths_length = paths.length - 2; if (paths_length > 0) { if (paths_length >= 1) { page = paths[1]; if (paths[2] != '') { if (isNaN(paths[2])) { //page = page + '_' + paths[2]; if (!isNaN(paths[3])) { page = page + "_article"; } } else { if (page == "photo") { page = page + "_view"; } else { page = page + "_article"; } } } } else { page = paths[1]; } } else { page = paths[1] || this_url['file']; } if (page == '') page = this.var_default_name || "homepage"; page = page.toUpperCase(); page = "NEWDESIGN_" + page; return page; } } // Refresh เมื่อ resize ไปมาเพื่อแก้ปัญหา ad แสดงผลผิดพลาด var g_current_ad_type = g_ad_type; /* $( window ).resize(function() { g_window_width = $( window ).width(); var _ad_type = g_ad.get_ad_type(); if (_ad_type != g_current_ad_type) { location.reload(); } }); googletag.pubads().refresh(); */ /* nexus */ function sendAdserverRequest() { if (pbjs.adserverRequestSent) return; pbjs.adserverRequestSent = true; googletag.cmd.push(function() { pbjs.que.push(function() { pbjs.setTargetingForGPTAsync(); // console.log("Refresh ad all slot!"); //googletag.pubads().refresh(); }); }); } /* end nexus */ </script> <!-- openx step 1 --> <script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "WebSite", "name": "Bangkok Post", "url": "https://www.bangkokpost.com/", "potentialAction": { "@type": "SearchAction", "target": "https://search.bangkokpost.com/search/result?category=all&&q={search_term_string}", "query-input": "required name=search_term_string" } } </script> <script type='text/javascript'> //g_page_type = 'homepage'; // ratt debug //g_section = 'homepage'; // ratt debug var OA_zones = {}; if (g_page_type == "homepage") { OA_zones = { "2960": 2960, "2961": 2961, "2962": 2962, "2978": 2978, "3229": 3229, "3232": 3232, "4243": 4243, "4360": 4360 //,"3031": 3031,"3034":3034 } } if (g_page_type == "section") { switch (g_section) { case 'thailand': OA_zones = { "2912": 2912 } break; case 'world': OA_zones = { "2913": 2913 } break; case 'business': OA_zones = { "2768": 2768, "4363": 4363 } break; case 'auto': OA_zones = { "2771": 2771 } break; case 'life': OA_zones = { "2769": 2769 } break; case 'sports': OA_zones = { "2915": 2915 } break; case 'tech': OA_zones = { "2914": 2914 } break; case 'property': OA_zones = { "2869": 2869, "4378": 4378 } break; case 'travel': OA_zones = { "2770": 2770 } break; } } if (ad_section == "learning") { OA_zones = { "4096": 4096, "4102": 4102, "4105": 4105, "4108": 4108, "4111": 4111, "4114": 4114, "4330": 4330, "4333": 4333 } } // campaign inter edu topics if (g_page_type == "sub_section" && g_section == "topics" && g_topic_id != '') { if (g_topic_id == '1752179') { OA_zones = { "3010": 3010, "3016": 3016, "3019": 3019, "3022": 3022, "3025": 3025 } } if (g_topic_id == '1802499') { // campaign holiday time 2019 topics OA_zones = { // "2960": 2960, "2961": 2961 // debug "2820": 2820, "2827": 2827 // code ad production } } } // campaign covid19 if (g_section == "specials") { if (g_url_path[2] == "covid19") { OA_zones = { "3241": 3241, "3244": 3244, "3235": 3235 } } if (g_url_path[2] == "delivery") { OA_zones = { "3331": 3331, "3334": 3334, "3337": 3337, "3340": 3340, "3343": 3343, // store "3346": 3346, "3349": 3349, "3352": 3352, "3355": 3355, "3358": 3358, // food "3388": 3388, "3391": 3391, "3394": 3394, "3397": 3397, "3400": 3400 // food } } } // Cover page var coverpage_ad_type = g_ad.get_ad_type(); switch (coverpage_ad_type) { case 'desktop': if (g_section == 'homepage') { Object.assign(OA_zones, { '120': 120 }); } else if (g_section != 'business') { // 2023-07-03 Object.assign(OA_zones, {'2980': 2980}); } break; case 'tablet': // L if (g_section == 'homepage') { Object.assign(OA_zones, { '2152': 2152 }); } else if (g_section != 'business') { Object.assign(OA_zones, { '2983': 2983 }); } break; case 'mobile': // M if (g_section == 'homepage') { Object.assign(OA_zones, { '2151': 2151 }); } else if (g_section != 'business') { Object.assign(OA_zones, { '2982': 2982 }); } break; default: // S if (g_section == 'homepage') { Object.assign(OA_zones, { '1802': 1802 }); } else if (g_section != 'business') { Object.assign(OA_zones, { '2981': 2981 }); } break; } </script> <script type='text/javascript' src='/common/js/openx/bkp-spcjs.php.js?v=5.83'></script> <script type='text/javascript'> var adz = []; // Initail openx for (var v in OA_zones) { OA_show(v); } // Render openx $(function() { if (g_page_type == "homepage") { oa_show_openx(2960, 'homepage', 'highlight'); // move to cxense oa_show_openx(2961, 'homepage', 'most-recent'); // oa_show_openx(3229, 'homepage', 'news-covid19'); // move to owl covid19 oa_show_openx(3232, 'homepage', 'logo-covid19'); // real 3232 demo 2960 oa_show_openx(2978, 'homepage', 'video'); // move to cxense oa_show_openx(4243, 'homepage', 'new-normal'); oa_show_openx(4360, 'homepage', 'fazwaz'); } if (g_page_type == "section") { switch (g_section) { case 'thailand': oa_show_openx(2912, 'thailand', 'highlight'); break; case 'world': oa_show_openx(2913, 'world', 'highlight'); break; case 'business': oa_show_openx(2768, 'business', 'highlight'); oa_show_openx(4363, 'business', 'recommended'); break; case 'auto': oa_show_openx(2771, 'auto', 'highlight'); break; case 'life': oa_show_openx(2769, 'life', 'highlight'); break; case 'sports': oa_show_openx(2915, 'sports', 'highlight'); break; case 'tech': oa_show_openx(2914, 'tech', 'highlight'); break; case 'property': oa_show_openx(2869, 'property', 'highlight'); oa_show_openx(4378, 'property', 'recommended'); break; case 'travel': oa_show_openx(2770, 'travel', 'highlight'); break; } } if (g_page_type == "sub_section" && g_section == "topics" && g_topic_id != '') { if (g_topic_id == '1752179') { oa_show_openx(3010, 'topics', 'latest1'); oa_show_openx(3016, 'topics', 'latest2'); oa_show_openx(3019, 'topics', 'latest3'); oa_show_openx(3022, 'topics', 'latest4'); oa_show_openx(3025, 'topics', 'latest5'); } if (g_topic_id == '1802499') { oa_show_openx(2820, 'topics', 'latest3_holiday'); // campaign_holiday_2019 oa_show_openx(2827, 'topics', 'latest6_holiday'); // campaign_holiday_2019 } } if (g_section == "specials") { if (g_url_path[2] == "covid19") { oa_show_openx(3235, 'covid19page', 'logo-covid19'); // mainpage covid19 real 3235 dev 2960 oa_show_openx(3241, 'covid19page', 'general-covid19'); // mainpage covid19 real 3241 oa_show_openx(3244, 'covid19page', 'life-covid19'); // mainpage covid19 real 3244 } if (g_url_path[2] == "delivery") { //oa_show_openx(2960, 'deliverypage', 'foodA'); oa_show_openx(3346, 'deliverypage', 'foodA'); oa_show_openx(3349, 'deliverypage', 'foodB'); oa_show_openx(3352, 'deliverypage', 'foodC'); oa_show_openx(3355, 'deliverypage', 'foodD'); oa_show_openx(3358, 'deliverypage', 'foodE'); oa_show_openx(3388, 'deliverypage', 'foodF'); oa_show_openx(3391, 'deliverypage', 'foodG'); oa_show_openx(3394, 'deliverypage', 'foodH'); oa_show_openx(3397, 'deliverypage', 'foodI'); oa_show_openx(3400, 'deliverypage', 'foodJ'); oa_show_openx(3331, 'deliverypage', 'storeA'); oa_show_openx(3334, 'deliverypage', 'storeB'); oa_show_openx(3337, 'deliverypage', 'storeC'); oa_show_openx(3340, 'deliverypage', 'storeD'); oa_show_openx(3343, 'deliverypage', 'storeE'); } } }); function oa_show_openx(id, page, position) { // OA_show(id); //console.log('adz: '+adz[id]); //console.log('id: '+ id); var remove_element = null; if (page == "deliverypage") { if (typeof adz[id] === 'undefined') { switch (position) { case "foodA": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq0").remove(); break; case "foodB": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq1").remove(); break; case "foodC": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq2").remove(); break; case "foodD": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq3").remove(); break; case "foodE": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq4").remove(); break; case "foodF": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq5").remove(); break; case "foodG": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq6").remove(); break; case "foodH": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq7").remove(); break; case "foodI": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq8").remove(); break; case "foodJ": $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq9").remove(); break; case "storeA": $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq0").remove(); break; case "storeB": $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq1").remove(); break; case "storeC": $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq2").remove(); break; case "storeD": $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq3").remove(); break; case "storeE": $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq4").remove(); break; } } } else { if (typeof adz[id] === 'undefined') return; } // Found ad if (adz[id]) { var headline = adz[id]['headline']; var intro = adz[id]['intro']; var src = adz[id]['src'].replace("http:", "https:"); var click_url = adz[id]['click_url']; var view_url = adz[id]['view_url'].replace("http:", "https:"); switch (page) { case 'homepage': switch (position) { case 'highlight': $('.highlights-side .list-h').eq(1).before('<div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a class="cx-exclude-id" data-cx-exclude-id="1681704" href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><img src="' + view_url + '" width="0" height="0"/></div>'); $('.highlights-side .list-h').last().remove(); //console.log(); //console.log('highlight id: '+ id); break; case 'most-recent': // แสดงกล่องใหญ่ $('.visible-md .box-recent li').eq(4).before('<li><div class="time"><span>SPONSORED</span></div><a href="' + click_url + '">' + headline + '</a><img src="' + view_url + '" width="0" height="0"/></li>'); $('.visible-md .box-recent li').last().remove(); // แสดงกล่องเล็ก $('.visible-xs .box-recent li').eq(4).before('<li><div class="time"><span>SPONSORED</span></div><a href="' + click_url + '">' + headline + '</a></li>'); $('.visible-xs .box-recent li').last().remove(); break; case 'recommended': $('.home-recommend div.item').eq(2).html('<div class="item"><div class="list-v"><figure class="item-photo"><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail-mt"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; case 'video': $('.box-bg.bg-darken div.row div.col-md-5').eq(2).before('<div class="col-md-5"><div class="list-v list-vdo"><a href="' + click_url + '"><figure><div class="icn-play"><img src="https://static.bangkokpost.com/newdesign/assets/images/hover-video.svg" alt=""></div><img src="' + src + '" alt=""></figure><div class="list-detail-mt"><h3>' + headline + ' <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></a></div><img src="' + view_url + '" width="0" height="0"/></div>'); $('.box-bg.bg-darken div.row div.col-md-5').last().remove(); break; case 'news-covid19': $('.box-covid--list div.owl-item').eq(2).html('<div class="item"><div class="list-v"><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail list-detail--covid"><h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div> <a href="' + click_url + '">' + headline + '</a></h3></div></div><img src="' + view_url + '" width="0" height="0"/></div>'); break; case 'logo-covid19': $('div.campaign--sponsored').html('SPONSORED BY <a href="' + click_url + '"><img src="' + src + '"></a><img src="' + view_url + '" width="0" height="0"/>'); break; case 'new-normal': $('div .item.ads-list').html('<div class="list_campaign-hover"><div class="overlay"></div><figure><img class="caption-image" src="' + src + '"></figure><figcaption><h4><a href="/specials/new-normal/#quote-14">' + headline + '</a></h4><div class="view-all"><a href="' + click_url + '">' + intro + '</a></div></figcaption></div><img src="' + view_url + '" width="0" height="0"/></div>'); break; case 'fazwaz': // console.log(' =fazwaz=> ' + adz[id]); // <img src="https://static.bangkokpost.com/newdesign/assets/images/banner/banner-380x180.jpg" class="img-fluid" alt=""> $('div.boombox-adver.mt-4 div.adver').html(adz[id]); break; } break; case 'thailand': switch (position) { case 'highlight': $('div.col-15.col-md.col-lg-15.col-highlights-side').eq(1).before('<div class="col-15 col-md col-lg-15 col-highlights-side"><article><div class="hilight_sec"><div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure></div></div></article><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.col-15.col-md.col-lg-15.col-highlights-side').last().remove(); break; case 'recommended': $('div.owl-stage div.owl-item').eq(2).html('<div class="item"><div class="list-v"><figure class="item-photo"><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail-mt"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; } break; case 'world': switch (position) { case 'highlight': $('div.col-15.col-md.col-lg-15.col-highlights-side').eq(1).before('<div class="col-15 col-md col-lg-15 col-highlights-side"><article><div class="hilight_sec"><div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure></div></div></article><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.col-15.col-md.col-lg-15.col-highlights-side').last().remove(); break; case 'recommended': $('div.owl-stage div.owl-item').eq(2).html('<div class="item"><div class="list-v"><figure class="item-photo"><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail-mt"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; } break; case 'business': switch (position) { case 'highlight': $('div.col-15.col-md.col-lg-15.col-highlights-side').eq(1).before('<div class="col-15 col-md col-lg-15 col-highlights-side"><article><div class="hilight_sec"><div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure></div></div></article><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.col-15.col-md.col-lg-15.col-highlights-side').last().remove(); break; case 'recommended': $('div.section-recommend div.item').eq(2).html('<div class="item"><div class="list-v"><figure ><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; } break; case 'auto': switch (position) { case 'highlight': $('div.col-15.col-md.col-lg-15.col-highlights-side').eq(1).before('<div class="col-15 col-md col-lg-15 col-highlights-side"><article><div class="hilight_sec"><div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure></div></div></article><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.col-15.col-md.col-lg-15.col-highlights-side').last().remove(); break; case 'recommended': $('div.owl-stage div.owl-item').eq(2).html('<div class="item"><div class="list-v"><figure class="item-photo"><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail-mt"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; } break; case 'sports': switch (position) { case 'highlight': $('div.col-15.col-md.col-lg-15.col-highlights-side').eq(1).before('<div class="col-15 col-md col-lg-15 col-highlights-side"><article><div class="hilight_sec"><div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure></div></div></article><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.col-15.col-md.col-lg-15.col-highlights-side').last().remove(); break; case 'recommended': $('div.owl-stage div.owl-item').eq(2).html('<div class="item"><div class="list-v"><figure class="item-photo"><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail-mt"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; } break; case 'tech': switch (position) { case 'highlight': $('div.col-15.col-md.col-lg-15.col-highlights-side').eq(1).before('<div class="col-15 col-md col-lg-15 col-highlights-side"><article><div class="hilight_sec"><div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure></div></div></article><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.col-15.col-md.col-lg-15.col-highlights-side').last().remove(); break; case 'recommended': $('div.owl-stage div.owl-item').eq(2).html('<div class="item"><div class="list-v"><figure class="item-photo"><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail-mt"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; } break; case 'property': switch (position) { case 'highlight': $('div.col-15.col-md.col-lg-15.col-highlights-side').eq(1).before('<div class="col-15 col-md col-lg-15 col-highlights-side"><article><div class="hilight_sec"><div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure></div></div></article><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.col-15.col-md.col-lg-15.col-highlights-side').last().remove(); break; case 'recommended': // $('div.owl-stage div.owl-item').eq(2).html('<div class="item"><div class="list-v"><figure class="item-photo"><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail-mt"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); $('div.section-recommend div.item').eq(2).html('<div class="item"><div class="list-v"><figure ><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; } break; case 'life': switch (position) { case 'highlight': $('div.col-15.col-md-15.col-highlights-side').eq(1).before('<div class="col-15 col-md-15 col-highlights-side"><article><div class="hilight_sec"><div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure></div></div></article><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.col-15.col-md-15.col-highlights-side').last().remove(); break; case 'recommended': $('div.owl-stage div.owl-item').eq(2).html('<div class="item"><div class="list-v"><figure class="item-photo"><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail-mt"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; } break; case 'travel': switch (position) { case 'highlight': $('div.col-15.col-md-15.col-highlights-side').eq(1).before('<div class="col-15 col-md-15 col-highlights-side"><article><div class="hilight_sec"><div class="list-h"><div class="list-detail"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure></div></div></article><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.col-15.col-md-15.col-highlights-side').last().remove(); break; case 'recommended': $('div.owl-stage div.owl-item').eq(2).html('<div class="item"><div class="list-v"><figure class="item-photo"><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail-mt"><h3><a href="' + click_url + '">' + headline + '</a> <div class="h-ic"><span><i class="ic-sponsored2"></i></span></div></h3></div></div></div><img src="' + view_url + '" width="0" height="0"/>'); break; } break; case 'topics': switch (position) { case 'latest1': //console.log('==>id: '+ id +' page: ' + page + ' position: latest1'); $('.listnews-h .listnews-row').eq(1).before('<div class="listnews-row"><div class="listnews-col-left"><div class="listnews-datetime">&nbsp;</div></div><div class="listnews-col-right"><div class="listnews-text"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div><p>' + intro + '</p></div><div class="listnews-img"><a href="' + click_url + '"><img src="' + src + '" class="img-fluid" alt=""></a></div><img src="' + view_url + '" width="0" height="0"/></div></div>'); break; case 'latest2': //console.log('==>id: '+ id +' page: ' + page + ' position: latest2 '); $('.listnews-h .listnews-row').eq(2).before('<div class="listnews-row"><div class="listnews-col-left"><div class="listnews-datetime">&nbsp;</div></div><div class="listnews-col-right"><div class="listnews-text"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div><p>' + intro + '</p></div><div class="listnews-img"><a href="' + click_url + '"><img src="' + src + '" class="img-fluid" alt=""></a></div><img src="' + view_url + '" width="0" height="0"/></div><div>'); break; case 'latest3': // console.log('==>id: '+ id +' page: ' + page + ' position: latest3 '); $('.listnews-h .listnews-row').eq(4).before('<div class="listnews-row"><div class="listnews-col-left"><div class="listnews-datetime">&nbsp;</div></div><div class="listnews-col-right"><div class="listnews-text"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div><p>' + intro + '</p></div><div class="listnews-img"><a href="' + click_url + '"><img src="' + src + '" class="img-fluid" alt=""></a></div><img src="' + view_url + '" width="0" height="0"/></div><div>'); break; case 'latest4': // console.log('==>id: '+ id +' page: ' + page + ' position: latest4 '); $('.listnews-h .listnews-row').eq(5).before('<div class="listnews-row"><div class="listnews-col-left"><div class="listnews-datetime">&nbsp;</div></div><div class="listnews-col-right"><div class="listnews-text"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div><p>' + intro + '</p></div><div class="listnews-img"><a href="' + click_url + '"><img src="' + src + '" class="img-fluid" alt=""></a></div><img src="' + view_url + '" width="0" height="0"/></div><div>'); break; case 'latest5': //console.log('==>id: '+ id +' page: ' + page + ' position: latest5 '); $('.listnews-h .listnews-row').eq(7).before('<div class="listnews-row"><div class="listnews-col-left"><div class="listnews-datetime">&nbsp;</div></div><div class="listnews-col-right"><div class="listnews-text"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div><p>' + intro + '</p></div><div class="listnews-img"><a href="' + click_url + '"><img src="' + src + '" class="img-fluid" alt=""></a></div><img src="' + view_url + '" width="0" height="0"/></div><div>'); break; case 'latest6': //console.log('==>id: '+ id +' page: ' + page + ' position: latest6 '); $('.listnews-h .listnews-row').eq(8).before('<div class="listnews-row"><div class="listnews-col-left"><div class="listnews-datetime">&nbsp;</div></div><div class="listnews-col-right"><div class="listnews-text"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div><p>' + intro + '</p></div><div class="listnews-img"><a href="' + click_url + '"><img src="' + src + '" class="img-fluid" alt=""></a></div><img src="' + view_url + '" width="0" height="0"/></div><div>'); break; //===inter_edu end case 'latest3_holiday': //console.log('==>id: '+ id +' page: ' + page + ' position: latest3 '); $('.listnews-h .listnews-row').eq(2).before('<div class="listnews-row"><div class="listnews-col-left"><div class="listnews-datetime">&nbsp;</div></div><div class="listnews-col-right"><div class="listnews-text"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div><p>' + intro + '</p></div><div class="listnews-img"><a href="' + click_url + '"><img src="' + src + '" class="img-fluid" alt=""></a></div><img src="' + view_url + '" width="0" height="0"/></div><div>'); break; case 'latest6_holiday': // console.log('==>id: '+ id +' page: ' + page + ' position: latest6 '); $('.listnews-h .listnews-row').eq(5).before('<div class="listnews-row"><div class="listnews-col-left"><div class="listnews-datetime">&nbsp;</div></div><div class="listnews-col-right"><div class="listnews-text"><div class="h-line">sponsored</div><h3><a href="' + click_url + '">' + headline + '</a></h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div><p>' + intro + '</p></div><div class="listnews-img"><a href="' + click_url + '"><img src="' + src + '" class="img-fluid" alt=""></a></div><img src="' + view_url + '" width="0" height="0"/></div><div>'); break; } break; case 'covid19page': switch (position) { case 'logo-covid19': $('div.campaign--sponsored').html('SPONSORED BY <a href="' + click_url + '"><img src="' + src + '"></a><img src="' + view_url + '" width="0" height="0"/>'); break; case 'general-covid19': $('div.covid19-news div.box-covid--listnews div.news-covid').eq(2).before('<div class="col-15 col-md-50 col-lg-5 news-covid"><div class="list-v"> <figure> <a href="' + click_url + '"><img src="' + src + '" alt=""></a> </figure> <div class="list-detail list-detail--covid"> <h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div> <a href="' + click_url + '">' + headline + '</a></h3></div> </div><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.covid19-news div.box-covid--listnews div.news-covid').last().remove(); break; case 'life-covid19': $('div.covid19-life div.box-covid--listnews div.news-covid').eq(2).before('<div class="col-15 col-md-50 col-lg-5 news-covid"><div class="list-v"><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail"><h3><div class="h-ic"><span><i class="ic-sponsored2"></i></span></div> <a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div></div><img src="' + view_url + '" width="0" height="0"/></div>'); $('div.covid19-life div.box-covid--listnews div.news-covid').last().remove(); break; } break; case 'deliverypage': var _template_delivery = '<div class="list-v"><figure><a href="' + click_url + '"><img src="' + src + '" alt=""></a></figure><div class="list-detail"><div class="h-line">Promotion</div><h3><a href="' + click_url + '">' + headline + '</a></h3><p>' + intro + '</p></div> <img src="' + view_url + '" width="0" height="0"/></div>'; switch (position) { case 'foodA': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq0").html(_template_delivery); break; case 'foodB': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq1").html(_template_delivery); break; case 'foodC': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq2").html(_template_delivery); break; case 'foodD': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq3").html(_template_delivery); break; case 'foodE': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq4").html(_template_delivery); break; case 'foodF': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq5").html(_template_delivery); break; case 'foodG': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq6").html(_template_delivery); break; case 'foodH': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq7").html(_template_delivery); break; case 'foodI': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq8").html(_template_delivery); break; case 'foodJ': $("div.row.food div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq9").html(_template_delivery); break; case 'storeA': $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq0").html(_template_delivery); break; case 'storeB': $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq1").html(_template_delivery); break; case 'storeC': $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq2").html(_template_delivery); break; case 'storeD': $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq3").html(_template_delivery); break; case 'storeE': $("div.row.shop div.col-15.col-md-5.col-lg-5.col-xl-3.news-deliver.eq4").html(_template_delivery); break; } break; } } } </script> <!-- openx step 1 --> <!-- Taboola 1--> <script type="text/javascript"> if (g_page_type == 'homepage' || g_page_type == 'article' || g_page_type == 'section' || g_page_type == 'sub_section') { window._taboola = window._taboola || []; if (g_page_type == 'homepage') { _taboola.push({ homepage: 'auto' }); } else if (g_page_type == 'section' || g_page_type == 'sub_section') { _taboola.push({ category: 'auto' }); console.log('section page taboola'); } else if (g_page_type == 'article') { console.log('article page taboola'); _taboola.push({ article: 'auto' }); } ! function(e, f, u, i) { if (!document.getElementById(i)) { e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } }(document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/bangkokpostgroup-bangkokpost/loader.js', 'tb_loader_script'); if (window.performance && typeof window.performance.mark == 'function') { window.performance.mark('tbl_ic'); } if (g_page_type == 'article') { window._newsroom = window._newsroom || []; ! function(e, f, u) { e.async = 1; e.src = u; f.parentNode.insertBefore(e, f); }(document.createElement('script'), document.getElementsByTagName('script')[0], '//c2.taboola.com/nr/bangkokpostgroup-bangkokpost/newsroom.js'); } } </script> <script type="text/javascript"> var truehits_name = g_truehits.fn_getTruehitsName(); //console.log("truehits th_page: "+ truehits_name); var __th_page = truehits_name; (function() { var ga1 = document.createElement('script'); ga1.type = 'text/javascript'; ga1.async = true; ga1.src = "//lvs.truehits.in.th/dataa/s0028944.js"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga1, s); })(); $(function() { var el = $("#truehits_div").detach(); el.appendTo($("#truehits_area")); el.show(); // $("#truehits_div").show(); }); </script> <!--END WEB STAT CODE--> </head> <body> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MLF6WTD" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <script async src="//get.optad360.io/sf/525f6193-8c54-43c9-91be-49a33994236a/plugin.min.js"></script> <div class="turehits" style="padding-top:0;display:none;" id="truehits_div"></div> <!-- nav --> <header class="header-static"> <div class="container"> <div class="header-panel"> <div class="bp-logo2"> <h1><a href="/" title="Bangkokpost.com"><img src="https://static.bangkokpost.com/newdesign/assets/images/BangkokPost.svg" class="img-fluid" alt="BangkokPost.com"></a></h1> </div> </div> </div> </header> <!-- nav --> <!-- nav --> <div class="content-pd"></div> <!-- /2776261/bangkokpost_homepage/leaderboard :learning move down in section page--> <script> document.write('<div class="ads ads-leaderboard" id="div-gpt-ad-leaderboard-0">'); if (ad_section != "world" && ad_section != "thailand" && ad_section != "homepage" && ad_section != "opinion") { // remove GAM 2023-01-17 if (ad_section == "business") { if (g_ad.get_ad_type() == "desktop") { console.log('display LB. ad_section ' + ad_section + ' is ' + g_ad.get_ad_type()); googletag.cmd.push(function() { googletag.display('div-gpt-ad-leaderboard-0'); }); } else if (g_ad.get_ad_type() == "mobile") { console.log('display LB no ad ad_section ' + ad_section + ' is ' + g_ad.get_ad_type()); } } else { //console.log( 'display LB ad_section ' + ad_section + ' : ' + g_ad.get_ad_type()); googletag.cmd.push(function() { googletag.display('div-gpt-ad-leaderboard-0'); }); } // console.log( 'display LB ad_section ' + ad_section + ' : ' + g_ad.get_ad_type()); } document.write('</div>'); </script> <!-- content --> <div class="campaign-landingpage"> <div class="container"> <article> <div class="cpn-landing-title"> <h2>SPECIAL FEATURES</h2> </div> <div class="cpn-landing-title2">Find all exclusive content produced by #1 English-language media in Thailand here in one spot.</div> <div class="row"> <!-- /share/www/vhosts/bangkokpost/bangkokpost.com/specials/assets --> <div class="col-15 col-md-50 col-lg-5" style="display:block"> <div class="card--campaign"> <div><a href="/specials/ceo-of-the-year-2024" title="CEO Of The Year 2024"><img src="https://static.bangkokpost.com/specials/assets/ceo-of-the-year-2024/assets/images/ceo2024_share.jpg" class="img-fluid" alt="CEO Of The Year 2024"></a></div> <h3><a href="/specials/ceo-of-the-year-2024" title="CEO Of The Year 2024">CEO Of The Year 2024</a></h3> <p>Once again, the Bangkok Post celebrates outstanding brilliance and innovation within the corporate sector. In our unwavering commitment to recognising exceptional leadership, we are thrilled to present the 'Bangkok Post CEO of the Year 2024' awards.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5" style="display:block"> <div class="card--campaign"> <div><a href="/specials/inter_edu2024" title="International Education E-MAGAZINE 2024-2025"><img src="https://static.bangkokpost.com/specials/assets/inter_edu2024/assets/images/share.png" class="img-fluid" alt="International Education E-MAGAZINE 2024-2025"></a></div> <h3><a href="/specials/inter_edu2024" title="International Education E-MAGAZINE 2024-2025">International Education E-MAGAZINE 2024-2025</a></h3> <p>Download the Bangkok Post's e-magazine edition, 'International Education 2024,' and the List of International Schools in Thailand</p> </div> </div> <div class="col-15 col-md-50 col-lg-5" style="display:block"> <div class="card--campaign"> <div><a href="/ebooks/mid-year-economic-review-2024/" title="Bangkok Post Economic review mid-year 2024"><img width="380" height="200" src="https://static.bangkokpost.com/specials/assets/economic2024/assets/images/economic2024.jpg" class="img-fluid" alt="Bangkok Post Economic review mid-year 2024"></a></div> <h3><a href="/ebooks/mid-year-economic-review-2024/" title="Bangkok Post Economic review mid-year 2024">Bangkok Post Economic review mid-year 2024</a></h3> <p>Bangkok Post Economic review mid-year 2024.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/ebooks/sustainability-revolution-2024/" title="Sustainability Revolution 2024"><img width="380" height="200" src="https://static.bangkokpost.com/specials/assets/sustainability-revolution-2024/assets/images/share.png" class="img-fluid" alt="Things to Know about Sustainability"></a></div> <h3><a href="/ebooks/sustainability-revolution-2024/" title="Sustainability Revolution 2024">Sustainability Revolution 2024</a></h3> <p>Without appropriate knowledge, instead of restoring or preserving the environment, many CSR projects such as building weirs, growing plants and releasing aquatic creatures have become greenwashing practices that actually cause damage to the environment.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/sustainability-2024" title="Things to Know about Sustainability"><img width="380" height="200" src="https://static.bangkokpost.com/specials/assets/sustainability-2024/assets/images/share.jpg" class="img-fluid" alt="Things to Know about Sustainability"></a></div> <h3><a href="/specials/sustainability-2024" title="Things to Know about Sustainability">Things to Know about Sustainability</a></h3> <p>Without sustainability, the well-being of current and future generations would be compromised, highlighting the urgent need for collective action and responsible stewardship of the planet's resources.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/women-of-the-year-2024" title="Women Of The Year 2024"><img width="380" height="200" src="https://static.bangkokpost.com/specials/assets/women-of-the-year-2024/assets/images/women-2024-thumb.png" class="img-fluid" alt="Women Of The Year 2024"></a></div> <h3><a href="/specials/women-of-the-year-2024" title="Women Of The Year 2024">Women Of The Year 2024</a></h3> <p>The roles of women have changed significantly in recent years</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/chinese-new-year-2024" title="Bangkok Post Lunar New Year 2024"><img src="https://static.bangkokpost.com/specials/assets/chinese-new-year-2024/assets/images/fb-share.png" class="img-fluid" alt=""></a></div> <h3><a href="/specials/chinese-new-year-2024" title="Bangkok Post Lunar New Year 2024">Bangkok Post Lunar New Year 2024</a></h3> <p>Year of Wood Dragon, Environment, Healthy and Wealthy</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/topics/2694826/holiday-time-2023" title="Bangkok Post - Celebrate in Style with Holiday Time"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/campaign_index_2023/holidaytime2023.png?v=0.02" class="img-fluid" alt=""></a></div> <h3><a href="/topics/2694826/holiday-time-2023" title="Bangkok Post - Celebrate in Style with Holiday Time">Celebrate in Style with Holiday Time</a></h3> <p>Elevate your holiday experience with Holiday Time! Indulge in exquisite dining, thoughtful giving, and unforgettable traveling. Our special edition brings you unparalleled deals from leading market partners.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/ceo-of-the-year-2023" title="Bangkok Post CEO of the year 2023"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/campaign_index_2023/ceo2023.png?v=0.01" class="img-fluid" alt=""></a></div> <h3><a href="/specials/ceo-of-the-year-2023" title="Bangkok Post CEO of the year 2023">Bangkok Post CEO of the year 2023</a></h3> <p>Discover the excitement of celebrating corporate excellence and innovation at the prestigious 2023 Bangkok Post CEO of the Year Awards. Recognizing unwavering dedication to exceptional leadership.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/luxury-living-2023" title="Bangkok Post Luxury Living"><img src="https://static.bangkokpost.com/specials/luxury-living-2023/assets/images/share.png" class="img-fluid" alt=""></a></div> <h3><a href="/specials/luxury-living-2023" title="Bangkok Post Luxury Living">Bangkok Post Luxury Living</a></h3> <p>Article and report on the Thailand Luxury Real Estate Sector. This article incorporates the expertise and insights of industry professionals.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/promotion/intereducation-2023" title="Bangkok Post Inter Education 2023-2024"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/campaign_index_2023/Bangkok Post Inter Education 2023-2024.png?v=0.01" class="img-fluid" alt=""></a></div> <h3><a href="/promotion/intereducation-2023" title="Bangkok Post Inter Education 2023-2024">Bangkok Post Inter Education 2023-2024</a></h3> <p>Unlock a treasure trove of directories and captivating trend insights handpicked from Bangkok Post, empowering you to sculpt a brighter future for your child</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/china-thailand-diplomatic-relations" title="48th Anniversary of the China-Thailand diplomatic relations"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/campaign_index_2023/China-Thailand.png" class="img-fluid" alt=""></a></div> <h3><a href="/specials/china-thailand-diplomatic-relations" title="48th Anniversary of the China-Thailand diplomatic relations">48th Anniversary of the China-Thailand diplomatic relations</a></h3> <p>Marking the 48th anniversary of diplomatic ties with China this year, the Bangkok Post presents the results of a study that examined the history of Sino-Thai relations.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5" style="display:block"> <div class="card--campaign"> <div><a href="/ebooks/year-end-economic-review-2023/" title="Bangkok Post Year-end Economic review 2023"><img width="380" height="200" src="https://static.bangkokpost.com/specials/assets/bp-econimic-review/images/year-end_2023.jpg" class="img-fluid" alt="Bangkok Post Year-end Economic review 2023"></a></div> <h3><a href="/ebooks/year-end-economic-review-2023/" title="Bangkok Post Year-end Economic review 2023">Bangkok Post Year-end Economic review 2023</a></h3> <p>Bangkok Post Year-end Economic review 2023</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/ebooks/2023-mid-year-review" title="Bangkok Post Mid-year Economic Review 2023"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/campaign_index_2023/economic2023.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/ebooks/2023-mid-year-review" title="Bangkok Post Mid-year Economic Review 2023">Bangkok Post Mid-year Economic Review 2023</a></h3> <p>Bangkok Post Mid-year Economic Review 2023</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/sp/luxury-living-2023" title="Luxury Living 2023"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/campaign_index_2023/LUXURY_share.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/sp/luxury-living-2023" title="Luxury Living 2023">Luxury Living 2023</a></h3> <p>Despite economic fluctuations, the luxury real estate market continues to thrive, experiencing significant growth and demonstrating remarkable resilience.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/women-of-the-year-2023" title="Women of the year 2023"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/campaign_index_2023/women 2023.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/women-of-the-year-2023" title="Women of the year 2023">Women of the year 2023</a></h3> <p>Women have been breaking barriers, achieving success and making significant contributions in many fields, ranging from community activities, business, education, arts and sports to national politics.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/topics/2449877/holiday-time-2022" title="Holiday Time 2022"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/holiday_time2022/cover_holidaytime2022.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/topics/2449877/holiday-time-2022" title="Holiday Time 2022">Holiday Time 2022</a></h3> <p>Discover the top places to celebrate the festive occasions, find gifts and more, here in Holiday Time.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5" style="display:block"> <div class="card--campaign"> <div><a href="/ebooks/2022-year-end-review" title="Bangkok Post Year-end review 2022"><img width="380" height="200" src="https://static.bangkokpost.com/specials/assets/bp-econimic-review/images/year-end_2022.jpg" class="img-fluid" alt="Bangkok Post Year-end review 2022"></a></div> <h3><a href="/ebooks/2022-year-end-review" title="Bangkok Post Year-end review 2022">Bangkok Post Year-end review 2022</a></h3> <p>Bangkok Post Year-end review 2022.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/76-anniversary-bangkokpost" title="Bangkok Post’s 76th Anniversary"><img src="https://static.bangkokpost.com/newdesign/assets/76years/images/share.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/specials/76-anniversary-bangkokpost" title="Bangkok Post’s 76th Anniversary">Bangkok Post’s 76th Anniversary</a></h3> <p>Right from its inception on 1 August 1946, the Bangkok Post had a clear vision and determination to inform the public without prejudice while at the same time serving the kingdom and the interests of its people.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/women-of-the-year-2022" title="WOMEN OF THE YEAR 2022"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/landingpage/cover_women_2022.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/women-of-the-year-2022" title="WOMEN OF THE YEAR 2022">WOMEN OF THE YEAR 2022</a></h3> <p>Inspiring Women Who Impact Their Communities</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/topics/2225511/holiday-time-2021" title="Holiday Time 2021"><img src="https://static.bangkokpost.com/media/content/20220113/c1_2225511_220113141358.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/topics/2225511/holiday-time-2021" title="Holiday Time 2021">Holiday Time 2021</a></h3> <p>Discover the top places to celebrate the festive occasions, find gifts and more, here in Holiday Time.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/data-visualization" title="GONE VIRAL: Covid-19 and “fake news” in Thailand"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/landingpage/datavis_cover.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/specials/data-visualization" title="GONE VIRAL: Covid-19 and “fake news” in Thailand">GONE VIRAL: Covid-19 and “fake news” in Thailand</a></h3> <p>Data Visualization</p> </div> </div> <!-- readers choice --> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/readers-choice-awards-2021-annoucement" title="Readers' Choice Awards 2021"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/landingpage/BKP_reader_share.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/readers-choice-awards-2021-annoucement" title="Readers' Choice Awards 2021">Readers' Choice Awards 2021</a></h3> <p>The Bangkok Post Readers’ Choice Award aims to recognise the best products and services in the market.</p> </div> </div> <!-- readers choice --> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href=" https://thailandjourney.bangkokpost.com/" title="Thailand Journey"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/landingpage/cover-7.jpg?v=0.1" class="img-fluid" alt=""></a></div> <h3><a href=" https://thailandjourney.bangkokpost.com/" title="Thailand Journey">Thailand Journey</a></h3> <p> A revealing retrospective of Thailand’s key moments through the eyes of Bangkok Post news reports and photographs over the past 75 years.</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/ceo-announcement" title="CEO OF THE YEAR 2021"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/landingpage/cover-6.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/ceo-announcement" title="CEO OF THE YEAR 2021">CEO OF THE YEAR 2021</a></h3> <p>Embracing a New Reality: The Digital Economy</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/women-of-the-year-2021" title="WOMEN OF THE YEAR 2021"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/landingpage/cover-5.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/women-of-the-year-2021" title="WOMEN OF THE YEAR 2021">WOMEN OF THE YEAR 2021</a></h3> <p>Women inspiring societies and shaping tomorrow</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/covid19/quotes" title="LEADING IN THE TIME OF CORONAVIRUS"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/landingpage/cover-1.jpg" class="img-fluid" alt=""></a> </div> <h3><a href="/specials/covid19/quotes" title="LEADING IN THE TIME OF CORONAVIRUS">LEADING IN THE TIME OF CORONAVIRUS</a></h3> <p>Boardroom Voices for Resilience</p> </div> </div> <div class="col-15 col-md-50 col-lg-5"> <div class="card--campaign"> <div><a href="/specials/new-normal" title="NEW NORMAL"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/landingpage/cover-2.jpg" class="img-fluid" alt=""></a></div> <h3><a href="/specials/new-normal" title="NEW NORMAL">NEW NORMAL</a></h3> </div> </div> </div> </article> </div> </div> <!-- /content --><!-- footer --> <footer class="footer-static"> <section class="footer-bottom"> <div class="container" id="truehits_area"> &copy; 2024 Bangkok Post Public Company Limited </div> </section> </footer> <!-- /footer --> <div id="script_html_container"></div> <!-- /footer --> <script type="text/javascript" src="https://static.bangkokpost.com/newdesign/assets/custom/js/gdpr.js?v=0.077"></script> <script type="text/javascript" src="https://static.bangkokpost.com/newdesign/assets/custom/js/scripts.js?v=0.077"></script> <script type="text/javascript"> $(document).ready(function() { // og tw //$('#page_tw_og_image').each(function() { // $(this).attr('content',$(this).attr('content').replace('static.bangkokpost.com','www.bangkokpost.com')); //}); // enewsletter-article if ($('.articl-content p').eq(3).length > 0) { $('.articl-content p').eq(3).after('<p id="article-enewsletter"></p>'); } if ($('.owl-campaignboi').length) { $('.owl-campaignboi').owlCarousel({ margin: 20, loop: false, responsiveClass: true, nav: false, dots: false, mouseDrag: false, items: 3, slideBy: 1, responsive: { 0: { items: 1, stagePadding: 30, loop: false, mouseDrag: true, //dots:true, nav: false, }, 768: { items: 2, mouseDrag: true, //dots:true, nav: true, }, 992: { items: 3, } } }); //$(window).resize(function(){ $owl.trigger('refresh.owl.carousel'); }); $(".owl-campaignboi").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-campaignboi.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-campaignboi.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-campaignboi .item').length <= 1) { $(".owl-campaignboi.owl-carousel .owl-stage").addClass("item1"); } }); } if ($('.owl-recommended2').length) { $('.owl-recommended2').owlCarousel({ margin: 20, loop: false, responsiveClass: true, nav: false, dots: false, mouseDrag: false, items: 3, slideBy: 1, responsive: { 0: { items: 1, stagePadding: 30, loop: true, mouseDrag: true, //dots:true, nav: false, }, 768: { items: 3, mouseDrag: true, //dots:true, nav: true, }, 992: { items: 3, } } }); } if ($('.owl-recommended').length) { /* for section life */ // Render owl $('.owl-recommended').owlCarousel({ margin: 30, loop: false, responsiveClass: true, nav: false, dots: false, mouseDrag: false, items: 5, slideBy: 1, responsive: { 0: { items: 1, stagePadding: 30, loop: false, mouseDrag: true, //dots:true, nav: false, }, 768: { items: 3, mouseDrag: true, //dots:true, nav: true, }, 992: { items: 5, } } }); } if ($('.owl-top-columnist').length) { $('.owl-top-columnist').owlCarousel({ margin: 30, loop: false, responsiveClass: true, nav: true, dots: false, mouseDrag: false, items: 8, slideBy: 1, stagePadding: 80, responsive: { 0: { items: 1, loop: false, mouseDrag: true, stagePadding: 70, nav: false, }, 341: { items: 1, loop: false, mouseDrag: true, stagePadding: 90, nav: false, }, 414: { items: 1, loop: false, mouseDrag: true, stagePadding: 100, nav: false, }, 426: { items: 2, loop: false, mouseDrag: true, nav: false, }, 768: { items: 3, mouseDrag: true, }, 992: { items: 5, }, 1200: { items: 7, } } }); } // tab most view $('.tabs-stage div').hide(); $('.tabs-stage div:first-child').show(); $('.tabs-nav li:first-child').addClass('tab-active'); // Change tab class and display content if ($('.tabs-nav a').length) { $('.tabs-nav a').on('click', function(event) { // most comment event.preventDefault(); $('.tabs-nav li').removeClass('tab-active'); $(this).parent().addClass('tab-active'); $('.tabs-stage div').hide(); $($(this).attr('href')).show(); }); } if ($('.owl-topics2').length) { $('.owl-topics2').owlCarousel({ margin: 30, loop: false, responsiveClass: true, nav: true, dots: false, mouseDrag: false, items: 3, slideBy: 1, responsive: { 0: { items: 1, stagePadding: 30, loop: false, mouseDrag: true, dots: false, nav: false, }, 365: { items: 1, stagePadding: 50, loop: false, mouseDrag: true, dots: false, nav: false, }, 768: { items: 2, mouseDrag: true, }, 992: { items: 3, } } }); } if ($('.owl-topics').length) { $('.owl-topics').owlCarousel({ margin: 30, loop: false, responsiveClass: true, nav: true, dots: false, mouseDrag: false, items: 5, slideBy: 1, responsive: { 0: { items: 1, stagePadding: 50, loop: false, mouseDrag: true, dots: false, nav: false, }, 768: { items: 3, mouseDrag: true, }, 992: { items: 5, } } }); } if ($('.owl-diary').length) { $('.owl-diary').owlCarousel({ margin: 30, loop: false, responsiveClass: true, nav: false, dots: false, mouseDrag: true, items: 1, slideBy: 1, responsive: { 0: { items: 1, stagePadding: 30, loop: false, mouseDrag: true, dots: false, nav: false, }, 768: { items: 1, mouseDrag: true, stagePadding: 0, nav: true, } } }); } if ($('.owl-boxtab').length) { $('.owl-boxtab').owlCarousel({ margin: 20, loop: false, responsiveClass: true, nav: false, dots: false, mouseDrag: true, items: 1, slideBy: 1, responsive: { 0: { items: 1, stagePadding: 30, loop: false, mouseDrag: true, //dots:true, nav: false, }, 768: { items: 1, mouseDrag: true, stagePadding: 0, nav: true, } } }); } if ($('.bxslider').length) { if (navigator.userAgent.indexOf("Chrome") !== -1) { $('body').on('mousedown', '.bx-viewport a', function() { var ch_link = $(this); var ch_href = ch_link.attr('href'); if (ch_href) { location.href = ch_href; return false; } }); } $('.bxslider').bxSlider({ mode: 'fade', speed: 800, auto: true, autoControls: false, pager: false, controls: false }); } $(".tab-slider--body").hide(); $(".tab-slider--body:first").show(); /* for thailand megatrends*/ if ($('.owl-magatrends').length) { $('.owl-magatrends').owlCarousel({ margin: 20, loop: false, responsiveClass: true, nav: false, dots: false, mouseDrag: false, items: 5, slideBy: 1, responsive: { 0: { items: 1, stagePadding: 20, loop: false, mouseDrag: true, //dots:true, nav: false, }, 768: { items: 3, mouseDrag: true, //dots:true, nav: true, }, 992: { items: 5, } } }); $(".owl-magatrends").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-magatrends.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-magatrends.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-magatrends .item').length <= 1) { $(".owl-magatrends.owl-carousel .owl-stage").addClass("item1"); } }); // oa_show_openx(3031, 'homepage', 'campaign1'); // oa_show_openx(3034, 'homepage', 'campaign2'); } if ($('.owl-campaignHoliday').length > 0) { $('.owl-campaignHoliday').owlCarousel({ margin: 20, loop: false, responsiveClass: true, nav: false, dots: false, mouseDrag: false, items: 5, slideBy: 1, responsive: { 0: { items: 1, stagePadding: 30, loop: false, mouseDrag: true, //dots:true, nav: false, }, 768: { items: 3, mouseDrag: true, //dots:true, nav: true, }, 992: { items: 4, }, 1200: { items: 4, } } }); $('.owl-campaignHoliday').on('.owl-item', function(e) { idx = e.item.index; console.log(inx); }); $(".owl-campaignHoliday").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-campaignHoliday.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-campaignHoliday.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-campaignHoliday .item').length <= 1) { $(".owl-campaignHoliday.owl-carousel .owl-stage").addClass("item1"); } }); } if ($('.owl-spectial--guru').length > 0) { $('.owl-spectial--guru').owlCarousel({ margin: 20, loop: true, responsiveClass: true, nav: true, dots: false, mouseDrag: false, items: 3, slideBy: 1, responsive: { 0: { items: 1, loop: true, mouseDrag: true, dots: false, // nav:false, }, 768: { items: 2, mouseDrag: true, }, 992: { items: 3, } } }); } if ($('.bxslider2').length) { $('.bxslider2').bxSlider({ //mode: 'fade', speed: 800, auto: true, autoControls: false, pager: false, controls: false, }); } // Homepage only if (window.location.pathname == '/') { g_homepagelanding.set_homepagelanding(); } //==Start learning ==// if ($('#slide-counter').length > 0) { if (navigator.userAgent.indexOf("Chrome") !== -1) { $('body').on('mousedown', '.bx-viewport a', function() { var ch_link = $(this); var ch_href = ch_link.attr('href'); if (ch_href) { location.href = ch_href; return false; } }); } $('#slide-counter').prepend('<span class="current-index"></span>/'); var slider = $('.bxslider-banner').bxSlider({ //mode: 'fade', speed: 800, auto: false, autoControls: false, //pager: false, //controls: false, onSliderLoad: function(currentIndex) { $('#slide-counter .current-index').text(currentIndex + 1); }, onSlideBefore: function($slideElement, oldIndex, newIndex) { $('#slide-counter .current-index').text(newIndex + 1); } }); $('#slide-counter').append(slider.getSlideCount()); } // slide-counter').length if ($('.owl-workshop').length > 0) { $('.owl-workshop').owlCarousel({ margin: 30, loop: false, responsiveClass: true, lazyLoad: true, mouseDrag: false, nav: false, dots: false, items: 1, responsive: { 0: { items: 1, mouseDrag: true, stagePadding: 30, margin: 20, }, 576: { items: 2, stagePadding: 50, margin: 20, }, 768: { items: 3, stagePadding: 0, }, 1200: { items: 3, stagePadding: 0, } } }); $(".owl-workshop").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-workshop.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-workshop.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-workshop .item').length <= 1) { $(".owl-workshop.owl-carousel .owl-stage").addClass("item1"); } }); } // owl-workshop').length if ($('.owl-scholarship').length > 0) { $('.owl-scholarship').owlCarousel({ margin: 30, loop: false, responsiveClass: true, lazyLoad: true, mouseDrag: false, nav: false, dots: false, items: 1, responsive: { 0: { items: 1, mouseDrag: true, stagePadding: 30, margin: 20, }, 576: { items: 2, stagePadding: 50, margin: 20, }, 768: { items: 3, stagePadding: 0, }, 1200: { items: 3, stagePadding: 0, } } }); $(".owl-scholarship").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-scholarship.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-scholarship.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-scholarship .item').length <= 1) { $(".owl-scholarship.owl-carousel .owl-stage").addClass("item1"); } }); } // owl-scholarship').length if ($('.owl-course').length > 0) { $('.owl-course').owlCarousel({ margin: 0, loop: false, responsiveClass: true, lazyLoad: true, mouseDrag: false, nav: true, dots: false, items: 1, responsive: { 0: { items: 1, mouseDrag: true, stagePadding: 30, margin: 20, nav: false, }, 768: { items: 1, stagePadding: 0, }, 991: { items: 3, stagePadding: 0, } } }); $('.owl-course').on('.owl-item', function(e) { idx = e.item.index; console.log(inx); }); $(".owl-course").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-course.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-course.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-course .item').length <= 1) { $(".owl-course.owl-carousel .owl-stage").addClass("item1"); } }); } // owl-course').length if ($('.owl-destination').length > 0) { $('.owl-destination').owlCarousel({ margin: 40, loop: false, responsiveClass: true, lazyLoad: true, mouseDrag: false, nav: false, dots: false, items: 1, responsive: { 0: { items: 1, mouseDrag: true, stagePadding: 50, }, 576: { items: 2, stagePadding: 50, }, 768: { items: 3, stagePadding: 50, }, 991: { items: 4, stagePadding: 50, }, 1200: { items: 5, stagePadding: 0, } } }); $(".owl-destination").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-destination.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-destination.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-destination .item').length <= 1) { $(".owl-destination.owl-carousel .owl-stage").addClass("item1"); } }); } // owl-destination').length if ($('#secondary-slider').length) { // Create and mount the thumbnails slider. var secondarySlider = new Splide('#secondary-slider', { rewind: true, fixedWidth: 200, fixedHeight: 133, isNavigation: true, gap: 20, focus: 'center', pagination: false, arrows: false, cover: true, breakpoints: { '1200': { fixedWidth: 200, fixedHeight: 133, gap: 15, }, '577': { fixedWidth: 150, fixedHeight: 100, gap: 10, } } }).mount(); // Create the main slider. var primarySlider = new Splide('#primary-slider', { type: 'fade', heightRatio: 0.66, pagination: false, arrows: false, cover: true, height: 0, breakpoints: { '577': { height: 0, } } }); // Set the thumbnails slider as a sync target and then call mount. primarySlider.sync(secondarySlider).mount(); } // secondary-slider').length //==End learning ==// }); // end ready //start reader //end reader $(".tab-slider--nav li").click(function() { $(".tab-slider--body").hide(); var activeTab = $(this).attr("rel"); $("#" + activeTab).fadeIn(); if ($(this).attr("rel") == activeTab) { $('.tab-slider--tabs').addClass('slide'); } else { $('.tab-slider--tabs').removeClass('slide'); } $(".tab-slider--nav li").removeClass("active"); $(this).addClass("active"); // $(this).addClass("active").fadeIn("slow", 4000); //for exchange kbank if ($("#tab--exchangeRate").hasClass('active')) { $(".tab-slider--nav").addClass('rate-kbank'); } else { $(".tab-slider--nav").removeClass('rate-kbank'); } }); /* หน้าดัก */ var g_homepagelanding = { /* Config */ date_begin: '2023/06/03 00:00:00 GMT+0700', date_end: '2023/06/03 23:59:59 GMT+0700', cookie_name: 'is_show_homepage_landing', domain: 'bangkokpost.com', // age: 86400, /* 1 Day */ age: 10800, /* 3 Hours */ get_cookie_homepagelanding: function() { var v = document.cookie.match('(^|;) ?' + this.cookie_name + '=([^;]*)(;|$)'); return v ? v[2] : null; }, close_homepagelanding: function() { var d = new Date(); d.setTime(d.getTime() + (this.age * 1000)); document.cookie = this.cookie_name + "=1;domain=" + this.domain + ";path=/;expires=" + d.toGMTString(); }, show_homepagelanding: function() { this.close_homepagelanding(); // location = 'https://www.bangkokpost.com/page/father-day-2020/'; location = 'https://www.bangkokpost.com/page/queen-rama-10/'; // location = 'https://www.bangkokpost.com/page/king-rama-10/'; // location = 'https://www.bangkokpost.com/page/anniversary-75-year/'; // location = 'https://www.bangkokpost.com/page/queensirikit/'; // location = 'https://www.bangkokpost.com/page/rama9/'; // location = 'https://www.bangkokpost.com/page/coronation/'; // location = 'https://www.bangkokpost.com/page/rama10/'; //location = 'https://www.bangkokpost.com/page/father-day/'; }, check_show_homepagelanding: function() { var multi_timezone_offset = 60000; var t = new Date(); var utc_now = t.getTime() + (t.getTimezoneOffset() * multi_timezone_offset); var check_date_begin = new Date(this.date_begin); var utc_begin = check_date_begin.getTime() + (check_date_begin.getTimezoneOffset() * multi_timezone_offset); var check_date_end = new Date(this.date_end); var utc_end = check_date_end.getTime() + (check_date_end.getTimezoneOffset() * multi_timezone_offset); if (utc_now > utc_begin && utc_now < utc_end) { var is_noti = this.get_cookie_homepagelanding(); if (!is_noti) { return true; } } else { return false; } }, set_homepagelanding: function() { if (this.check_show_homepagelanding()) { this.show_homepagelanding(); } } } </script> <script type="text/javascript"> if ($(".box-diary-info").length) { var elm_today_info_tab; var count_tab_today_info; var today_info_delay = 10000; var today_info_interval; (function($, window, document) { /* Jquery ready here */ elm_today_info_tab = $(".box-diary-info .tab-slider--trigger"); count_tab_today_info = elm_today_info_tab.length; today_info_interval = setInterval(slide_today_info, today_info_delay); }(window.jQuery, window, document)); function slide_today_info() { for (i = 0; i < count_tab_today_info; i++) { if (elm_today_info_tab.eq(i).hasClass('active')) { break; } } if (i >= (count_tab_today_info - 1)) { i = 0; } else { i++; } elm_today_info_tab.eq(i).trigger("click"); } $(".box-diary-info") .mouseenter(function() { clearInterval(today_info_interval); }) .mouseleave(function() { today_info_interval = setInterval(slide_today_info, today_info_delay); }); } $(function() { // @TODO: Fix outbrain gap setTimeout(function() { if ($('#ctcg_frame_65349_0').length) { $('#ctcg_frame_65349_0').hide(); } }, 3000); }); </script> <script type='text/javascript'> var is_bkp_newdesign_switched = null; function get_cookie_bkp_newdesign(name) { var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)'); return v ? v[2] : null; } function accept_bkp_newdesign_switched() { var d = new Date; d.setTime(d.getTime() + 31536000000); // 1 year document.cookie = "is_bkp_newdesign_switched=1;domain=bangkokpost.com;path=/;expires=" + d.toGMTString(); } function check_bkp_newdesign_switched() { var is_bkp_newdesign_switched = get_cookie_bkp_newdesign('is_bkp_newdesign_switched'); if (!is_bkp_newdesign_switched) show_bkp_newdesign_bar(); } function go_bkp_old_newdesign() { accept_bkp_newdesign_switched(); location = "https://www.bangkokpost.com?olddesign=1"; } function close_bkp_newdesign_bar() { accept_bkp_newdesign_switched(); document.getElementById("beta-banner").remove(); // $('#beta-banner').fadeOut(); } function show_bkp_newdesign_bar() { $('body').append('\ <div class="beta-footer" id="beta-banner" style="display:none">\ <div class="container">\ <div class="beta-footer-content">\ <div class="beta-close"><a onclick="close_bkp_newdesign_bar();" href="javascript:;" id="beta-close"><img src="https://static.bangkokpost.com/newdesign/assets/images/beta/close.svg" alt=""></a></div>\ <div class="beta-header">YOU’RE LOOKING AT THE NEW DESIGN.</div>\ <div class="beta-btn">\ <a target="_blank" href="https://docs.google.com/forms/d/e/1FAIpQLSf7I92Q7BGfYI652QyxSQ2ofoop7HEPDQqYn9WNLzZqypx6Kg/viewform?hl=en">TELL US WHAT YOU THINK <img src="https://static.bangkokpost.com/newdesign/assets/images/beta/arrow.svg" alt=""></a>\ <!--<a class="track_newdesign" href="javascript:;" onclick="go_bkp_old_newdesign();">RETURN TO THE CURRENT DESIGN <img src="https://static.bangkokpost.com/newdesign/assets/images/beta/arrow.svg" alt=""></a>--\>\ </div>\ </div>\ </div>\ </div>\ '); // https://docs.google.com/forms/d/e/1FAIpQLSf7I92Q7BGfYI652QyxSQ2ofoop7HEPDQqYn9WNLzZqypx6Kg/viewform?usp=sf_link $(window).scroll(function() { if ($(window).scrollTop() > 200) { $('#beta-banner').fadeIn(); } else { $('#beta-banner').fadeOut(); } }); $('#beta-close').click(function() { $('#beta-banner').fadeOut(); }); } // -- remove by ratt 2019-07-23-- check_bkp_newdesign_switched(); //======live-blog var g_campaign_promote_event = { /* Config */ date_begin: '2021/09/15 00:00:01 GMT+0700', date_end: '2021/10/01 16:20:59 GMT+0700', cookie_name: 'is_show_promote', domain: 'bangkokpost.com', age: 86400, // 1 day get_cookie_promote_event: function() { var v = document.cookie.match('(^|;) ?' + this.cookie_name + '=([^;]*)(;|$)'); return v ? v[2] : null; }, close_promote_event: function() { var d = new Date; d.setTime(d.getTime() + (this.age * 1000)); document.cookie = this.cookie_name + "=1;domain=" + this.domain + ";path=/;expires=" + d.toGMTString(); // $('#bar-promote-epaper').fadeOut(); $("#bar-promote-live").remove(); }, show_promote_event: function() { $('body').append('<div class="bar-promote-live" id="bar-promote-live">\ <div class="container">\ <div class="bar-promote-bg">\ <div class="bar-close"><a href="javascript:;" id="bar-close"><img src="https://static.bangkokpost.com/newdesign/assets/images/close.svg" alt=""></a></div>\ <!-- <div class="bar-promote--box promo0"><img src="https://static.bangkokpost.com/newdesign/assets/images/forum/2020/economic_forum2/img-bkp74.png" class="img-fluid" alt=""></div> -->\ <div class="bar-promote--box promo1"><img src="https://static.bangkokpost.com/newdesign/assets/images/forum/2021/bkp_conference/img-event.png" class="img-fluid" alt=""></div>\ <div class="bar-promote--box promo3">\ <span class="animate-live"></span>\ <img src="https://static.bangkokpost.com/newdesign/assets/images/forum/2021/bkp_conference/icn-live.png" alt="">\ </div>\ <div class="bar-promote--box promo31">\ <div class="box1">SPECIAL <span>LIVE</span> converage</div>\ <!-- <div class="box1">SPECIAL LIVE</div>\ <div class="box2">BROADCAST</div> -->\ </div>\ <div class="bar-promote--box promo4">\ FRIDAY, OCTOBER 1, 2021 | 1PM - 4.20PM\ </div>\ <div class="bar-promote--box promo5"><a href="https://bit.ly/3mtnspR"><img src="https://static.bangkokpost.com/newdesign/assets/images/forum/2021/bkp_conference/icn-play.png" class="img-fluid" alt=""></a></div>\ <div class="bar-promote--box promo6"><img src="https://static.bangkokpost.com/newdesign/assets/images/forum/2021/bkp_conference/img-txt_forum.png" class="img-fluid" alt=""></div>\ </div>\ </div>\ </div>'); /* $('body').append('<div class="bar-promote-epaper" id="bar-promote-epaper" style="z-index:999999;"><div class="container"><div class="bar-promote-bg"><div class="bar-close"><a href="javascript:;" onclick="g_campaign_promote_event.close_promote_event();" id="bar-close"><img src="https://static.bangkokpost.com/newdesign/assets/images/close.svg" alt=""></a></div><div class="promote-031"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/wsj/landing/flashsale.svg?v=0.1" class="img-fluid" alt=""></div><div class="special-promote--epaper"><div class="promote-01"><img src="https://static.bangkokpost.com/newdesign/assets/images/campaign/wsj/landing/logo-bp-wsj_white.png" class="img-fluid" alt=""></div><div class="promote-02">Save an <span>extra 500 baht.</span> 4 days only! <a href="https://bit.ly/36VAWEg" class="btn-special-promote--subscribe">SUBSCRIBE NOW</a></div></div></div></div></div>'); */ }, check_show_promote_event: function() { var multi_timezone_offset = 60000; var t = new Date(); var utc_now = t.getTime() + (t.getTimezoneOffset() * multi_timezone_offset); var check_date_begin = new Date(this.date_begin); var utc_begin = check_date_begin.getTime() + (check_date_begin.getTimezoneOffset() * multi_timezone_offset); var check_date_end = new Date(this.date_end); var utc_end = check_date_end.getTime() + (check_date_end.getTimezoneOffset() * multi_timezone_offset); if (utc_now > utc_begin && utc_now < utc_end) { var is_noti = this.get_cookie_promote_event(); if (!is_noti) { return true; } } else { return false; } }, set_promote_event: function() { if (this.check_show_promote_event()) { this.show_promote_event(); } } } // $(function() { // g_campaign_promote_event.set_promote_event(); // }); //console.log('g_ad_type ' + g_ad_type); //if(g_ad_type != "mobile"){ $(function() { g_campaign_promote_event.set_promote_event(); /* $("a.btn-special-promote--subscribe").on('mouseup', function (e) { //$("div.bar-promote--box.promo5 a").on('mouseup', function (e) { g_campaign_promote_event.close_promote_event(); //dataLayer.push({'event' : 'GAEvent','eventCategory' : 'Epaper flashsale 11-11', 'eventAction' : 'click', 'eventLabel' : 'Click Epaper flashsale homepage'}); }); */ $("#bar-close").on('mouseup', function(e) { g_campaign_promote_event.close_promote_event(); //dataLayer.push({'event' : 'GAEvent','eventCategory' : 'Epaper flashsale 11-11', 'eventAction' : 'click', 'eventLabel' : 'Click close Epaper flashsale'}); }); }); //} $(window).scroll(function() { if (g_campaign_promote_event.check_show_promote_event()) { if ($(window).scrollTop() > 200) { $('#bar-promote-live').fadeIn(); } else { $('#bar-promote-live').fadeOut(); } } }); //======end live-blog // tracking $(function() { $(".track_newdesign").on('mouseup', function(e) { ga('send', 'event', 'Bangkok post newdesign', 'click', 'click_back_to_olddesign'); }); }); </script> <script> $(".owl-topics").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-topics.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-topics.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-topics .item').length <= 1) { $(".owl-topics.owl-carousel .owl-stage").addClass("item1"); } }); /* for section life */ $(".owl-recommended").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-recommended.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-recommended.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-recommended .item').length <= 1) { $(".owl-recommended.owl-carousel .owl-stage").addClass("item1"); } }); if (g_page_type == "homepage") { oa_show_openx(2962, 'homepage', 'recommended'); // move to cxense } $(".owl-diary").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-diary.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-diary.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-diary .item').length <= 1) { $(".owl-diary.owl-carousel .owl-stage").addClass("item1"); } }); $(".owl-boxtab").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function(e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { $(".owl-boxtab.owl-carousel .owl-stage").addClass("pos-right"); } else if (current === carousel.minimum()) { $(".owl-boxtab.owl-carousel .owl-stage").removeClass("pos-right"); } if ($('.owl-boxtab .item').length <= 1) { $(".owl-boxtab.owl-carousel .owl-stage").addClass("item1"); } }); </script> <script type="text/javascript"> // console.log('test maintenance: ok'); var g_maintenance = { /* Config */ date_begin: '2023/07/13 09:00:00 GMT+0700', date_end: '2023/07/16 23:59:59 GMT+0700', cookie_name: 'is_show_maintenance', domain: 'bangkokpost.com', age: 86400, // 1 day get_cookie_maintenance: function() { var v = document.cookie.match('(^|;) ?' + this.cookie_name + '=([^;]*)(;|$)'); return v ? v[2] : null; }, close_maintenance: function() { var d = new Date; d.setTime(d.getTime() + (this.age * 1000)); document.cookie = this.cookie_name + "=1;domain=" + this.domain + ";path=/;expires=" + d.toGMTString(); $("#box-mainten").remove(); }, show_maintenance: function() { $("body").addClass("body-maintenance"); // $('#header-nav').before('\<div id="box-mainten" style="background-color: #333; width: 100%; padding: 10px;">\ // <div style="max-width: 730px; width: 100%; margin: 0 auto; position: relative;">\ // <img src="https://static.bangkokpost.com/newdesign/assets/images/icon/alert.svg" style="width: 35px; height: 35px; position: absolute; left: 0; top: 5px;" alt="">\ // <div class="visible-lg visible-md visible-sm" style="padding:2px 50px 0; font-size: 13px; line-height: 20px; color: #fff;">On July 20th at 23:00 - July 21th at 02:00 (UTC+7), Bangkokpost.com will be under maintenance. You will not be able to access the website. We apologize for any inconvenience.</div>\ // <div class="visible-xs" style="padding:2px 50px 0; font-size: 13px; line-height: 20px; color: #fff;">On July 20th at 23:00 - July 21th at 02:00 (UTC+7), Bangkokpost.com will be under maintenance. You will not be able to access the website. We apologize for any inconvenience.</div>\ // <a href="javascript:void(0);" onclick="g_maintenance.close_maintenance();" id="btn-close2"><img src="https://static.bangkokpost.com/newdesign/assets/images/icon/icon-close.svg" style="width: 38px; height: 38px; position: absolute; right: 0; top: 3px;" alt=""></a>\ // </div>\ // </div>'); $('#header-nav').before('\<div id="box-mainten" style="background-color: #333; width: 100%; padding: 10px;">\ <div style="max-width: 730px; width: 100%; margin: 0 auto; position: relative;">\ <img src="https://static.bangkokpost.com/newdesign/assets/images/icon/alert.svg" style="width: 35px; height: 35px; position: absolute; left: 0; top: 5px;" alt="">\ <div class="visible-lg visible-md visible-sm" style="padding:2px 50px 0; font-size: 13px; line-height: 20px; color: #fff;">On July 16 at 22:00 - July 17 at 00:00 (UTC+7), we will be implementing changes to this website. During this time, you may not be able to access the pages. We apologise for this inconvenience.</div>\ <div class="visible-xs" style="padding:2px 50px 0; font-size: 13px; line-height: 20px; color: #fff;">On July 16 at 22:00 - July 17 at 00:00 (UTC+7), we will be implementing changes to this website. During this time, you may not be able to access the pages. We apologise for this inconvenience.</div>\ <a href="javascript:void(0);" onclick="g_maintenance.close_maintenance();" id="btn-close2"><img src="https://static.bangkokpost.com/newdesign/assets/images/icon/icon-close.svg" style="width: 38px; height: 38px; position: absolute; right: 0; top: 3px;" alt=""></a>\ </div>\ </div>'); }, check_show_maintenance: function() { var multi_timezone_offset = 60000; var t = new Date(); var utc_now = t.getTime() + (t.getTimezoneOffset() * multi_timezone_offset); var check_date_begin = new Date(this.date_begin); var utc_begin = check_date_begin.getTime() + (check_date_begin.getTimezoneOffset() * multi_timezone_offset); var check_date_end = new Date(this.date_end); var utc_end = check_date_end.getTime() + (check_date_end.getTimezoneOffset() * multi_timezone_offset); if (utc_now > utc_begin && utc_now < utc_end) { var is_noti = this.get_cookie_maintenance(); if (!is_noti) { return true; } } else { return false; } }, set_maintenance: function() { if (this.check_show_maintenance()) { this.show_maintenance(); } } } $(function() { g_maintenance.set_maintenance(); }); //======= ptomote home-topics-horo if (g_page_type == 'homepage') { //=====scrolling $(document).ready(function() { var go = ''; var hashes; var url_string = window.location.href; if (url_string.length > 0) { var url = new URL(url_string); go = url.searchParams.get("go"); hashes = "#" + go; if (hashes == "#info-topicshoro") { setTimeout(function() { $("#go-topicshoro").trigger('click'); }, 1000); } if (hashes == "#info-homehoro") { setTimeout(function() { $("#go-homehoro").trigger('click'); }, 1000); } } }); // end ready function device_type() { var ad_type = ''; var _width = $(window).width(); if (_width >= 950) { ad_type = "desktop"; } else if (_width < 950 && _width >= 768) { ad_type = "tablet"; } else if (_width < 768 && _width >= 336) { ad_type = "mobile"; } else if (_width < 336) { ad_type = "other"; } return ad_type; } (function($) { $.fn.pagescroll = function(options) { var nTarget = $.extend({}, $.fn.pagescroll.defaults, options); jQuery.easing['jswing'] = jQuery.easing['swing']; if (nTarget.element == "html,body") { var nPosition = this.offset().top; $(nTarget.element).animate({ scrollTop: nPosition - nTarget.padding }, nTarget.scrollSpeed, nTarget.easing); } else { $(nTarget.element).animate({ scrollTop: this.offset().top - this.parent().offset().top + this.parent().scrollTop() - nTarget.padding }, nTarget.scrollSpeed, nTarget.easing); } }; $.fn.pagescroll.defaults = { easing: "swing", scrollSpeed: 2000, padding: 40, element: "html,body" }; }(jQuery)); $("#go-topicshoro").on('click', function(e) { e.preventDefault(); var _device_type = device_type(); setTimeout(function() { $("#info-topicshoro").pagescroll({ scrollSpeed: 1000 }); if (_device_type == "mobile") { setTimeout(function() { location.href = "#info-topicshoro"; setTimeout(function() { $("#info-topicshoro").pagescroll({ scrollSpeed: 1000 }); }, 800); $(".owl-item:nth-child(2)").addClass("active "); $('.owl-carousel').trigger('to.owl.carousel', 2); }, 1000); } }, 800); }); $("#go-homehoro").on('click', function(e) { e.preventDefault(); var _device_type = device_type(); setTimeout(function() { $("#info-homehoro").pagescroll({ scrollSpeed: 1000 }); if (_device_type == "mobile") { setTimeout(function() { location.href = "#info-homehoro"; setTimeout(function() { $("#info-homehoro").pagescroll({ scrollSpeed: 1000 }); }, 800); // $(".owl-item:nth-child(2)") .addClass("active "); // $('.owl-carousel').trigger('to.owl.carousel', 2 ); }, 1000); } }, 800); }); } </script> <div id='div-gpt-ad-skin-0' style='height:1px; width:1px;'> <script> // googletag.cmd.push(function() { // googletag.display('div-gpt-ad-skin-0'); // }); </script> </div> <script> //window.googletag = window.googletag || {cmd: []}; /* remove by tong 2020-07-31 if(g_section != 'business' && g_section != 'homepage' ){ //console.log('test skin ad show'); googletag.cmd.push(function() { googletag.defineOutOfPageSlot('/2776261/bp_ros_skin', 'div-gpt-ad-theme').addService(googletag.pubads()); googletag.pubads().collapseEmptyDivs(); googletag.enableServices(); }); } */ // setTimeout(initGPT, 100); </script> <!-- /2776261/BKP_homepage_test/skin --> <!-- <div id='div-gpt-ad-theme'> <script> if(g_section != 'business' && g_section != 'homepage' && g_section != 'sports' ){ googletag.cmd.push(function() { googletag.display('div-gpt-ad-theme'); }); } </script> </div> --> <!---testing echo footer : ---><script type="text/javascript" src="https://static.bangkokpost.com/newdesign/assets/js/jquery.copypaste.js"></script> <script> if (g_page_type == 'article' && g_section != "learning" && g_section != "sports") { // console.log('lock copy section :' + g_section ); // if($this->config->item('page_type') == 'article' && strtolower($section_name) != "learning" ) { try { $.copypaste("%copy% <br /><br />Please credit and share this article with others using this link:" + top.window.location + ". View our policies at http://goo.gl/9HgTd and http://goo.gl/ou6Ip. &copy; Bangkok Post PCL. All rights reserved."); } catch (e) {} } else { // console.log('unlock copy section :' + g_section ); } </script> <input type="text" id="temp_section" name="temp_section" style="display:none"> <script src="https://static.bangkokpost.com/newdesign/assets/custom/validate/validator_newsletter.js?v=0.077"></script> <script src="https://static.bangkokpost.com/newdesign/assets/custom/js/sponsored.js?v=0.077"></script> <!--Taboola 3 --> <script type="text/javascript"> if (g_page_type == 'homepage' || g_page_type == 'article' || g_page_type == 'section' || g_page_type == 'sub_section') { { $('#taboola-below-sections-thumbnails').css('display', 'block'); window._taboola = window._taboola || []; _taboola.push({ mode: 'alternating-thumbnails-a', container: 'taboola-below-sections-thumbnails', placement: 'Below Sections Thumbnails', target_type: 'mix' }); // ===== end taboola elem ====== window._taboola = window._taboola || []; _taboola.push({ flush: true }); } </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10