Skip to content

Commit

Permalink
That worked. Now let's get experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-jay-peper committed Sep 18, 2024
1 parent 4570875 commit 195dbc4
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions socratesuk2024/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h3>Milton Hill House map</h3>
</div>
</div>

<script src="./konopas.min.js"></script>
<script src="../konopas.min.js"></script>
<script>
var konopas = new KonOpas({
'id': 'SoCraTesUK2024',
Expand All @@ -87,14 +87,18 @@ <h3>Milton Hill House map</h3>
'show_all_days_by_default': true,
'use_server': false
});
$.getJSON("https://openspaceapp-socratesuk2024-145f1483506e.herokuapp.com/v1/konopas", function (data) {
program = data;
}).done(function () {
konopas.set_program(program, {
'day': {},
'area': {},
'tag': {}
});
konopas.set_view();
fetch("https://openspaceapp-socratesuk2024-145f1483506e.herokuapp.com/v1/konopas")
.then(resp => {
if(!resp.ok) throw new Error("Got "+resp.status);
return resp;
})
.then(resp => resp.json())
.then(body => {
konopas.set_program(body, {
'day': {},
'area': {},
'tag': {}
});
konopas.set_view();
})
</script>

0 comments on commit 195dbc4

Please sign in to comment.