var companiesOldWidget = [1228]; // TC Widget options available /* * companyId : Number * noHandshake : Boolean (To set launchpad status to "ok" | default : true) * positionX : String ('left'/'right' | default : right) * positionY : String ('top'/'bottom' | default : bottom) * offset : Number (default : 30) * tooltip : Boolean (default : true) * oldTrigger : Boolean (default : false) */ // Widget Root var tcwRoot = 'https://titlecapture.com/'; (function (global) { // make a global object to store stuff in if(!global.tcWidget) { global.tcWidget = {}; }; var tcWidget = global.tcWidget; var vdate = new Date(); var vtime = vdate.getTime(); var widgetInfo; var x = sessionStorage.getItem('tqc'); var sessionInfo = JSON.parse(x); if(sessionInfo !== null && typeof parseInt(sessionInfo) === 'number') { widgetInfo = sessionInfo; } else { widgetInfo = window.parent.tclp_Option.q; } if (!companiesOldWidget.includes(~~widgetInfo.companyId)) { sessionStorage.setItem('tcwRoot', tcwRoot); // To keep track of which embeds we have already processed if(!tcWidget.processedScripts) { tcWidget.processedScripts = []; }; var processedScripts = tcWidget.processedScripts; if(!tcWidget.styleTags) { tcWidget.styleTags = []; }; var styleTags = tcWidget.styleTags; var offsetVal = (widgetInfo.offset || widgetInfo.offset ==0) ? widgetInfo.offset : 30; document.documentElement.style.setProperty('--tcwOffset', offsetVal+"px"); var widgetPosition = "widget"; if(styleTags.length == 0) { // add a style tag to the head var linkTag = document.createElement('link'); linkTag.href = tcwRoot + 'tcw/css/new/tcw-common.css?v=' + vtime; linkTag.type = 'text/css'; linkTag.rel = 'stylesheet'; linkTag.id = 'tcw-common-style'; document.getElementsByTagName('head')[0].appendChild(linkTag); } // Create a Tooltip var tcwBtnTooltip = document.createElement('iframe'); tcwBtnTooltip.id = 'tcWidgetTooltip'; tcwBtnTooltip.className = 'tcw-animated'; tcwBtnTooltip.scrolling= 'no'; tcwBtnTooltip.allowTransparency='true'; tcwBtnTooltip.frameBorder='0'; tcwBtnTooltip.style.background = 'transparent'; tcwBtnTooltip.style.border = 'none'; tcwBtnTooltip.style.opacity = '0'; tcwBtnTooltip.style.display = 'none'; tcwBtnTooltip.style.position = 'fixed'; tcwBtnTooltip.style.zIndex = '999999'; tcwBtnTooltip.style.width = '240px'; tcwBtnTooltip.style.height = '67px'; tcwBtnTooltip.style.minWidth = 'auto'; tcwBtnTooltip.style.minHeight = 'auto'; tcwBtnTooltip.style.maxWidth = 'none'; tcwBtnTooltip.style.maxHeight = 'none'; if ( widgetInfo.positionX && (widgetInfo.positionX == 'left' || widgetInfo.positionX == 'right') ){ tcwBtnTooltip.style[widgetInfo.positionX] = offsetVal+'px'; widgetPosition = widgetPosition + "_" + widgetInfo.positionX; } else { tcwBtnTooltip.style.right = offsetVal+'px'; widgetPosition = widgetPosition + "_right"; } if ( widgetInfo.positionY && (widgetInfo.positionY == 'top' || widgetInfo.positionY == 'bottom') ){ tcwBtnTooltip.style[widgetInfo.positionY] = (offsetVal+70)+'px'; widgetPosition = widgetPosition + "_" + widgetInfo.positionY; } else { tcwBtnTooltip.style.bottom = (offsetVal+70)+'px'; widgetPosition = widgetPosition + "_bottom"; } tcwBtnTooltip.className = tcwBtnTooltip.className + " " + widgetPosition; window.parent.tclp_Option.q['widgetPosition'] = widgetPosition; if ( widgetInfo.tooltip != false && widgetInfo.oldTrigger != true ) { document.body.appendChild(tcwBtnTooltip); var fontURI = ``; var cssTriggerTooltipURI = tcwRoot + `tcw/css/new/tcw-trigger.css?v=` + vtime; var iframeHTML_tooltip = ` `+ fontURI +`
Click here to generate Title Quotes, Seller Net Sheets and more.
`; tcwBtnTooltip.contentWindow.document.write(iframeHTML_tooltip); } // Create a Button var tcwBtn = document.createElement('iframe'); tcwBtn.id = 'tcWidgetBtn'; tcwBtn.className = 'tcw-animated'; tcwBtn.scrolling= 'no'; tcwBtn.allowTransparency='true'; tcwBtn.frameBorder='0'; tcwBtn.style.background = 'transparent'; tcwBtn.style.border = 'none'; tcwBtn.style.position = 'fixed'; tcwBtn.style.zIndex = '999999'; tcwBtn.style.width = '64px'; tcwBtn.style.height = '64px'; tcwBtn.style.minWidth = 'auto'; tcwBtn.style.minHeight = 'auto'; tcwBtn.style.maxWidth = 'none'; tcwBtn.style.maxHeight = 'none'; //Add Extra Class if (widgetPosition) { tcwBtn.className += ' ' + widgetPosition; } if (widgetInfo.oldTrigger == true) { tcwBtn.className += ' ' + 'tcWidgetBtnOld'; } if(widgetInfo.oldTrigger == true){ offsetVal = offsetVal - 10; } if ( widgetInfo.positionX && (widgetInfo.positionX == 'left' || widgetInfo.positionX == 'right') ){ tcwBtn.style[widgetInfo.positionX] = offsetVal+'px'; } else { tcwBtn.style.right = offsetVal+'px'; } if ( widgetInfo.positionY && (widgetInfo.positionY == 'top' || widgetInfo.positionY == 'bottom') ){ tcwBtn.style[widgetInfo.positionY] = offsetVal+'px'; } else { tcwBtn.style.bottom = offsetVal+'px'; } document.body.appendChild(tcwBtn); var tcwPopup = document.createElement('iframe'); tcwPopup.id = 'tcWidgetPopup'; tcwPopup.scrolling = 'no'; tcwPopup.className = widgetPosition; tcwPopup.allowTransparency='true'; tcwPopup.frameBorder='0'; tcwPopup.style.display = 'none'; tcwPopup.style.background = 'transparent'; tcwPopup.style.position = 'fixed'; tcwPopup.style.zIndex = '9999999'; tcwPopup.style.width = '380px'; tcwPopup.style.height = '566px'; tcwPopup.style.border = 'none'; tcwPopup.style.minWidth = 'auto'; tcwPopup.style.minHeight = 'auto'; tcwPopup.style.maxWidth = 'none'; tcwPopup.style.maxHeight = 'none'; var tcwPopupVerticalOffset = (widgetInfo.oldTrigger && widgetInfo.oldTrigger == true) ? 90 : 76; if ( widgetInfo.positionX && (widgetInfo.positionX == 'left' || widgetInfo.positionX == 'right') ){ tcwPopup.style[widgetInfo.positionX] = offsetVal+'px'; } else { tcwPopup.style.right = offsetVal+'px'; } if ( widgetInfo.positionY && (widgetInfo.positionY == 'top' || widgetInfo.positionY == 'bottom') ){ tcwPopup.style[widgetInfo.positionY] = (offsetVal + tcwPopupVerticalOffset)+'px'; } else { tcwPopup.style.bottom = (offsetVal + tcwPopupVerticalOffset)+'px'; } document.body.append(tcwPopup); let widgetHtml = ` Buyer Estimate Calculator - see how much it would cost to buy a home `; widgetHtml = widgetHtml.replace('', ''); tcwPopup.contentWindow.document.write(widgetHtml); var jsTriggerURI = tcwRoot + 'tcw/js/new/tcw-trigger.js?v=' + vtime; var cssTriggerURI = tcwRoot + 'tcw/css/new/tcw-trigger.css?v=' + vtime; var iframeHTML = ``; tcwBtn.contentWindow.document.write(iframeHTML); } })(this); // TC Widget options available /* * companyId : Number * noHandshake : Boolean (To set launchpad status to "ok" | default : true) * positionX : String ('left'/'right' | default : right) * positionY : String ('top'/'bottom' | default : bottom) * offset : Number (default : 30) * tooltip : Boolean (default : true) * oldTrigger : Boolean (default : false) */ var apiPath = 'https://api.titlecapture.com/api-30/'; var apiMainPath = 'https://main.titlecapture.com'; var rootPath = 'https://titlecapture.com/'; var tcwTpl = 'https://titlecapture.com/'; var apiNodePath = 'https://api-node.titlecapture.com/'; var faccIntegrationDown = '0'; var tcBasePath = 'titlecapture.com'; var tcUriScheme = 'https://'; var tcApiPhpQuotesAccessToken = 'TC_PROD_YqkgPWMZlJew70SrHS4LPmu6'; var whoami = 'production'; var companiesOldWidget = [1228]; (function (global) { // make a global object to store stuff in if(!global.tcWidget) { global.tcWidget = {}; }; var tcWidget = global.tcWidget; var vdate = new Date(); var vtime = vdate.getTime(); var widgetInfo; var x = sessionStorage.getItem('tqc'); var sessionInfo = JSON.parse(x); if(sessionInfo !== null && typeof parseInt(sessionInfo) === 'number') { widgetInfo = sessionInfo; } else { widgetInfo = window.parent.tclp_Option.q; } if (!companiesOldWidget.includes(~~widgetInfo.companyId)) { return; } sessionStorage.setItem('apiPath', apiPath); sessionStorage.setItem('apiMainPath', apiMainPath); sessionStorage.setItem('rootPath', rootPath); sessionStorage.setItem('apiNodePath', apiNodePath); sessionStorage.setItem('faccIntegrationDown', faccIntegrationDown); sessionStorage.setItem('tcBasePath', tcBasePath); sessionStorage.setItem('tcUriScheme', tcUriScheme); sessionStorage.setItem('tcApiPhpQuotesAccessToken', tcApiPhpQuotesAccessToken); sessionStorage.setItem('whoami', whoami); // To keep track of which embeds we have already processed if(!tcWidget.processedScripts) { tcWidget.processedScripts = []; }; var processedScripts = tcWidget.processedScripts; if(!tcWidget.styleTags) { tcWidget.styleTags = []; }; var styleTags = tcWidget.styleTags; var offsetVal = (widgetInfo.offset || widgetInfo.offset ==0) ? widgetInfo.offset : 30; document.documentElement.style.setProperty('--tcwOffset', offsetVal+"px"); var widgetPosition = "widget"; var scriptTags = document.getElementsByTagName('script'); for(var i = 0; i < scriptTags.length; i++) { var scriptTag = scriptTags[i]; //if ( scriptTag.id == 'tc_widget_js' && processedScripts.indexOf(scriptTag) < 0 ) { if ( scriptTag.id == 'tc_widget_js' ) { processedScripts.push(scriptTag); if(styleTags.length == 0) { // add a style tag to the head var linkTag = document.createElement('link'); linkTag.href = tcwTpl + 'tcw/css/tcw-common.css?v=' + vtime; linkTag.type = 'text/css'; linkTag.rel = 'stylesheet'; linkTag.id = 'tcw-common-style'; document.getElementsByTagName('head')[0].appendChild(linkTag); } // Create a Tooltip var tcwBtnTooltip = document.createElement('iframe'); tcwBtnTooltip.id = 'tcWidgetTooltip'; tcwBtnTooltip.className = 'tcw-animated'; tcwBtnTooltip.scrolling= 'no'; tcwBtnTooltip.allowTransparency='true'; tcwBtnTooltip.frameBorder='0'; tcwBtnTooltip.style.background = 'transparent'; tcwBtnTooltip.style.border = 'none'; tcwBtnTooltip.style.opacity = '0'; tcwBtnTooltip.style.position = 'fixed'; tcwBtnTooltip.style.zIndex = '999999'; tcwBtnTooltip.style.width = '240px'; tcwBtnTooltip.style.height = '67px'; tcwBtnTooltip.style.minHeight = 'auto'; //tcwBtnTooltip.style.right = '30px'; //tcwBtnTooltip.style.bottom = '100px'; if ( widgetInfo.positionX && (widgetInfo.positionX == 'left' || widgetInfo.positionX == 'right') ){ tcwBtnTooltip.style[widgetInfo.positionX] = offsetVal+'px'; widgetPosition = widgetPosition + "_" + widgetInfo.positionX; } else { tcwBtnTooltip.style.right = offsetVal+'px'; widgetPosition = widgetPosition + "_right"; } if ( widgetInfo.positionY && (widgetInfo.positionY == 'top' || widgetInfo.positionY == 'bottom') ){ tcwBtnTooltip.style[widgetInfo.positionY] = (offsetVal+70)+'px'; widgetPosition = widgetPosition + "_" + widgetInfo.positionY; } else { tcwBtnTooltip.style.bottom = (offsetVal+70)+'px'; widgetPosition = widgetPosition + "_bottom"; } tcwBtnTooltip.className = tcwBtnTooltip.className + " " + widgetPosition; window.parent.tclp_Option.q['widgetPosition'] = widgetPosition; if ( widgetInfo.tooltip != false && widgetInfo.oldTrigger != true ) { document.body.appendChild(tcwBtnTooltip); var fontURI = ''; var iframeHTML_tooltip = ''+ fontURI +'
Click here to generate Title Quotes, Seller Net Sheets and more.
'; tcwBtnTooltip.contentWindow.document.write(iframeHTML_tooltip); } // Create a Button var tcwBtn = document.createElement('iframe'); tcwBtn.id = 'tcWidgetBtn'; tcwBtn.className = 'tcw-animated'; tcwBtn.scrolling= 'no'; tcwBtn.allowTransparency='true'; tcwBtn.frameBorder='0'; tcwBtn.style.background = 'transparent'; tcwBtn.style.border = 'none'; tcwBtn.style.position = 'fixed'; tcwBtn.style.zIndex = '999999'; tcwBtn.style.width = '64px'; tcwBtn.style.height = '64px'; tcwBtn.style.minHeight = 'auto'; //Add Extra Class if (widgetPosition) { tcwBtn.className += ' ' + widgetPosition; } if (widgetInfo.oldTrigger == true) { tcwBtn.className += ' ' + 'tcWidgetBtnOld'; } if(widgetInfo.oldTrigger == true){ offsetVal = offsetVal - 10; } if ( widgetInfo.positionX && (widgetInfo.positionX == 'left' || widgetInfo.positionX == 'right') ){ tcwBtn.style[widgetInfo.positionX] = offsetVal+'px'; } else { tcwBtn.style.right = offsetVal+'px'; } if ( widgetInfo.positionY && (widgetInfo.positionY == 'top' || widgetInfo.positionY == 'bottom') ){ tcwBtn.style[widgetInfo.positionY] = offsetVal+'px'; } else { tcwBtn.style.bottom = offsetVal+'px'; } document.body.appendChild(tcwBtn); var jsURI = tcwTpl + 'tcw/js/tcw-launcher.js?v=' + vtime; var iframeHTML = '