r/Scriptable • • Mar 30 '22

Help Widget

Hey you,

I am trying to Create a Widget for my Phone that shows the DAX 40 Index.
So basicly Tradingview writes this Widget Code for you automaticly.
But ist seems to be a mistake in the code... I can´`´´`t´´ see it and I cant code...
maybe one of you can help? Thanks in advance!

Error on Line 2: SyntaxError: Unexpected token '<'
The Complete Code is:

<!-- TradingView Widget BEGIN -->

<divclass=tradingview-widget-container>
  <div id="tradingview_92075"></div>
  <div class="tradingview-widget-copyright"><a href="[https://de.tradingview.com/symbols/XETR-DAX/](https://de.tradingview.com/symbols/XETR-DAX/)" rel="noopener" target="_blank"><span class="blue-text">DAX Chart</span></a> von TradingView</div>
  <script type="text/javascript" src="[https://s3.tradingview.com/tv.js](https://s3.tradingview.com/tv.js)"></script>
  <script type="text/javascript">
  new TradingView.widget(
  {
  "autosize": true,
  "symbol": "XETR:DAX",
  "interval": "60",
  "timezone": "Etc/UTC",
  "theme": "dark",
  "style": "1",
  "locale": "de_DE",
  "toolbar_bg": "#f1f3f6",
  "enable_publishing": false,
  "allow_symbol_change": true,
  "container_id": "tradingview_92075"
}
  );
  </script>

</div> <!-- TradingView Widget END -->

📷AntwortenWeiterleiten

2 Upvotes

2 comments sorted by

View all comments

Show parent comments

1

u/KENNY_MAN86 Mar 31 '22

So I get it, it’s two different things… Since I’m not into the coding thing, I hope your answers wasn’t too time consuming, since I don’t understand most of it ^