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 +`