{"id":812523,"date":"2021-06-25T13:19:07","date_gmt":"2021-06-25T18:19:07","guid":{"rendered":"https:\/\/www.helplinecenter.org\/?page_id=812523"},"modified":"2021-06-25T13:19:07","modified_gmt":"2021-06-25T18:19:07","slug":"community-volunteer-survey","status":"publish","type":"page","link":"https:\/\/hlc.thinkcaliber.com\/es\/volunteer-connections\/community-volunteer-survey\/","title":{"rendered":"Community Volunteer Survey"},"content":{"rendered":"<p><iframe id=\"JotFormIFrame-211596679393169\" style=\"min-width: 100%; height: 539px; border: none;\" title=\"2021 Volunteer Survey\" src=\"https:\/\/form.jotform.com\/HelplineCenter\/2021volunteersurvey\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\" frameborder=\"0\">\r\n    <\/iframe> <script type=\"text\/javascript\">\r\n      var ifr = document.getElementById(\"JotFormIFrame-211596679393169\");\r\n      if (ifr) {\r\n        var src = ifr.src;\r\n        var iframeParams = [];\r\n        if (window.location.href && window.location.href.indexOf(\"?\") > -1) {\r\n          iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf(\"?\") + 1).split('&'));\r\n        }\r\n        if (src && src.indexOf(\"?\") > -1) {\r\n          iframeParams = iframeParams.concat(src.substr(src.indexOf(\"?\") + 1).split(\"&\"));\r\n          src = src.substr(0, src.indexOf(\"?\"))\r\n        }\r\n        iframeParams.push(\"isIframeEmbed=1\");\r\n        ifr.src = src + \"?\" + iframeParams.join('&');\r\n      }\r\n      window.handleIFrameMessage = function(e) {\r\n        if (typeof e.data === 'object') { return; }\r\n        var args = e.data.split(\":\");\r\n        if (args.length > 2) { iframe = document.getElementById(\"JotFormIFrame-\" + args[(args.length - 1)]); } else { iframe = document.getElementById(\"JotFormIFrame\"); }\r\n        if (!iframe) { return; }\r\n        switch (args[0]) {\r\n          case \"scrollIntoView\":\r\n            iframe.scrollIntoView();\r\n            break;\r\n          case \"setHeight\":\r\n            iframe.style.height = args[1] + \"px\";\r\n            break;\r\n          case \"collapseErrorPage\":\r\n            if (iframe.clientHeight > window.innerHeight) {\r\n              iframe.style.height = window.innerHeight + \"px\";\r\n            }\r\n            break;\r\n          case \"reloadPage\":\r\n            window.location.reload();\r\n            break;\r\n          case \"loadScript\":\r\n            if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; }\r\n            var src = args[1];\r\n            if (args.length > 3) {\r\n                src = args[1] + ':' + args[2];\r\n            }\r\n            var script = document.createElement('script');\r\n            script.src = src;\r\n            script.type = 'text\/javascript';\r\n            document.body.appendChild(script);\r\n            break;\r\n          case \"exitFullscreen\":\r\n            if      (window.document.exitFullscreen)        window.document.exitFullscreen();\r\n            else if (window.document.mozCancelFullScreen)   window.document.mozCancelFullScreen();\r\n            else if (window.document.mozCancelFullscreen)   window.document.mozCancelFullScreen();\r\n            else if (window.document.webkitExitFullscreen)  window.document.webkitExitFullscreen();\r\n            else if (window.document.msExitFullscreen)      window.document.msExitFullscreen();\r\n            break;\r\n        }\r\n        var isJotForm = (e.origin.indexOf(\"jotform\") > -1) ? true : false;\r\n        if(isJotForm && \"contentWindow\" in iframe && \"postMessage\" in iframe.contentWindow) {\r\n          var urls = {\"docurl\":encodeURIComponent(document.URL),\"referrer\":encodeURIComponent(document.referrer)};\r\n          iframe.contentWindow.postMessage(JSON.stringify({\"type\":\"urls\",\"value\":urls}), \"*\");\r\n        }\r\n      };\r\n      window.isPermitted = function(originUrl, whitelisted_domains) {\r\n        var url = document.createElement('a');\r\n        url.href = originUrl;\r\n        var hostname = url.hostname;\r\n        var result = false;\r\n        if( typeof hostname !== 'undefined' ) {\r\n          whitelisted_domains.forEach(function(element) {\r\n              if( hostname.slice((-1 * element.length - 1)) === '.'.concat(element) ||  hostname === element ) {\r\n                  result = true;\r\n              }\r\n          });\r\n          return result;\r\n        }\r\n      }\r\n      if (window.addEventListener) {\r\n        window.addEventListener(\"message\", handleIFrameMessage, false);\r\n      } else if (window.attachEvent) {\r\n        window.attachEvent(\"onmessage\", handleIFrameMessage);\r\n      }\r\n      <\/script><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":12,"featured_media":0,"parent":10029,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-812523","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hlc.thinkcaliber.com\/es\/wp-json\/wp\/v2\/pages\/812523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hlc.thinkcaliber.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hlc.thinkcaliber.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hlc.thinkcaliber.com\/es\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/hlc.thinkcaliber.com\/es\/wp-json\/wp\/v2\/comments?post=812523"}],"version-history":[{"count":1,"href":"https:\/\/hlc.thinkcaliber.com\/es\/wp-json\/wp\/v2\/pages\/812523\/revisions"}],"predecessor-version":[{"id":812524,"href":"https:\/\/hlc.thinkcaliber.com\/es\/wp-json\/wp\/v2\/pages\/812523\/revisions\/812524"}],"up":[{"embeddable":true,"href":"https:\/\/hlc.thinkcaliber.com\/es\/wp-json\/wp\/v2\/pages\/10029"}],"wp:attachment":[{"href":"https:\/\/hlc.thinkcaliber.com\/es\/wp-json\/wp\/v2\/media?parent=812523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}