Host-customized fork of https://github.com/tecnovert/basicswap/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
30 KiB
1 line
30 KiB
2 years ago
|
"use strict";!function(){if(!window.TradingView||!window.TradingView.host||window.TradingView.reoloadTvjs){var e,t,o,i,n,r,s,a={"color-gull-gray":"#9db2bd","color-brand":"#2962FF","color-brand-hover":"#1E53E5","color-brand-active":"#1848CC"},d="-apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif",l={host:null==window.location.host.match(/tradingview\.com|pyrrosinvestment\.com/i)?"https://s.tradingview.com":"https://www.tradingview.com",ideasHost:"https://www.tradingview.com",chatHost:"https://www.tradingview.com",widgetHost:"https://www.tradingview-widget.com",getHost:function(e){return e.useWidgetHost?l.widgetHost:l.host},embedStylesForCopyright:function(){var e=document.createElement("style");return e.innerHTML=".tradingview-widget-copyright {font-size: 13px !important; line-height: 32px !important; text-align: center !important; vertical-align: middle !important; font-family: "+d+" !important; color: "+a["color-gull-gray"]+" !important;} .tradingview-widget-copyright .blue-text {color: "+a["color-brand"]+" !important;} .tradingview-widget-copyright a {text-decoration: none !important; color: "+a["color-gull-gray"]+" !important;} .tradingview-widget-copyright a:visited {color: "+a["color-gull-gray"]+" !important;} .tradingview-widget-copyright a:hover .blue-text {color: "+a["color-brand-hover"]+" !important;} .tradingview-widget-copyright a:active .blue-text {color: "+a["color-brand-active"]+" !important;} .tradingview-widget-copyright a:visited .blue-text {color: "+a["color-brand"]+" !important;}",e},embedStylesForFullHeight:function(e,t,o){var i=t?"calc("+e+" - 32px)":e,n=document.querySelector("#"+o);n.parentElement.style.height=i,n.style.height="100%"},gId:function(){return"tradingview_"+(1048576*(1+Math.random())|0).toString(16).substring(1)},isPersentHeight:function(e){return"%"===e},getSuffix:function(e){var t=e.toString().match(/(%|px|em|ex)/);return t?t[0]:"px"},hasCopyright:function(e){var t=document.getElementById(e),o=t&&t.parentElement;return!!o&&!!o.querySelector(".tradingview-widget-copyright")},calculateWidgetHeight:function(e,t){var o=parseInt(e),i=this.getSuffix(e),n=this.isPersentHeight(i),r=t&&this.hasCopyright(t);return n&&t&&(this.embedStylesForFullHeight(o+i,r,t),r)?100+i:r?"calc("+o+i+" - 32px)":o+i},onready:function(e){window.addEventListener?window.addEventListener("DOMContentLoaded",e,!1):window.attachEvent("onload",e)},css:function(e){var t,o=document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:(t=document.createTextNode(e),i.appendChild(t)),o.appendChild(i)},bindEvent:function(e,t,o){e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent&&e.attachEvent("on"+t,o)},unbindEvent:function(e,t,o){e.removeEventListener?e.removeEventListener(t,o,!1):e.detachEvent&&e.detachEvent("on"+t,o)},cloneSimpleObject:function(e){if(null==e||"object"!=typeof e)return e;var t=e.constructor();for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isMobileDevice:(e={Android:/Android/i.test(navigator.userAgent),BlackBerry:/BlackBerry/i.test(navigator.userAgent),iOS:/iPhone|iPad|iPod/i.test(navigator.userAgent),Opera:/Opera Mini/i.test(navigator.userAgent)},e.any=e.Android||e.BlackBerry||e.iOS||e.Opera,e),generateUtmForUrlParams:function(e){return"utm_source="+encodeURI(window.location.hostname)+"&utm_medium="+(l.hasCopyright(e.container)?"widget_new":"widget")+(e.type?"&utm_campaign="+e.type:"")+(e.type&&"chart"===e.type?"&utm_term="+encodeURIComponent(e.symbol):"")},WidgetAbstract:function(){},MiniWidget:function(e){this.id=l.gId(),this.options={whitelabel:e.whitelabel||"",width:l.WidgetAbstract.prototype.fixSize(e.width)||300,height:l.WidgetAbstract.prototype.fixSize(e.height)||400,symbols:e.symbols,tabs:e.tabs||"",symbols_description:e.symbols_description||"",customer:e.customer||"",container:e.container_id||"",greyText:e.greyText||"",large_chart_url:e.large_chart_url||"",large_chart_target:e.large_chart_target||"",gridLine
|