{"id":1004,"date":"2026-06-06T08:51:03","date_gmt":"2026-06-06T08:51:03","guid":{"rendered":"https:\/\/radioveerman.nl\/?page_id=1004"},"modified":"2026-10-24T09:36:25","modified_gmt":"2026-10-24T09:36:25","slug":"test-2","status":"publish","type":"page","link":"https:\/\/radioveerman.nl\/index.php\/test-2\/","title":{"rendered":"Test"},"content":{"rendered":"\n<iframe loading=\"lazy\"\n    src=\"https:\/\/jukebox.radioveerman.nl\/web\/playlist.php?limit=10\"\n    width=\"80%\"\n    height=\"850\"\n    style=\"border:none; display:block; margin:0 auto;\">\n<\/iframe>\n\n\n\n<div id=\"rv-nowplaying\">\n  <div class=\"rv-label\">\ud83c\udfb5 NU OP RADIOVEERMAN.NL<\/div>\n\n  <div class=\"rv-scroll-container\">\n    <div id=\"rv-song\">Muziek wordt geladen&#8230;<\/div>\n  <\/div>\n\n  <div id=\"rv-status\">Now Playing<\/div>\n<\/div>\n\n<style>\n#rv-nowplaying {\n  width: 100%;\n  min-height: 130px;\n  box-sizing: border-box;\n  padding: 20px;\n  background: #111;\n  border: 2px solid #087cff;\n  border-radius: 12px;\n  color: #fff;\n  font-family: Arial, sans-serif;\n  text-align: center;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  overflow: hidden;\n}\n\n#rv-nowplaying .rv-label {\n  color: #1687ff;\n  font-size: 15px;\n  font-weight: bold;\n  margin-bottom: 16px;\n}\n\n#rv-nowplaying .rv-scroll-container {\n  width: 100%;\n  overflow: hidden;\n  white-space: nowrap;\n  margin: 0 auto;\n}\n\n#rv-nowplaying #rv-song {\n  display: inline-block;\n  padding-left: 100%;\n  font-size: 22px;\n  font-weight: bold;\n  line-height: 1.4;\n  animation: rv-title-scroll 20s linear infinite;\n}\n\n@keyframes rv-title-scroll {\n  0% {\n    transform: translateX(0);\n  }\n  100% {\n    transform: translateX(-100%);\n  }\n}\n\n#rv-nowplaying #rv-status {\n  margin-top: 10px;\n  color: #aaa;\n  font-size: 13px;\n}\n<\/style>\n\n<script>\n(function () {\n  const metadataUrl = \"\/currentmetadata-proxy.php\";\n  const songElement = document.getElementById(\"rv-song\");\n  const statusElement = document.getElementById(\"rv-status\");\n\n  async function updateNowPlaying() {\n    try {\n      const response = await fetch(\n        metadataUrl + \"?t=\" + Date.now(),\n        { cache: \"no-store\" }\n      );\n\n      if (!response.ok) {\n        throw new Error(\"HTTP \" + response.status);\n      }\n\n      const data = await response.json();\n\n      if (data.title) {\n        const newTitle = data.title.trim();\n\n        if (songElement.textContent !== newTitle) {\n          songElement.textContent = newTitle;\n\n          \/\/ Start de animatie opnieuw bij een nieuwe titel\n          songElement.style.animation = \"none\";\n          void songElement.offsetWidth;\n          songElement.style.animation =\n            \"rv-title-scroll 20s linear infinite\";\n        }\n\n        statusElement.textContent = \"Nu aan het spelen\";\n      } else {\n        songElement.textContent = \"Geen titel beschikbaar\";\n        statusElement.textContent = \"Geen metadata ontvangen\";\n      }\n    } catch (error) {\n      console.error(\"Now Playing-fout:\", error);\n      statusElement.textContent = \"Metadata tijdelijk niet beschikbaar\";\n    }\n  }\n\n  updateNowPlaying();\n  setInterval(updateNowPlaying, 10000);\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\udfb5 NU OP RADIOVEERMAN.NL Muziek wordt geladen&#8230; Now Playing<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1004","page","type-page","status-publish","hentry","nodate","item-wrap"],"_links":{"self":[{"href":"https:\/\/radioveerman.nl\/index.php\/wp-json\/wp\/v2\/pages\/1004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/radioveerman.nl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/radioveerman.nl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/radioveerman.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/radioveerman.nl\/index.php\/wp-json\/wp\/v2\/comments?post=1004"}],"version-history":[{"count":6,"href":"https:\/\/radioveerman.nl\/index.php\/wp-json\/wp\/v2\/pages\/1004\/revisions"}],"predecessor-version":[{"id":1367,"href":"https:\/\/radioveerman.nl\/index.php\/wp-json\/wp\/v2\/pages\/1004\/revisions\/1367"}],"wp:attachment":[{"href":"https:\/\/radioveerman.nl\/index.php\/wp-json\/wp\/v2\/media?parent=1004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}