{"id":20993,"date":"2026-04-09T08:24:51","date_gmt":"2026-04-09T08:24:51","guid":{"rendered":"https:\/\/happyholidays.am\/?page_id=20993"},"modified":"2026-05-09T09:14:54","modified_gmt":"2026-05-09T09:14:54","slug":"group-tours","status":"publish","type":"page","link":"https:\/\/happyholidays.am\/ru\/group-tours\/","title":{"rendered":"Group tours"},"content":{"rendered":"\n<iframe src=\"https:\/\/calendar.happyholidays.am\/\"\n        id=\"hh-calendar-iframe\"\n        style=\"width:100%;border:0;display:block;\"\n        scrolling=\"no\"><\/iframe>\n<script>\n(function() {\n  \/\/ Auto-resize iframe to its content height.\n  window.addEventListener('message', function(ev) {\n    if (!ev.data) return;\n    if (ev.data.type !== 'hh-iframe-height') return;\n    var f = document.getElementById('hh-calendar-iframe');\n    if (f && ev.source === f.contentWindow) {\n      f.style.height = ev.data.height + 'px';\n    }\n  });\n\n  \/\/ Hide every Chaty plugin element while modal is open. Chaty's\n  \/\/ stylesheet uses `display: block !important`, so a plain\n  \/\/ style.display='none' is overridden \u2014 must use setProperty with\n  \/\/ the third arg 'important' to win the cascade.\n  function setChatyHidden(hidden) {\n    var nodes = document.querySelectorAll('[id^=\"chaty\"], [class*=\"chaty\"]');\n    for (var i = 0; i < nodes.length; i++) {\n      var n = nodes[i];\n      if (hidden) {\n        n.style.setProperty('display', 'none', 'important');\n      } else {\n        n.style.removeProperty('display');\n      }\n    }\n  }\n\n  \/\/ Modal full-screen takeover. When the customer opens a tour modal,\n  \/\/ the iframe shrinks to viewport-size so position:fixed inside the\n  \/\/ iframe references the visible viewport (NOT the full ~3000px\n  \/\/ booking-calendar document).\n  window.addEventListener('message', function(e) {\n    if (e.origin !== 'https:\/\/calendar.happyholidays.am') return;\n    if (!e.data) return;\n    var iframe = document.getElementById('hh-calendar-iframe');\n    if (!iframe) return;\n\n    if (e.data.type === 'HH_MODAL_OPEN') {\n      document.body.style.overflow = 'hidden';\n      iframe.style.position = 'fixed';\n      iframe.style.top = '0';\n      iframe.style.left = '0';\n      iframe.style.width = '100%';\n      iframe.style.height = '100%';\n      iframe.style.zIndex = '9999';\n      setChatyHidden(true);\n    }\n\n    if (e.data.type === 'HH_MODAL_CLOSE') {\n      document.body.style.overflow = '';\n      iframe.style.position = '';\n      iframe.style.top = '';\n      iframe.style.left = '';\n      iframe.style.width = '100%';\n      iframe.style.zIndex = '';\n      iframe.style.height = (e.data.calendarHeight || 2036) + 'px';\n      setChatyHidden(false);\n      setTimeout(function() {\n        iframe.contentWindow.postMessage({ type: 'HH_PARENT_RESIZED' }, e.origin);\n      }, 100);\n    }\n  });\n})();\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-blank.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-20993","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/happyholidays.am\/ru\/wp-json\/wp\/v2\/pages\/20993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/happyholidays.am\/ru\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/happyholidays.am\/ru\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/happyholidays.am\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/happyholidays.am\/ru\/wp-json\/wp\/v2\/comments?post=20993"}],"version-history":[{"count":4,"href":"https:\/\/happyholidays.am\/ru\/wp-json\/wp\/v2\/pages\/20993\/revisions"}],"predecessor-version":[{"id":21137,"href":"https:\/\/happyholidays.am\/ru\/wp-json\/wp\/v2\/pages\/20993\/revisions\/21137"}],"wp:attachment":[{"href":"https:\/\/happyholidays.am\/ru\/wp-json\/wp\/v2\/media?parent=20993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}