Skip to content

Commit b68bd6d

Browse files
committed
fetch fixes
1 parent d05250f commit b68bd6d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pages/graph_prediction.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
alphaCloses.reverse();
7878

7979
// Fetch LSTM prediction data
80-
const lstmResponse = await fetch(`http://localhost:8017/api/lstm/${symbol}`);
80+
const lstmResponse = await fetch(`https://csa-ai.stu.nighthawkcodingsociety.com/api/lstm/${symbol}`);
8181
const lstmData = await lstmResponse.json();
8282

8383
let lstmTimes = [];

pages/statslive.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ <h2>Volume: <span class="font-bold">${volume}</span></h2>
125125
const data = response.data;
126126

127127
// Display stock info
128+
129+
// feature in testing: <button onclick="getAdditionalStockInfo()" class="btn">Get Additional Information</button>
130+
128131
const changeColor = data.d > 0 ? 'green' : 'red';
129132
document.getElementById("stockInfo").innerHTML = `
130133
<h2><b>Stock Information:</b></h2>
@@ -139,7 +142,6 @@ <h2><b>Stock Information:</b></h2>
139142
</ul>
140143
<p><br>
141144
</p>
142-
<button onclick="getAdditionalStockInfo()" class="btn">Get Additional Information</button>
143145
`;
144146
} catch (error) {
145147
console.error(error);
@@ -294,7 +296,7 @@ <h2><b>Additional Information</b></h2>
294296

295297
<!-- carousel slider with live updating data -->
296298

297-
<div class="carousel rounded-box">
299+
<!-- <div class="carousel rounded-box">
298300
<div class="carousel-item">
299301
<div id="CarouselMETA"></div>
300302
</div>
@@ -317,4 +319,4 @@ <h2><b>Additional Information</b></h2>
317319
<div id="CarouselMU"></div>
318320
</div>
319321
</div>
320-
322+
-->

0 commit comments

Comments
 (0)