/* Reset Shoguns header styles to theme */ .shogun-heading-component h1, .shogun-heading-component h2, .shogun-heading-component h3, .shogun-heading-component h4, .shogun-heading-component h5, .shogun-heading-component h6 { text-transform: uppercase; font-weight: 800; font-size: revert; } .shogun-heading-component h1 { font-size: 2.3125rem!important; line-height: 1.08108!important; } .shogun-heading-component h2 { font-size: 1.875rem!important; line-height: 1.2!important; } .shogun-heading-component h3 { font-size: 1.6875rem!important; line-height: 1.18519!important; } .shogun-heading-component h4 { font-size: 1.4375rem!important; line-height: 1.21739!important; } .shogun-heading-component h5 { font-size: 1.25rem!important; line-height: 1.2!important; } .shogun-heading-component h6 { font-size: 1rem!important; line-height: 1.25!important; } @media (min-width: 45em){ .shogun-heading-component h1 { font-size: 3.375rem!important; line-height: 1.18519!important; } .shogun-heading-component h2 { font-size: 2.875rem!important; line-height: 1.13043!important; } .shogun-heading-component h3 { font-size: 2.375rem!important; line-height: 1.15789!important; } .shogun-heading-component h4 { font-size: 1.75rem!important; line-height: 1.28571!important; } .shogun-heading-component h5 { font-size: 1.5rem!important; line-height: 1.16667!important; } .shogun-heading-component h6 { font-size: 1.25rem!important; line-height: 1.2!important; } } var ifr = document.getElementById("JotFormIFrame-211745288146056"); if (ifr) { var src = ifr.src; var iframeParams = []; if (window.location.href && window.location.href.indexOf("?") > -1) { iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf("?") + 1).split('&')); } if (src && src.indexOf("?") > -1) { iframeParams = iframeParams.concat(src.substr(src.indexOf("?") + 1).split("&")); src = src.substr(0, src.indexOf("?")) } iframeParams.push("isIframeEmbed=1"); ifr.src = src + "?" + iframeParams.join('&'); } window.handleIFrameMessage = function(e) { if (typeof e.data === 'object') { return; } var args = e.data.split(":"); if (args.length > 2) { iframe = document.getElementById("JotFormIFrame-" + args[(args.length - 1)]); } else { iframe = document.getElementById("JotFormIFrame"); } if (!iframe) { return; } switch (args[0]) { case "scrollIntoView": iframe.scrollIntoView(); break; case "setHeight": iframe.style.height = args[1] + "px"; break; case "collapseErrorPage": if (iframe.clientHeight > window.innerHeight) { iframe.style.height = window.innerHeight + "px"; } break; case "reloadPage": window.location.reload(); break; case "loadScript": if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; } var src = args[1]; if (args.length > 3) { src = args[1] + ':' + args[2]; } var script = document.createElement('script'); script.src = src; script.type = 'text/javascript'; document.body.appendChild(script); break; case "exitFullscreen": if (window.document.exitFullscreen) window.document.exitFullscreen(); else if (window.document.mozCancelFullScreen) window.document.mozCancelFullScreen(); else if (window.document.mozCancelFullscreen) window.document.mozCancelFullScreen(); else if (window.document.webkitExitFullscreen) window.document.webkitExitFullscreen(); else if (window.document.msExitFullscreen) window.document.msExitFullscreen(); break; } var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false; if(isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) { var urls = {"docurl":encodeURIComponent(document.URL),"referrer":encodeURIComponent(document.referrer)}; iframe.contentWindow.postMessage(JSON.stringify({"type":"urls","value":urls}), "*"); } }; window.isPermitted = function(originUrl, whitelisted_domains) { var url = document.createElement('a'); url.href = originUrl; var hostname = url.hostname; var result = false; if( typeof hostname !== 'undefined' ) { whitelisted_domains.forEach(function(element) { if( hostname.slice((-1 * element.length - 1)) === '.'.concat(element) || hostname === element ) { result = true; } }); return result; } } if (window.addEventListener) { window.addEventListener("message", handleIFrameMessage, false); } else if (window.attachEvent) { window.attachEvent("onmessage", handleIFrameMessage); }