Commit 40fd39980b40d28c29aabb6d7708057be67cbd5c
1 parent
fd89c71093
Exists in
master
emergency button
Showing 1 changed file with 7 additions and 6 deletions Side-by-side Diff
views/pages/landing.ejs
View file @
40fd399
... | ... | @@ -655,13 +655,14 @@ |
655 | 655 | |
656 | 656 | <script> |
657 | 657 | function emergency(){ |
658 | + | |
658 | 659 | var res = confirm("You are in a dangerous area. Would you like to call 911?"); |
659 | - if( res == true ) { | |
660 | - <a href="tel:+1-911">call 911</a> | |
661 | - } | |
662 | - else { | |
663 | - alert("Please stay safe!"); | |
664 | - } | |
660 | + if( res == true ) { | |
661 | + alert("calling 911...");// <a href="tel:+1-911">call 911</a> | |
662 | + } | |
663 | + else { | |
664 | + alert("Please stay safe!"); | |
665 | + } | |
665 | 666 | } |
666 | 667 | |
667 | 668 | function todo() { |