Spaces:
Sleeping
Sleeping
Commit
·
b66d3b7
1
Parent(s):
ff97624
Update static/js/app.js
Browse files- static/js/app.js +2 -0
static/js/app.js
CHANGED
@@ -163,6 +163,7 @@ function createDownloadLink(blob) {
|
|
163 |
// Realiza una solicitud Fetch al servidor para obtener el contenido din�mico
|
164 |
//fetch('/obtener_contenido')
|
165 |
fetch('/set_condition/sunny', { method: 'GET'})
|
|
|
166 |
.then(response => response.json())
|
167 |
.then(data => {
|
168 |
//const condition = getCookie('condition');
|
@@ -171,6 +172,7 @@ function createDownloadLink(blob) {
|
|
171 |
.then(response => response.json())
|
172 |
.then(data => {
|
173 |
const condition = data.condition;
|
|
|
174 |
// Accede al contenido obtenido del servidor y haz lo que necesites
|
175 |
//var condition = data.condition;
|
176 |
console.log(condition);
|
|
|
163 |
// Realiza una solicitud Fetch al servidor para obtener el contenido din�mico
|
164 |
//fetch('/obtener_contenido')
|
165 |
fetch('/set_condition/sunny', { method: 'GET'})
|
166 |
+
console.log("ta dentro")
|
167 |
.then(response => response.json())
|
168 |
.then(data => {
|
169 |
//const condition = getCookie('condition');
|
|
|
172 |
.then(response => response.json())
|
173 |
.then(data => {
|
174 |
const condition = data.condition;
|
175 |
+
console.log("se supone que coge valor de condition")
|
176 |
// Accede al contenido obtenido del servidor y haz lo que necesites
|
177 |
//var condition = data.condition;
|
178 |
console.log(condition);
|