var qsProxy = {}; function FrameBuilder(formId,appendTo,initialHeight,iframeCode,title,embedStyleJSON){this.formId=formId;this.initialHeight=initialHeight;this.iframeCode=iframeCode;this.frame=null;this.timeInterval=200;this.appendTo=appendTo||false;this.formSubmitted=0;this.frameMinWidth='100%';this.defaultHeight='';this.createFrame=function(){this.iframeDomId=document.getElementById(this.formId)?this.formId+'_'+new Date().getTime():this.formId;if(typeof $jot!=='undefined'){var iframe=document.getElementById("240665670014149");var parent=$jot(iframe).closest('.jt-feedback.u-responsive-lightbox');if(parent){this.iframeDomId='lightbox-'+this.iframeDomId;}} var iframe=document.createElement('iframe');var titleEscaped=title.replace(/[\\"']/g,'\\$&').replace(/&/g,'&');var parentURL=window.location.href;var queryParameters='';if(parentURL&&parentURL.indexOf('?')>-1){queryParameters=parentURL.substring(parentURL.indexOf('?')+1).split('&');queryParameters=queryParameters.map(x=>{const initialValue=x.substring(x.indexOf('=')+1);const encodedValue=encodeURIComponent(decodeURIComponent(initialValue));return x.replace(initialValue,encodedValue);}).join('&');} queryParameters=`?${queryParameters?`${queryParameters}&`:''}parentURL=${encodeURIComponent(parentURL)}&jsForm=true`;Object.entries(FrameBuilder.get).forEach(([key,value])=>{if(typeof value==='object'){Object.entries(value).forEach(([valueKey,valueVal])=>{valueVal=encodeURIComponent(valueVal);queryParameters+=`&${key}[${valueKey}]=${valueVal}`;})}else{value=encodeURIComponent(value);queryParameters+=`&${key}=${value}`;}});iframe.title=titleEscaped;iframe.src=`https://form.jotform.com/240665670014149${queryParameters}`;iframe.allowtransparency=true;iframe.allow='geolocation; microphone; camera; fullscreen';iframe.name=this.formId;iframe.id=this.iframeDomId;iframe.style.width='10px';iframe.style.minWidth=this.frameMinWidth;iframe.style.display='block';iframe.style.overflow='hidden';iframe.style.height=this.initialHeight+'px';iframe.style.border='none';iframe.scrolling='no';if(this.appendTo===false){var jsformScript=document.querySelector('script[src*="jsform/'+this.formId+'"]:not([data-iframe-appended])');var scriptLocatedInHead=!!jsformScript.closest('head');if(scriptLocatedInHead){var isBodyExists=!!document.body;if(isBodyExists){document.body.appendChild(iframe);}else{document.addEventListener('DOMContentLoaded',function(){if(document.body){document.body.appendChild(iframe);}else{console.log('No body element found to append the iframe');}});}}else{jsformScript.parentNode.insertBefore(iframe,jsformScript.nextSibling);} jsformScript.dataset.iframeAppended=true;}else{document.getElementById(this.appendTo).appendChild(iframe);}};this.createFrame();} FrameBuilder.get=qsProxy||[];var initialHeight="LEGACY"==='CARD'?640:539;var i240665670014149=new FrameBuilder("240665670014149",false,initialHeight,null,"Workshop Registration Form 2024",Array);var permittedDomains=[];try{var renderURLDomain=new URL("https://form.jotform.com/240665670014149").hostname;permittedDomains=[renderURLDomain];}catch(e){permittedDomains=['jotform.com','jotform.pro'];} (function(){window.handleIFrameMessage=function(e){if(!e.data||!e.data.split)return;var args=e.data.split(":");if(args[2]!="240665670014149"){return;} var iframe=document.getElementById("240665670014149");if(!iframe){return};switch(args[0]){case"scrollIntoView":if(!("nojump"in FrameBuilder.get)){iframe.scrollIntoView();} break;case"setHeight":var height=args[1]+"px";if(window.jfDeviceType==='mobile'&&typeof $jot!=='undefined'){var parent=$jot(iframe).closest('.jt-feedback.u-responsive-lightbox');if(parent){height='100%';}} iframe.style.height=height break;case"setMinHeight":iframe.style.minHeight=args[1]+"px";break;case"collapseErrorPage":if(iframe.clientHeight>window.innerHeight){iframe.style.height=window.innerHeight+"px";} break;case"reloadPage":if(iframe){location.reload();} break;case"removeIframeOnloadAttr":iframe.removeAttribute("onload");break;case"loadScript":if(!window.isPermitted(e.origin,permittedDomains)){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;case'setDeviceType':window.jfDeviceType=args[1];break;case"backgroundStyles":const backgroundStyles=new URLSearchParams(args[1]);backgroundStyles.forEach(function(value,key){iframe.style[key]=value;});var doc=iframe.contentDocument?iframe.contentDocument:(iframe.contentWindow.document||iframe.document);doc.documentElement.style.background='none';break;} var isJotForm=window.isPermitted(e.origin,permittedDomains);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;}};window.addEventListener("message",handleIFrameMessage,false);})();