{"id":4908,"date":"2017-02-24T15:27:40","date_gmt":"2017-02-24T15:27:40","guid":{"rendered":"https:\/\/www.humboldt-institut.org\/?page_id=4908\/"},"modified":"2025-05-13T13:45:21","modified_gmt":"2025-05-13T11:45:21","slug":"book","status":"publish","type":"page","link":"https:\/\/www.humboldt-institut.org\/en\/book\/","title":{"rendered":"Book a course\/exam"},"content":{"rendered":"<p><iframe class=\"change-url\" src=\"https:\/\/book.humboldt-institut.org\/book\/?lng=en\" width=\"1170\" height=\"700\" frameborder=\"0\" title=\"Booking form\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<p><script>\n\/*Damit nach jedem Step-Wechsel automatisch nach oben gescrollt werden soll (Hauptseite), wird eine Scroll-Message vom Buchungsformular (iframe) an die Hauptseite geschickt.*\/\nwindow.addEventListener('message', function(event) {\n  \/*Sicherheitscheck: Pr\u00fcfen, ob die Nachricht von der korrekten Subdomain kommt*\/\n  if (event.origin === 'https:\/\/book.humboldt-institut.org') {\n    if (event.data.action === 'scrollToTop') {\n      window.scrollTo({ top: 0, behavior: 'instant' });\n    }else if (event.data.action === 'scrollToTopSmooth') {\n      \/*Smooth-Scroll nach oben, bei Validierungsfehler*\/\n      window.scrollTo({ top: 0, behavior: 'smooth' });\n    }\n    \/*Zudem wird die H\u00f6he des iframes dynamisch an die H\u00f6he der Buchungsapp angepasst. Damit wird sichergestellt, dass keine geschachtelten Scrollbars entstehen*\/\n    if (event.data.type === \"setIframeHeight\") {\n      const iframe = document.querySelector(\".change-url\");\n      iframe.style.height = event.data.height + \"px\";\n    }\n  }\n});\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ufeff\ufeff<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":358,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-4908","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.humboldt-institut.org\/en\/wp-json\/wp\/v2\/pages\/4908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.humboldt-institut.org\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.humboldt-institut.org\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.humboldt-institut.org\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.humboldt-institut.org\/en\/wp-json\/wp\/v2\/comments?post=4908"}],"version-history":[{"count":4,"href":"https:\/\/www.humboldt-institut.org\/en\/wp-json\/wp\/v2\/pages\/4908\/revisions"}],"predecessor-version":[{"id":48219,"href":"https:\/\/www.humboldt-institut.org\/en\/wp-json\/wp\/v2\/pages\/4908\/revisions\/48219"}],"wp:attachment":[{"href":"https:\/\/www.humboldt-institut.org\/en\/wp-json\/wp\/v2\/media?parent=4908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}