PageSourceSearch

https://investors.healthlynked.com/wp-content/plugins/stock-market-charts/assets/js/app.min.js?ver=1.2.1

js healthlynked.com collected 2026-10-02 04:48:24 UTC 11,946 bytes, 10 lines download raw bytes

1/**
2 * Stock Market Charts
3 * ---------------------------------------------
4 * Version 1.2.1, built on Wednesday, September 4, 2019
5 * Copyright (c) Financial Apps and Plugins <[email protected]>. All rights reserved.
6 * Demo: https://financialplugins.com/products/stock-market-charts
7 * Purchase: https://codecanyon.net/item/stock-market-charts-for-wordpress/21154327?ref=financialtechnology
8 * Like: https://www.facebook.com/financialplugins/
9 */
10"use strict";var stockMarketChartsPlugin=function(e,a){function o(o,n,d,c,p){function u(a){if(t("addComparison",a),"undefined"!=typeof b)if(h(),e.inArray(a,y)==-1)e.ajax({url:smcGlobals.ajaxUrl,method:"post",dataType:"json",data:{action:smcGlobals.ajaxGetData,symbol:a,range:d,interval:c}}).done(function(e){if(t("response",e),e.success){y.push(a);var o={title:e.symbol,assetSymbol:a,compared:!0,fieldMappings:[{fromField:"value",toField:"value"},{fromField:"volume",toField:"volume"}],dataProvider:e.data,categoryField:"time"};b.dataSets.push(o),b.comparedDataSets.push(o),b.validateData(),f()}else setTimeout(function(){f()},3e3)});else{for(var o=0;o<b.dataSets.length;o++)b.dataSets[o].assetSymbol==a&&(b.dataSets[o].compared=!0);b.validateData(),f()}}function m(e){t("deleteComparison",e);for(var a=0;a<b.dataSets.length;a++)b.dataSets[a].assetSymbol==e&&(b.dataSets[a].compared=!1);b.validateData()}function h(){}function f(){}function g(e,a){var o;if("candlestick"==a.type){var t=AmCharts.formatNumber(e.values.open,{precision:-1,decimalSeparator:p.decimalSeparator||".",thousandsSeparator:p.thousandsSeparator||","},p.precision||2),r=AmCharts.formatNumber(e.values.high,{precision:-1,decimalSeparator:p.decimalSeparator||".",thousandsSeparator:p.thousandsSeparator||","},p.precision||2),l=AmCharts.formatNumber(e.values.low,{precision:-1,decimalSeparator:p.decimalSeparator||".",thousandsSeparator:p.thousandsSeparator||","},p.precision||2),s=AmCharts.formatNumber(e.values.close,{precision:-1,decimalSeparator:p.decimalSeparator||".",thousandsSeparator:p.thousandsSeparator||","},p.precision||2);o='<div class="amcharts-tooltip"><div>'+a.title+"</div><table><tbody><tr><td>"+(smcGlobals.text.open||"Open")+":</td><td><b>"+t+"</b></td></tr><tr><td>"+(smcGlobals.text.high||"High")+":</td><td><b>"+r+"</b></td></tr><tr><td>"+(smcGlobals.text.low||"Low")+":</td><td><b>"+l+"</b></td></tr><tr><td>"+(smcGlobals.text.close||"Close")+":</td><td><b>"+s+"</b></td></tr></tbody></table></div>"}else{var i=AmCharts.formatNumber(e.values.value,{precision:-1,decimalSeparator:p.decimalSeparator||".",thousandsSeparator:p.thousandsSeparator||","},p.precision||2);o='<div class="amcharts-tooltip">'+a.title+": <b>"+i+"</b></div>"}return o}var b,y=[],v=[],C=e("#"+o),S=((new Date).getUTCHours(),(new Date).getUTCMinutes(),{"1
10D":{period:"mm",count:300},"1W":{period:"DD",count:7},"2W":{period:"DD",count:14},"1M":{period:"MM",count:1},"3M":{period:"MM",count:3},"6M":{period:"MM",count:6},YTD:{period:"YTD"},"1Y":{period:"YYYY",count:1},"2Y":{period:"YYYY",count:2},"5Y":{period:"YYYY",count:5},ALL:{period:"MAX"}});for(var x in S)S.hasOwnProperty(x)&&("undefined"!=typeof smcGlobals.text.amCharts&&"undefined"!=typeof smcGlobals.text.amCharts.periods?S[x].label=smcGlobals.text.amCharts.periods[x]:S[x].label=x);p=p||{},t("chartSettings",n,d,c,p),C.css({width:p.width||"100%",height:p.height||"500px",fontSize:p.fontSize||14,color:p.color||"#383838",background:p.backgroundColor||"#fff"}),C.prepend('<div class="'+l+'-chart-comparison"> <select class="'+s+'" multiple="multiple"></select></div><div id="'+o+'-chart" class="'+l+'-chart"></div>');var T=C.find("."+s),G={type:"stock",language:smcGlobals.lang||"en",mouseWheelScrollEnabled:p.mouseWheelZoomEnabled||!1,categoryAxesSettings:{minPeriod:"mm",color:p.color||"#383838",gridColor:p.gridColor||"#e0e0e0",gridAlpha:p.gridAlpha||.8,gridThickness:"undefined"!=typeof p.gridThickness?p.gridThickness:1,groupToPeriods:["15mm","30mm","DD","WW","MM"],equalSpacing:!0,minHorizontalGap:100,autoGridCount:!0,dateFormats:[{period:"fff",format:"JJ:NN:SS"},{period:"ss",format:"JJ:NN:SS"},{period:"mm",format:"JJ:NN"},{period:"hh",format:"JJ:NN"},{period:"DD",format:"DD MMM"},{period:"WW",format:"DD MMM"},{period:"MM",format:"MMM YY"},{period:"YYYY",format:"YYYY"}]},dataSets:[{dataLoader:{url:smcGlobals.ajaxUrl+"?action="+smcGlobals.ajaxGetData+"&symbol="+n+"&range="+d+"&interval="+c,format:"json",postProcess:function(e,a,o){return t("response",e),e.data}},title:n,fieldMappings:[{fromField:"value",toField:"value"},{fromField:"volume",toField:"volume"}],categoryField:"time"}],panelsSettings:{usePrefixes:p.usePrefixes||!1,fontSize:p.fontSize||14,marginTop:p.marginTop||0,marginRight:p.marginRight||10,marginBottom:p.marginBottom||0,marginLeft:p.marginLeft||10,backgroundColor:p.backgroundColor,backgroundAlpha:0,startDuration:0,thousandsSeparator:p.thousandsSeparator||",",decimalSeparator:p.decimalSeparator||".",precision:p.precision||2,percentPrecision:p.precision||2,creditsPosition:"bottom-left"},panels:[{showCategoryAxis:!0,title:p.primaryPanelTitle||"Price",percentHeight:70,drawingIconsEnabled:!0,eraseAll:!0,stockGraphs:[{id:"mainGraph",type:p.primaryChartType||"smoothedLine",valueField:"value",lineColor:p.primaryLineColor||"#00842c",fillAlphas:p.primaryLineColorAlpha||.15,lineThickness:"undefined"!=typeof p.primaryLineThickness?p.primaryLineThickness:2,comparable:i,compareGraph:{type:p.primaryChartType&&"candlestick"!=p.primaryChartType?p.primaryChartType:"smoothedLine",fillAlphas:p.primaryLineColorAlpha||.15,lineThickness:"undefined"!=typeof p.primaryLineThickness?p.primaryLineThickness:2,balloonText:"[[title]]: <b>[[value]]</b>"},balloonFunction:g,compareGraphBalloonFunction:g,useDataSetColors:!1}],stockLegend:{enabled:"undefined"==typeof p.legendEnabled||p.legendEnabled,color:p.color||"#383838",fontSize:p.fontSize||14,backgroundColor:p.backgroundColor||"#fff",backgroundAlpha:0,useGraphSettings:!0,equalWidths:!1,valueWidth:150,valueText:"[[value]] ",valueTextRegular:"[[value]] ",valueTextComparing:"[[percents.value]]%",periodValueText:"[[value.close]]",periodValueTextRegular:"[[value.close]]",periodValueTextComparing:"[[percents.value.close]]%"},valueAxes:[{position:"right",color:p.color||"#383838",gridColor:p.gridColor||"#e0e0e0",gridAlpha:p.gridAlpha||.8,gridThickness:"undefined"!=typeof p.gridThickness?p.gridThickness:1}]},{title:p.secondaryPanelTitle||"Volume",percentHeight:30,precision:0,stockGraphs:[{valueField:"volume",type:p.secondaryChartType||"column",showBalloon:!0,lineColor:p.secondaryLineColor||"#00842c",fillAlphas:p.secondaryLineColorAlpha||.15,lineThickness:"undefined"!=typeof p.secondaryLineThickness?p.secondaryLineThickness:1,balloonText:"[[title]]: <b>[[value]]</b>",useDataSetColors:!1,comparable:i,periodValue:"Sum",compareGraph:{type:p.secondaryChartType||"column",fillAlphas:p.secondaryLineColorAlpha||.15,lineThickness:"undefined"!=typeof p.secondaryLineThickness?p.secondaryLineThickness:1,balloonText:"[[title]]: <b>[[value]]</b>"}}],stockLegend:{color:p.color||"#383838",valueText:"[[value]]",valueTextRegular:"[[value]]",valueTextComparing:"[[percents.value]]%",periodValueText:"[[value.close]]",periodValueTextRegular:"[[value.close]]",periodValueTextComparing:"[[percents.value.close]]%"},valueAxes:[{position:"right",color:p.color||"#383838",gridColor:p.gridColor||"#e0e0e0",gridAlpha:p.gridAlpha||.8,gridThickness:"undefined"!=typeof p.gridThickness?p.gridThickness:1}]}],chartScrollbarSettings:{graph:"mainGraph",graphType:"smoothedLine",enabled:"undefined"==typeof p.scrollbarEnabled||p.scrollbarEnabled,color:p.color||"#383838",backgroundColor:p.scrollbarBackgroun
10dColor||"#e8e8e8",backgroundAlpha:1,selectedBackgroundColor:p.scrollbarSelectedBackgroundColor||"#f7f7f7",selectedBackgroundAlpha:1,graphFillColor:p.scrollbarGraphFillColor||"#004c19",graphFillAlpha:1,selectedGraphFillColor:p.scrollbarSelectedGraphFillColor||"#00aa38",selectedGraphFillAlpha:1,gridColor:p.gridColor||"#e0e0e0",gridAlpha:p.gridAlpha||.8,gridThickness:"undefined"!=typeof p.gridThickness?p.gridThickness:1},chartCursorSettings:{enabled:"undefined"==typeof p.cursorEnabled||p.cursorEnabled,cursorColor:p.cursorColor||"#ba0000",cursorAlpha:p.cursorAlpha||.8,valueLineAlpha:p.cursorAlpha||.8,valueBalloonsEnabled:!0,graphBulletSize:1,valueLineBalloonEnabled:!0,valueLineEnabled:!0,categoryBalloonColor:p.cursorColor||"#ba0000",categoryBalloonAlpha:p.cursorAlpha||.8},periodSelector:{position:"top",periodsText:"",inputFieldsEnabled:!1,periods:[]},dataSetSelector:{position:""},comparedDataSets:[],"export":{enabled:"undefined"==typeof p.exportEnabled||p.exportEnabled,position:"top-right"},listeners:[{event:"init",method:function(){i&&T.show().stockMarketChartsPlugin().initAssetAutocomplete()}}]};"candlestick"==p.primaryChartType&&(G.panels[0].stockGraphs[0].openField="open",G.panels[0].stockGraphs[0].lowField="low",G.panels[0].stockGraphs[0].highField="high",G.panels[0].stockGraphs[0].closeField="value",G.panels[0].stockGraphs[0].proCandlesticks=!0,G.dataSets[0].fieldMappings.push({fromField:"open",toField:"open"}),G.dataSets[0].fieldMappings.push({fromField:"low",toField:"low"}),G.dataSets[0].fieldMappings.push({fromField:"high",toField:"high"}));for(var k="undefined"!=typeof p.periods?p.periods.split(","):["1W","1M","6M","1Y","ALL"],A=p.defaultPeriod||"1M",M=0;M<k.length;M++){var L=k[M];"undefined"!=typeof S[L]&&(G.periodSelector.periods[M]=S[L],L==A?G.periodSelector.periods[M].selected=!0:G.periodSelector.periods[M].selected=!1)}b=a.makeChart(o+"-chart",G),i&&T.on("change",function(){var a=e(this),o=a.val();if(o){var t=r(v,o),l=r(o,v);t.length&&m(t[0]),l.length&&u(l[0]),v=o}else{for(var s=0;s<v.length;s++)m(v[s]);v=[]}})}function t(){smcGlobals.debug&&console.log("SMC",arguments)}function r(e,a){return a?e.filter(function(e){return a.indexOf(e)<0}):[]}t("smcGlobals",smcGlobals);var l=smcGlobals.code,s=l+"-asset-autocomplete",i=!("undefined"!=typeof smcGlobals.comparisonEnabled&&"1"!=smcGlobals.comparisonEnabled);return"undefined"!=typeof smcGlobals.lang&&"undefined"!=typeof smcGlobals.text.amCharts&&"undefined"!=typeof smcGlobals.text.amCharts["export"]&&(a.translations["export"][smcGlobals.lang]=smcGlobals.text.amCharts["export"]),"undefined"!=typeof smcGlobals.lang&&"undefined"!=typeof smcGlobals.text.amCharts&&"undefined"!=typeof smcGlobals.text.amCharts.dataLoader&&(a.translations.dataLoader[smcGlobals.lang]=smcGlobals.text.amCharts.dataLoader),e.fn.stockMarketChartsPlugin=function(){var a=this,o=e(this);return{initAssetAutocomplete:function(){return a.select2({allowClear:!!o.attr("multiple"),placeholder:"undefined"!=typeof smcGlobals.text.select2?smcGlobals.text.select2.placeholder:"Symbol or asset name",containerCssClass:l+"-select2-container",dropdownCssClass:l+"-select2-dropdown",ajax:{url:smcGlobals.ajaxUrl,dataType:"json",delay:250,data:function(e){return{action:smcGlobals.ajaxSymbolAutocomplete,q:e.term}},processResults:function(e,a){return a.page=a.page||1,{results:e}},cache:!0},language:{noResults:function(){return"undefined"!=typeof smcGlobals.text.select2?smcGlobals.text.select2.search_not_found:"No results found"},errorLoading:function(){return"undefined"!=typeof smcGlobals.text.select2?smcGlobals.text.select2.search_error:"There was an error, please try again."},inputTooShort:function(){return"undefined"!=typeof smcGlobals.text.select2?smcGlobals.text.select2.search_short:"Enter at least 2 characters"},searching:function(){return"undefined"!=typeof smcGlobals.text.select2?smcGlobals.text.select2.searching:"Searching..."}},escapeMarkup:function(e){return e},minimumInputLength:1,templateResult:function(e){return e.loading?e.name:'<div class="smc-symbol-search-row">  <span class="smc-symbol-search-symbol">'+e.id+'</span>  <span class="smc-symbol-search-exch">'+e["class"]+" - "+e.exchange+"</span></div><div>"+e.name+"</div>"},templateSelection:function(e){return e.id}})}}},{buildChart:o,log:t}}(jQuery,AmCharts);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.