{"id":6513,"date":"2026-03-08T15:35:30","date_gmt":"2026-03-08T15:35:30","guid":{"rendered":"https:\/\/pbmy.parlimen.gov.my\/?page_id=6513"},"modified":"2026-07-22T18:24:54","modified_gmt":"2026-07-22T10:24:54","slug":"tempoh-berkempen","status":"publish","type":"page","link":"https:\/\/pbmy.parlimen.gov.my\/my\/tempoh-berkempen\/","title":{"rendered":"Tempoh Berkempen"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"6513\" class=\"elementor elementor-6513\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-058d070 e-flex e-con-boxed e-con e-parent\" data-id=\"058d070\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-43e451a elementor-widget elementor-widget-heading\" data-id=\"43e451a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Tempoh Berkempen<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5bc6cc7 elementor-widget elementor-widget-text-editor\" data-id=\"5bc6cc7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p style=\"margin-bottom: 0;\">08\/07\/2026 &#8211; 07\/08\/2026<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-179165b elementor-widget elementor-widget-html\" data-id=\"179165b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t\n<style>\n\n.cdw {\n  display: flex;\n  align-items: flex-start;\n  justify-content: center;\n  gap: clamp(0.5rem, 3vw, 2rem);\n  font-family: system-ui, -apple-system, \"Cabin\", Arial, sans-serif;\n  color: #1b2a63;\n  line-height: 1;\n}\n.cdw .cdw-unit {\n  text-align: center;\n  min-width: clamp(60px, 18vw, 140px);\n}\n.cdw .cdw-value {\n  font-size: clamp(2.5rem, 12vw, 5rem);\n  font-weight: 700;\n  line-height: 1;\n  font-variant-numeric: tabular-nums;\n  font-feature-settings: \"tnum\" 1;\n}\n.cdw .cdw-label {\n  margin-top: 0.6rem;\n  font-size: clamp(0.75rem, 3vw, 1.1rem);\n  color: #4a5a86;\n}\n.cdw .cdw-sep {\n  font-size: clamp(2rem, 9vw, 4rem);\n  font-weight: 700;\n  color: #9aa3bb;\n}\n.cdw .cdw-done {\n  font-size: clamp(1.5rem, 7vw, 3rem);\n  font-weight: 700;\n}\n<\/style>\n\n<div class=\"cdw\" data-target=\"2026-08-07T00:00:00\">\n  <div class=\"cdw-unit\"><div class=\"cdw-value\" data-u=\"d\">--<\/div><div class=\"cdw-label\">Days<\/div><\/div>\n  <div class=\"cdw-sep\">:<\/div>\n  <div class=\"cdw-unit\"><div class=\"cdw-value\" data-u=\"h\">--<\/div><div class=\"cdw-label\">Hours<\/div><\/div>\n  <div class=\"cdw-sep\">:<\/div>\n  <div class=\"cdw-unit\"><div class=\"cdw-value\" data-u=\"m\">--<\/div><div class=\"cdw-label\">Minutes<\/div><\/div>\n  <div class=\"cdw-sep\">:<\/div>\n  <div class=\"cdw-unit\"><div class=\"cdw-value\" data-u=\"s\">--<\/div><div class=\"cdw-label\">Seconds<\/div><\/div>\n<\/div>\n\n<script>\n(function () {\n  function pad(n) { return String(n).padStart(2, '0'); }\n\n  function set(node, value) {\n    if (node.textContent !== value) node.textContent = value;\n  }\n\n  function start(root) {\n \n    if (root.dataset.cdwInit === '1') return;\n    root.dataset.cdwInit = '1';\n\n    var target = new Date(root.dataset.target).getTime();\n    if (isNaN(target)) return;\n\n    var el = {\n      d: root.querySelector('[data-u=\"d\"]'),\n      h: root.querySelector('[data-u=\"h\"]'),\n      m: root.querySelector('[data-u=\"m\"]'),\n      s: root.querySelector('[data-u=\"s\"]')\n    };\n\n    (function tick() {\n      var diff = target - Date.now();\n\n      if (diff <= 0) {\n        root.innerHTML = '<div class=\"cdw-done\">Time\\'s up!<\/div>';\n        return;\n      }\n\n      var t = Math.floor(diff \/ 1000);\n      set(el.d, pad(Math.floor(t \/ 86400)));\n      set(el.h, pad(Math.floor(t % 86400 \/ 3600)));\n      set(el.m, pad(Math.floor(t % 3600 \/ 60)));\n      set(el.s, pad(t % 60));\n      setTimeout(tick, (diff % 1000) + 40);\n    })();\n  }\n\n  function init() {\n\n    var nodes = document.querySelectorAll('.cdw[data-target]');\n    for (var i = 0; i < nodes.length; i++) start(nodes[i]);\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', init);\n  } else {\n    init();\n  }\n})();\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Tempoh Berkempen 08\/07\/2026 &#8211; 07\/08\/2026 &#8211;Days : &#8211;Hours : &#8211;Minutes : &#8211;Seconds<\/p>\n","protected":false},"author":1,"featured_media":5962,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-6513","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/pbmy.parlimen.gov.my\/my\/wp-json\/wp\/v2\/pages\/6513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pbmy.parlimen.gov.my\/my\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pbmy.parlimen.gov.my\/my\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pbmy.parlimen.gov.my\/my\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pbmy.parlimen.gov.my\/my\/wp-json\/wp\/v2\/comments?post=6513"}],"version-history":[{"count":13,"href":"https:\/\/pbmy.parlimen.gov.my\/my\/wp-json\/wp\/v2\/pages\/6513\/revisions"}],"predecessor-version":[{"id":9712,"href":"https:\/\/pbmy.parlimen.gov.my\/my\/wp-json\/wp\/v2\/pages\/6513\/revisions\/9712"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pbmy.parlimen.gov.my\/my\/wp-json\/wp\/v2\/media\/5962"}],"wp:attachment":[{"href":"https:\/\/pbmy.parlimen.gov.my\/my\/wp-json\/wp\/v2\/media?parent=6513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}