Compare View
Commits (5)
Diff
Showing 1 changed file Side-by-side Diff
views/pages/landing.ejs
View file @
bc2b875
... | ... | @@ -635,7 +635,7 @@ |
635 | 635 | </div> |
636 | 636 | <!-- Emergency --> |
637 | 637 | <div class="col-xs-4"> |
638 | - <button type="button" class="btn btn-danger btn-block" onclick="todo()">Emergency</button> | |
638 | + <button type="button" class="btn btn-danger btn-block" onclick="emergency()">Emergency</button> | |
639 | 639 | </div> |
640 | 640 | <!-- Open Map --> |
641 | 641 | <div class="col-xs-4"> |
... | ... | @@ -646,8 +646,18 @@ |
646 | 646 | |
647 | 647 | </div> |
648 | 648 | |
649 | +<script> | |
650 | + function emergency(){ | |
651 | + | |
652 | + var res = confirm("You are in a dangerous area. Would you like to call 911?"); | |
653 | + if( res == true ) { | |
654 | + alert("calling 911...");// <a href="tel:+1-911">call 911</a> | |
655 | + } | |
656 | + else { | |
657 | + alert("Please stay safe!"); | |
658 | + } | |
659 | + } | |
649 | 660 | |
650 | - <script> | |
651 | 661 | function todo() { |
652 | 662 | alert("This button is brought to you by the wonderful Wizard of Oz."); |
653 | 663 | } |