load crypto and stock symbols onto text field html

This commit is contained in:
Justin 2023-07-10 16:24:45 +08:00 committed by GitHub
parent b615240a48
commit a39279fee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2826,3 +2826,65 @@ function updateSelectedMsg(){
}
// get stock portfolio values
function getStockSymbol(value) {
let stock_symbol = value;
const stock_thing = document.getElementById("inputText3");
// const the_msg = document.getElementById("inputText14");
// const t_color = document.getElementById("inputScrollSpeed16");
// const b_color = document.getElementById("inputScrollSpeed19");
// const t_size = document.getElementById("inputScrollSpeed17");
stock_thing.value = stock_symbol;
// fetch("/fetchCustomMsg", {
// method: "POST",
// body: JSON.stringify(messaged),
// })
// .then(response => response.json())
// .then(data => {
// // Update the elements with the retrieved information
// the_msg.value = data.text;
// t_color.value = data.text_colour;
// b_color.value = data.background_colour;
// t_size.value = data.size;
// theIndexOfMsg = data.index;
// })
// .catch(error => {
// console.error('Error:', error);
// });
}
// get crypto portfolio values
function getCryptoSymbol(value) {
let crypto_symbol = value;
const crypto_thing = document.getElementById("inputText4");
// const the_msg = document.getElementById("inputText14");
// const t_color = document.getElementById("inputScrollSpeed16");
// const b_color = document.getElementById("inputScrollSpeed19");
// const t_size = document.getElementById("inputScrollSpeed17");
crypto_thing.value = crypto_symbol;
// fetch("/fetchCustomMsg", {
// method: "POST",
// body: JSON.stringify(messaged),
// })
// .then(response => response.json())
// .then(data => {
// // Update the elements with the retrieved information
// the_msg.value = data.text;
// t_color.value = data.text_colour;
// b_color.value = data.background_colour;
// t_size.value = data.size;
// theIndexOfMsg = data.index;
// })
// .catch(error => {
// console.error('Error:', error);
// });
}