main.py
CHANGED
|
@@ -49,6 +49,14 @@ function handle_post() {
|
|
| 49 |
messages_input = $( "input" ).last().val()
|
| 50 |
alert(messages_input);
|
| 51 |
console.log(messages_input);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
setTimeout(load, 1000);
|
|
|
|
| 49 |
messages_input = $( "input" ).last().val()
|
| 50 |
alert(messages_input);
|
| 51 |
console.log(messages_input);
|
| 52 |
+
res = JSON.parse(messages_input);
|
| 53 |
+
//var marker = L.marker([51.5, -0.09]).addTo(map);
|
| 54 |
+
|
| 55 |
+
var rec_list = res['recommendations']
|
| 56 |
+
|
| 57 |
+
alert(messages_input);
|
| 58 |
+
console.log(messages_input);
|
| 59 |
+
|
| 60 |
}
|
| 61 |
|
| 62 |
setTimeout(load, 1000);
|