{"id":142076,"date":"2024-04-24T11:24:19","date_gmt":"2024-04-24T15:24:19","guid":{"rendered":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/?page_id=142076"},"modified":"2024-04-24T11:24:20","modified_gmt":"2024-04-24T15:24:20","slug":"international-question-search","status":"publish","type":"page","link":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/international-question-search\/","title":{"rendered":"International Question Search"},"content":{"rendered":"<div class=\"wp-block-prc-block-roper-db-search\"><iframe src=\"https:\/\/ropercenter.cornell.edu\/pewglobal\/\" id=\"frameSec\"><\/iframe>\t\t\t<script>\n\t\t\t\t\t\/\/Allows react iframe to \"navigate\" to new URL without reloading the page and iframe\n\t\t\t\t\twindow.addEventListener(\n\t\t\t\t\t\t\"message\",\n\t\t\t\t\t\tfunction (event) {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tevent.origin === \"http:\/\/localhost:3000\" \/\/iFrame host\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\/\/Handle back button press\n\t\t\t\t\t\t\tif (\"backEvent\" in event.data) {\n\t\t\t\t\t\t\t\thistory.back();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\/\/Handle bookmarkable\n\t\t\t\t\t\t\t\tlet url =\n\t\t\t\t\t\t\t\twindow.location.href.split(\"?\")[0] +\n\t\t\t\t\t\t\t\t\"?\" +\n\t\t\t\t\t\t\t\tevent.data.searchParams;\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\turl != window.location.href &&\n\t\t\t\t\t\t\t\turl != window.location.href + \"?\"\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\thistory.pushState({ url: url }, \"\", url);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfalse\n\t\t\t\t\t);\n\t\t\t\t\t\/\/Allows browser back button to work without reloading page\n\t\t\t\t\twindow.addEventListener(\"popstate\", (event) => {\n\t\t\t\t\t\tlet iframe = document.getElementById(\"frameSec\");\n\t\t\t\t\t\tlet iframeWindow = iframe.contentWindow || iframe.contentDocument;\n\t\t\t\t\t\tlet newParams =\n\t\t\t\t\t\t\tlocation.href.split(\"?\").length > 1\n\t\t\t\t\t\t\t? location.href.split(\"?\")[1]\n\t\t\t\t\t\t\t: \"\";\n\t\t\t\t\t\tiframeWindow.postMessage(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsearchParams: newParams,\n\t\t\t\t\t\t\thistoryBack: true,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"http:\/\/localhost:3000\" \/\/iFrame Host\n\t\t\t\t\t\t);\n\t\t\t\t\t});\n\t\t\t\t\t\/\/ Passes URL params to iFrame\n\t\t\t\t\tlet iFrame = document.getElementById(\"frameSec\");\n\t\t\t\t\tlet newSrc =\n\t\t\t\t\tiFrame.src +\n\t\t\t\t\t(window.location.href.split(\"?\").length > 1\n\t\t\t\t\t\t? \"?\" + window.location.href.split(\"?\")[1]\n\t\t\t\t\t\t: \"\");\n\t\t\t\t\tif (iFrame.src != newSrc) {\n\t\t\t\t\t\tiFrame.src = newSrc;\n\t\t\t\t\t}\n\n\t\t\t<\/script>\n\t\t\t<script src=\"https:\/\/s3.amazonaws.com\/files.roper.center\/iframeResizer.contentWindow.js\"><\/script>\n\t\t\t<\/div>\n\n\n<style>iframe {border:0 !important;}<\/style>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":359,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"sub_headline":"","sub_title":"","_prc_public_revisions":[],"_ppp_expiration_hours":0,"_ppp_enabled":false,"ai_generated_summary":"","datacite_doi":"","datacite_doi_citation":"","_prc_seo_qr_attachment_id":0,"footnotes":""},"level_of_effort":[],"primary_audience":[],"information_type":[],"class_list":["post-142076","page","type-page","status-publish","hentry"],"_embeds":[],"table_of_contents":[],"datacite_doi":"","prc_seo_data":{"title":"International Question Search","description":"","og_title":"International Question Search","og_description":"","schema_type":"WebPage","noindex":false,"canonical_url":"","primary_terms":[],"custom_schema":[],"og_image":0,"indexnow_submitted_at":null,"gsc_index_status":null},"prepublish_checks":{"prc-image-alt-text":{"status":"complete","message":"No image blocks in content.","data":null}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/pages\/142076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/users\/359"}],"replies":[{"embeddable":true,"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/comments?post=142076"}],"version-history":[{"count":1,"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/pages\/142076\/revisions"}],"predecessor-version":[{"id":142077,"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/pages\/142076\/revisions\/142077"}],"wp:attachment":[{"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/media?parent=142076"}],"wp:term":[{"taxonomy":"level_of_effort","embeddable":true,"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/level_of_effort?post=142076"},{"taxonomy":"primary_audience","embeddable":true,"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/primary_audience?post=142076"},{"taxonomy":"information_type","embeddable":true,"href":"https:\/\/alpha.pewresearch.org\/pewresearch-org\/wp-json\/wp\/v2\/information_type?post=142076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}