Show message if there's no bus on its way.
This commit is contained in:
parent
44f6194f19
commit
23a13bc21d
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Reference in a new issue