Relative Content

Tag Archive for javascripthtml

Read text file and put result to innerHTML?

I want to use JavaScript to change the text of an element with Id ‘foo’.
The text it should change to should be taken from a file titled ‘bar.txt’ (can also be any other file format, as long as I get a string from the text inside.)

Read text file and put result to innerHTML?

I want to use JavaScript to change the text of an element with Id ‘foo’.
The text it should change to should be taken from a file titled ‘bar.txt’ (can also be any other file format, as long as I get a string from the text inside.)

Tradingview Widget Set Different colors to differnt moving average

function LoadCharts() { let symbol = document.getElementById(‘pairs’).value; // List of symbols for each chart const symbols = [‘BTCUSDT.P’, ‘ETHUSDT.P’, ‘BCHUSDT.P’, ‘XRPUSDT.P’, ‘LTCUSDT.P’, ‘TRXUSDT.P’, ‘ETCUSDT.P’, ‘LINKUSDT.P’, ‘XLMUSDT.P’, ‘ADAUSDT.P’, ‘XMRUSDT.P’, ‘DASHUSDT.P’, ‘ZECUSDT.P’, ‘BNBUSDT.P’, ‘ATOMUSDT.P’, ‘VETUSDT.P’, ‘NEOUSDT.P’, ‘QTUMUSDT.P’, ‘IOSTUSDT.P’, ‘THETAUSDT.P’, ‘KNCUSDT.P’, ‘ZRXUSDT.P’, ‘COMPUSDT.P’, ‘OMGUSDT.P’, ‘DOGEUSDT.P’, ‘SXPUSDT.P’, ‘KAVAUSDT.P’, ‘BANDUSDT.P’, ‘RLCUSDT.P’, ‘MKRUSDT.P’, ‘DOTUSDT.P’, ‘DEFIUSDT.P’, ‘YFIUSDT.P’, ‘BALUSDT.P’, ‘TRBUSDT.P’, ‘RUNEUSDT.P’, ‘SUSHIUSDT.P’, ‘EGLDUSDT.P’, […]