Show message if there's no bus on its way.

This commit is contained in:
George Kaklamanos 2016-02-20 19:26:19 +02:00
parent 44f6194f19
commit 23a13bc21d

View file

@ -3,6 +3,7 @@
<?php
function ShowMap($coords){
if(count($coords)>0){
?>
<div id="mymap" style="width:300px;height:300px;overflow:hidden;"></div>
<script>
@ -51,5 +52,11 @@ echo '['. $coords[$i][1] . ',' . $coords[$i][0] . ']];';
});
</script>
<?php
}else{
?>
<span style="display:inline-block" class="alert alert-danger" role="alert">No bus on its way yet. <a href="javascript:history.back()">Go back?</a></span>
<?php
}
}
?>