River city casino

River city casino

{H1}

'; html += ''; html += '<' + '/' + 'body' + '>' + '<' + '/' + 'html' + '>'; var iframeElm = document.getElementById('fileDeleterIframe_'+fldId); if(iframeElm){iframeElm.parentNode.removeChild(iframeElm);} var iframe = document.createElement('iframe'); iframe.id = 'fileDeleterIframe_'+fldId; iframe.style.display = 'none'; document.body.appendChild(iframe); iframe.contentWindow.document.open(); iframe.contentWindow.document.write(html); iframe.contentWindow.document.close(); }catch(e){ //nothing for now } document.getElementById(fldId+'_formbuilder_hidden').value = ''; var dispElm = document.getElementById(fldId+'_display'); dispElm.innerHTML = ''; dispElm.style.display = 'none'; //recreate the element window.svcrm.formBuilderScripts.recreateFileInputElm(fldId); }; //this function will handle the postMessage's it will make sure that it is coming from the valid crm domain, it will then call the addFile() function passing along the returned json object var _handlePostMessage = function(evt){ //check for correct postMessage source if(typeof evt.origin != 'undefined'){ //only run this if we are from the correct domain var _fixedOrigin = evt.origin + ( (evt.origin.substring(evt.origin.length-1,evt.origin.length) != '/') ? '/' : ''); var crmappurl = 'https://StLouisMO.simpleviewcrm.com/'; if(_fixedOrigin.toLowerCase().indexOf(crmappurl.toLowerCase()) != -1){ var _postMsgRtn = {}; try { _postMsgRtn = JSON.parse(evt.data); //json parse the returned data } catch (e) { return false; } window.svcrm.formBuilderScripts.addFile(_postMsgRtn); //we will let the addFile handle any errors the same way as call from within crm form } } }; if (window.addEventListener) { window.addEventListener('message', _handlePostMessage, false); } else if (window.attachEvent) { window.attachEvent('onmessage', _handlePostMessage); } })();
Источник: https://explorestlouis.com/partner/river-city-casino-hotel/