I am having trouble inserting JavaScript code in the sidebar.

Viewed 236

I am having trouble inserting JavaScript code in the sidebar.
The following code does not work. How do I need to rewrite it?

<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container">
  <div class="tradingview-widget-container__widget"></div>
  <div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/" rel="noopener nofollow" target="_blank"><span class="blue-text">Track all markets on TradingView</span></a></div>
  <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-events.js" async>
  {
  "width": "100%",
  "height": "100%",
  "colorTheme": "light",
  "isTransparent": false,
  "locale": "en",
  "importanceFilter": "0,1",
  "countryFilter": "us,eu,it,nz,ch,au,fr,jp,za,tr,ca,de,mx,es,gb"
}
  </script>
</div>
<!-- TradingView Widget END -->
1 Answers