css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <h1>Emergency Numbers</h1>

<div class="field" id="your_location">Your Location<div id="location">
  <div id="floatingCirclesG">
	<div class="f_circleG" id="frotateG_01"></div>
	<div class="f_circleG" id="frotateG_02"></div>
	<div class="f_circleG" id="frotateG_03"></div>
	<div class="f_circleG" id="frotateG_04"></div>
	<div class="f_circleG" id="frotateG_05"></div>
	<div class="f_circleG" id="frotateG_06"></div>
	<div class="f_circleG" id="frotateG_07"></div>
	<div class="f_circleG" id="frotateG_08"></div>

<div class="field" id="police">Police<div class="number" id="police_number"></div>

<div class="field" id="ambulance">Ambulance<div class="number" id="ambulance_number"></div></div>
<div class="field" id="fire">Fire Service<div class="number" id="fire_number"></div></div>
<div class="field" id="notes">Other<div class="number othernumbers" id="notes_content"></div></div>

<div class="footer">
  <a href="https://jmcooper.net/" target="_blank" >Made by J M Cooper</a>
              body {
  font-family: arial;
  color: #4F6367;
  background-color: #FE5F55;

h1 {
  text-align: center;
  text-transform: uppercase;
  font-size: 29px;

.field {
  display: block;
  margin: 10px auto;
  padding: 10px;
  text-align: center;
  background-color: white;
  border-radius: 10px;
  width: 320px;

.number, #location {
  font-weight: bold;
  padding: 5px;
  font-size: 26px;
  min-height: 30px;

.othernumbers {
  font-size: 20px;

a:link {
  color: black;

.footer {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #4F6367;

#floatingCirclesG {
  position: relative;
  width: 38px;
  height: 38px;
  margin: auto;
  transform: scale(0.6);
  -o-transform: scale(0.6);
  -ms-transform: scale(0.6);
  -webkit-transform: scale(0.6);
  -moz-transform: scale(0.6);

.f_circleG {
  position: absolute;
  background-color: rgb(255, 255, 255);
  height: 7px;
  width: 7px;
  border-radius: 4px;
  -o-border-radius: 4px;
  -ms-border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  animation-name: f_fadeG;
  -o-animation-name: f_fadeG;
  -ms-animation-name: f_fadeG;
  -webkit-animation-name: f_fadeG;
  -moz-animation-name: f_fadeG;
  animation-duration: 1.2s;
  -o-animation-duration: 1.2s;
  -ms-animation-duration: 1.2s;
  -webkit-animation-duration: 1.2s;
  -moz-animation-duration: 1.2s;
  animation-iteration-count: infinite;
  -o-animation-iteration-count: infinite;
  -ms-animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-iteration-count: infinite;
  animation-direction: normal;
  -o-animation-direction: normal;
  -ms-animation-direction: normal;
  -webkit-animation-direction: normal;
  -moz-animation-direction: normal;

#frotateG_01 {
  left: 0;
  top: 16px;
  animation-delay: 0.45s;
  -o-animation-delay: 0.45s;
  -ms-animation-delay: 0.45s;
  -webkit-animation-delay: 0.45s;
  -moz-animation-delay: 0.45s;

#frotateG_02 {
  left: 4px;
  top: 4px;
  animation-delay: 0.6s;
  -o-animation-delay: 0.6s;
  -ms-animation-delay: 0.6s;
  -webkit-animation-delay: 0.6s;
  -moz-animation-delay: 0.6s;

#frotateG_03 {
  left: 16px;
  top: 0;
  animation-delay: 0.75s;
  -o-animation-delay: 0.75s;
  -ms-animation-delay: 0.75s;
  -webkit-animation-delay: 0.75s;
  -moz-animation-delay: 0.75s;

#frotateG_04 {
  right: 4px;
  top: 4px;
  animation-delay: 0.9s;
  -o-animation-delay: 0.9s;
  -ms-animation-delay: 0.9s;
  -webkit-animation-delay: 0.9s;
  -moz-animation-delay: 0.9s;

#frotateG_05 {
  right: 0;
  top: 16px;
  animation-delay: 1.05s;
  -o-animation-delay: 1.05s;
  -ms-animation-delay: 1.05s;
  -webkit-animation-delay: 1.05s;
  -moz-animation-delay: 1.05s;

#frotateG_06 {
  right: 4px;
  bottom: 4px;
  animation-delay: 1.2s;
  -o-animation-delay: 1.2s;
  -ms-animation-delay: 1.2s;
  -webkit-animation-delay: 1.2s;
  -moz-animation-delay: 1.2s;

#frotateG_07 {
  left: 16px;
  bottom: 0;
  animation-delay: 1.35s;
  -o-animation-delay: 1.35s;
  -ms-animation-delay: 1.35s;
  -webkit-animation-delay: 1.35s;
  -moz-animation-delay: 1.35s;

#frotateG_08 {
  left: 4px;
  bottom: 4px;
  animation-delay: 1.5s;
  -o-animation-delay: 1.5s;
  -ms-animation-delay: 1.5s;
  -webkit-animation-delay: 1.5s;
  -moz-animation-delay: 1.5s;

@keyframes f_fadeG {
  0% {
    background-color: rgb(79, 99, 103);

  100% {
    background-color: rgba(255, 255, 255, 0);

@-o-keyframes f_fadeG {
  0% {
    background-color: rgb(79, 99, 103);

  100% {
    background-color: rgba(255, 255, 255, 0);

@-ms-keyframes f_fadeG {
  0% {
    background-color: rgb(79, 99, 103);

  100% {
    background-color: rgba(255, 255, 255, 0);

@-webkit-keyframes f_fadeG {
  0% {
    background-color: rgb(79, 99, 103);

  100% {
    background-color: rgba(255, 255, 255, 0);

@-moz-keyframes f_fadeG {
  0% {
    background-color: rgb(79, 99, 103);

  100% {
    background-color: rgba(255, 255, 255, 0);

              var data = [
  ["Algeria",18,14,14,"Civil protection: 14<br> National gendarmerie: 1055<br> Counter Terrorist unit: 1548<br> Support for children: 3033<br> Traffic police: 123<br> Mobile phones: 112"],
  ["Ascension Island",999,999,999,""],
  ["Benin",117,112,118,"Support for children: 160"],
  ["Burundi",117,112,118,"Support for children: 116"],
  ["Botswana",911,911,911,"Police: 999<br> Ambulance: 997<br> Fire: 998<br> Mobile phones: 112"],
  ["Burkina Faso",17,112,18,"Water emergency: 1111<br> Electricity emergency: 1130"],
  ["Cameroon",112,112,112,"Police: 117<br> Ambulance: 119<br> Fire: 118"],
  ["Cape Verde",132,130,131,"Water/electricity emergency: 800 11 33"],
  ["Central African Republic",117,1220,118,""],
  ["Chad",17,22514242,18,"Ambulance: 22511237"],
  ["Comoros",17,7720373,18,"Ambulance: 7732604"],
  ["Republic of Congo",117,117,118,"Police: 112"],
  ["Democratic Republic of Congo",112,112,118,""],
  ["Egypt",122,180,123,"Tourist police: 126<br> Traffic police: 128<br> Electricity emergency: 121<br> Gas emergency: 129<br> Mobile phones: 112"],
  ["Equatorial Guinea",114,115,112,"Traffic police: 116"],
  ["Ethiopia",911,911,911,"Police: 991<br> Ambulance: 907<br> Fire: 939<br> Traffic police: 945"],
  ["Gambia",117,116,118,"Police: 112<br> Electricity emergency: 124<br> Water emergency: 125"],
  ["Ghana",999,999,999,"Police: 191<br> Ambulance: 193<br> Fire: 192"],
  ["Guinea Bissau",112,112,112,"Police: 117<br> Ambulance: 119<br> Fire: 118"],
  ["Ivory Coast",111,185,180,"Police: 170"],
  ["Kenya",112,112,112,"Alternate number: 999"],
  ["Libya",1515,1515,1515,"Ambulance: 193"],
  ["Madagascar",117,124,118,"Traffic police: 3600"],
  ["Malawi",997,998,999,"Police: 990"],
  ["Mali",17,15,18,"Ambulance, Fire: 112"],
  ["Mauritius",112,114,115,"Police: 999<br> Fire: 995"],
  ["Mauritania",117,101,118,"Gendarmerie: 116<br>Traffic police: 119"],
  ["Mayotte",112,112,112,"Police: 17<br> Ambulance: 15<br> Fire: 18"],
  ["Morocco",19,15,15,"Royal gendarmerie: 177<br> Drugs & alcohol service: 113<br>Racial discrimination hotline: 114<br> Non emergency disturbances: 110<br> General information: 160<br> National Freeway call center: 5050<br> Mobile phones: 112"],
  ["Namibia",10111,10111,10111,"depending on town/city","depending on town/city",""],
  ["Réunion",112,112,112,"Police: 17<br> Ambulance: 15<br> Fire: 18",""],
  ["Rwanda",112,912,112,"Traffic police: 113"],
  ["Saint Helena",999,911,999,""],
  ["Sao Tome and Principe",112,112,112,""],
  ["Seychelles",112,112,112, "Alternate: 999<br> Police: 133"," Ambulance: 151"],
  ["Sierra Leone",019,999,999,""],
  ["Somalia",888,999,555,"Traffic police: 777"],
  ["South Africa",10111,10177,10177,"Emergency in Cape Town: 107<br> Mobile phones: 112"],
  ["Sudan",999,999,999,"Traffic police: 777 777"],
  ["South Sudan",999,999,999,""],
  ["Tanzania",112,115,114,"Police: 999"],
  ["Tristan da Cunha",999,911,999,""],
  ["Tunisia",197,190,198,"National guard: 193"],
  ["Uganda",112,911,112,"Police, Fire: 999"],
  ["Western Sahara",150,150,150,""],
  ["Zambia",999,999,999,"Police: 911<br> Ambulance: 992<br> Fire: 993<br> Mobile phones: 112"],
  ["Zimbabwe",999,999,999,"Police: 995<br> Ambulance: 994<br> Fire: 993<br> Mobile phones: 112"],
  ["Antarctica",911,911,911,"Calls the nearest island/country that has a Police / Emergency system. In case of no response, please try 112 or 999 (try all emergencies numbers shown on this article) until dispatch. Antarctica has no emergency call center."],
  ["Akrotiri and Dhekelia",112,112,112,"Alternate: 999"],
  ["Bahrain",999,999,999,"Mobile phones: 112"],
  ["Bangladesh",999,199,199,"Those numbers are valid for Dhaka and Chittagong only."],
  ["British Indian Ocean Territory",112,112,112,"Alternate: 999"],
  ["Burma",999,999,999,"Police: 199<br> Ambulance: 192<br> Fire: 191"],
  ["Cambodia",117,119,118,"Child helpline: 1280"],
  ["People's Republic of China",110,120,119,"Road police: 122<br> Private ambulance service (Beijing only): 999<br> Dialling 112 on a mobile phone plays a bilingual message in English and Chinese about other accessible emergency numbers."],
  ["Christmas Island",'000','000','000',""],
  ["Cocos Islands",'000','000','000',""],
  ["East Timor",112,112,112,""],
  ["Hong Kong",999,999,999,"Deaf fax/SMS: 992<br> Mobile phones: 112"],
  ["India",112,112,112,"Police: 100<br> Fire: 101<br> Ambulance: 102<br> Gas leakage: 1906<br> Tourist Helpline: 1363<br> Child Helpline: 1098<br> Blood Requirement: 104<br> Helpline for Women: 181"],
  ["Indonesia",110,118,113,"Ambulance: 119<br> Fire: 1131<br> Search & rescue: 115<br> Natural disasters: 129<br> Electricity emergency: 123<br> Mobile phones: 112"],
  ["Iran",110,125,115,"Social Emergency: 123<br> Roads Traffic Information Center: 141<br> Mobile phones: 112<br> 112 is for Relief and rescue organization of Iranian Red Crescent"],
  ["Iraq",112,112,112,"Alternate: or 911<br> Police: 104<br> Ambulance: 122<br> Fire: 115"],
  ["Israel",100,101,102,"Israel Electric Corporation: 103<br> Home Front Command: 104<br> Non emergency municipal hazards: 106<br> Mobile phones: 112"],
  ["Japan",110,119,119,"Coast guard: 118<br> Information about emergencies: 7119 (free call), 9110 (pay call)<br> Roadside assistance: #8139<br> 911 redirects to 110 on mobile phones."],
  ["Jordan",911,911,911,"Mobile phones: 112"],
  ["Kazakhstan",112,112,112,"Police: 102<br> Ambulance: 103<br> Fire: 101<br> Gas leaks: 104"],
  ["Democratic People's Republic of Korea",119,119,119,"Mobile phones: 112"],
  ["Republic of Korea",112,119,119,"National security: 111<br> Reporting spies: 113<br> Missing persons: 182<br> Phone service provider: 114"],
  ["Kurdistan",112,112,112,"Alternate: 911<br> Police: 104<br> Ambulance: 122<br> Fire: 115"],
  ["Lebanon",999,140,175,"Police: 160 or 112<br> Civil defense: 125"],
  ["Macau",999,999,999,"Mobile phones: 110 or 112"],
  ["Maldives",119,102,118,"Traffic police: 191"],
  ["Mongolia",105,105,105,"Police: 102<br> Ambulance: 103<br> Fire: 101"],
  ["Nepal",100,102,101,"Traffic police: 103<br> Mobile phones: 112"],
  ["Oman",999,999,999,"Mobile phones: 112."],
  ["Pakistan",15,115,16,"Ambulance: 1122<br> Traffic police: 1915<br> Mobile phones: 112"],
  ["Philippines",911,911,911,"National Complaint Hotline: 8888<br> Child abuse (Bantay Bata): 163<br> Motorist assistance: 136 (Metro Manila only)"],
  ["Qatar",999,999,999,"Mobile phones: 112"],
  ["Saudi Arabia",112,112,112,"Alternate: 911<br> Police: 999<br> Ambulance: 997<br> Fire: 998<br> Traffic police: 993"],
  ["Singapore",999,995,995,"Mobile phones: 112 or 911<br> Non emergency ambulance: 1777<br> Police hotline: 1800 255 0000<br> Traffic police: 6547 0000"],
  ["Sri Lanka",119,110,110,"Traffic police: 11-269-11-11"],
  ["Taiwan",110,119,119,"Mobile phones: 112<br> Domestic violence: 113"],
  ["Tajikistan",112,112,112,"Police: 102<br> Ambulance: 103<br> Fire: 101<br> Gas leaks: 104"],
  ["Thailand",191,1669,199,"911 can also be used for universal emergency number<br> Ambulance (Bangkok only): 1646<br> Tourist police: 1155<br> Traffic control center (Bangkok Metro only): 1197<br> Highway patrol: 1193<br> Mobile Phones: 112"],
  ["Turkmenistan",112,112,112,"Police: 102<br> Ambulance: 103<br> Fire: 101<br> Gas leaks: 104"],
  ["United Arab Emirates",112,112,112,"Police: 999<br> Ambulance: 998<br> Fire: 997<br> Coast guard: 996<br> Non emergency police: 901"],
  ["Uzbekistan",112,112,112,"Police: 102<br> Ambulance: 103<br> Fire: 101"],
  ["Åland Islands",112,112,112,"Non emergency police: 018 527 100<br> Poison control: 09 471 977"],
  ["Albania",112,112,112,"Police: 129<br> Ambulance: 127<br> Fire: 128<br> Traffic police: 126<br> Emergency at sea: 125"],
  ["Andorra",112,112,112,"Police: 110<br> Ambulance, Fire: 118"],
  ["Armenia",112,112,112, "Alternate: 911<br> Police: 102<br> Ambulance: 103<br> Fire: 101<br> Gas emergency: 104<br> Traffic police: 177<br> Search & rescue: 108"],
  ["Austria",112,112,112,"Police: 133<br> Ambulance: 144<br> Fire: 122<br> Gas emergency: 128<br> Mountain rescue: 140<br> Doctors: 141<br> Crisis-hotline: 142<br> Support for children and teens: 147<br> Non emergency police: 059 133<br> Deaf fax/SMS: 0800 133 133<br> Poisoning Informations Center: 01 406 43 43"],
  ["Azerbaijan",112,112,112,"Police: 102<br> Ambulance: 103<br> Fire: 101<br> Gas emergency: 104<br> Traffic police: 126<br> Electricity emergency: 199"],
  ["Belarus",102,103,101,"Fire: 112<br> Gas emergency: 104"],
  ["Belgium",112,112,112,"Police: 101<br> Ambulance, Fire: 100<br> Missing children: 116000<br> Mental problems hotline: 106<br> Red Cross: 105<br> If dialing 112 or 100 for police, the caller is redirected to 101"],
  ["Bosnia and Herzegovina",112,112,112,"Police: 122<br> Ambulance: 124<br> Fire: 123<br> Civil protection: 121"],
  ["Croatia",112,112,112,"Police: 192<br> Ambulance: 194<br> Fire: 193<br> Search & rescue at sea: 195<br> Road help: 1987"],
  ["Cyprus",112,112,112, "Alternate: 199<br> Fire: 1407<br> Air/sea rescue: 1441<br> Anti-drug support: 1410 or 1498<br> Poison control: 1401"],
  ["Czech Republic",112,112,112,"Police: 158<br> Ambulance: 155<br> Fire: 150<br> Municipal police: 156"],
  ["Denmark",112,112,112,"Non emergency police: 114<br> Helpline for guidance from doctors and nurses: 1813"],
  ["Faroe Islands",112,112,112,"Non emergency police: 114"],
  ["Finland",112,112,112,"Maritime rescue: 02 04 100"],
  ["France",112,112,112,"Police: 17<br> Hospital-operated ambulance (SAMU): 15<br> Fire brigade-operated ambulance<br> Fire: 18<br> Homeless: 115<br> Deaf FAX/SMS: 114<br> Hotline for beaten children: 119<br> Missing children: 116000<br> Maritime rescue: 196"],
  ["Germany",112,112,112,"Police: 110"],
  ["Gibraltar",112,112,112, "Alternate: 999<br> Fire, Ambulance: 190<br> Police: 199"],
  ["Greece",112,112,112,"Police: 100<br> Ambulance: 166<br> Fire: 199<br> Forest fire: 1591<br> Coast guard: 108<br> Counter-narcotics: 109<br> Tourist police: 171<br> Social aid: 197"],
  ["Greenland",112,112,112,"Mobile phones only. From landline phones dial the local police station, hospital or fire brigade."],
  ["Guernsey",112,112,112, "Alternate: 999"],
  ["Hungary",112,112,112,"Police: 107<br> Ambulance: 104<br> Fire: 105<br> Water emergency: 1817"],
  ["Iceland",112,112,112, "+354 570 2112 from abroad<br> Non emergency police (Reykjavík area): 444 10 00<br> 911 redirects to 112 on mobile phones."],
  ["Ireland",112,112,112, "Alternate: 999<br> SMS messages can be sent to 112 after registration by sending a text message with the word 'Register' to 112"],
  ["Isle of Man",112,112,112, "Alternate: 999"],
  ["Italy",112,112,112,"Police: 113<br> Ambulance: 118<br> Fire: 115<br> Forest service: 1515<br> Customs/Financial police: 117<br> Coast guard: 1530. 911 redirects to 112."],
  ["Jersey",112,112,112, "Alternate: 999"],
  ["Kosovo",112,112,112,"Police: 192<br> Ambulance: 194<br> Fire: 193"],
  ["Latvia",112,112,112,"Police: 110<br> Ambulance: 113<br> Gas emergency: 114"],
  ["Liechtenstein",112,112,112,"Police: 117<br> Ambulance: 144<br> Fire: 118"],
  ["Luxembourg",112,112,112,"Police: 113"],
  ["Republic of Macedonia",112,112,112,"Police: 192<br> Ambulance: 194<br> Fire: 193"],
  ["Malta",112,112,112,"Helpline: 119"],
  ["Moldova",902,903,901,"Police: 112"],
  ["Monaco",112,112,112,"Police: 17<br> Hospital-operated ambulance (SAMU): 15<br> Fire brigade-operated ambulance, Fire: 18."],
  ["Montenegro",112,112,112,"Police: 122<br> Ambulance: 124<br> Fire: 123"],
  ["Nagorno Karabakh",112,112,112,"Police: 102<br> Ambulance: 103<br> Fire: 101<br> Gas leaks: 104"],
  ["Netherlands",112,112,112,"Text phone: 0800 81 12<br> Non emergency police: 0900 88 44[a] or 0343 578 844<br> Non emergency police (text phone): 0900 18 44<br> Suicide prevention: 0900 01 13<br> Animal emergency: 144<br> Child abuse: 0900 123 12 30<br> Anti-bullying hotline: 0800 90 50"],
  ["Northern Cyprus",112,112,112,"Police: 155<br> Fire: 199"],
  ["Norway",112,113,110,"Emergency at sea: 120<br> Non emergency police: 02 800<br> Child abuse and family violence: 116 111<br> Text phone: 1412. Nearest health care outside office hours: 116 117<br> 911 redirects to 112"],
  ["Poland",112,112,112,"Police: 997<br> Ambulance: 999<br> Fire: 998<br> Municipal police: 986<br> Mountain rescue: 985 or (+48) 601 100 300<br> Gas emergency: 992<br> Road help: 981"],
  ["Portugal",112,112,112,"Forest fire: 117<br> Social emergency: 144"],
  ["Russia",112,112,112,"Police: 102<br> Ambulance: 103<br> Fire: 101<br> Gas emergency: 104"],
  ["San Marino",112,112,112,"Police: 113<br> Ambulance: 118<br> Fire: 115"],
  ["Serbia",192,194,193,"Civil protection: 1985<br> 112 redirects to 192. It is possible to dial 112 and get direct connection with the emergency services by pressing 1 for police, 2 for ambulance and 3 for fire on Vip operator mobile phones."],
  ["Slovakia",112,112,112,"Police: 158<br> Ambulance: 155<br> Fire: 150"],
  ["Slovenia",112,112,112,"Police: 113<br> Road help: 1987<br> Emergency at sea: 080 18 00"],
  ["Spain",112,112,112,"Gender violence: 016<br> National police: 091<br> Ambulance: 061<br> Fire: 080 (municipality) or 085 (Autonomous communities)<br> Local police: 092<br> Spanish gendarmerie: 062<br> Coast guard: 902 202 202<br> Civil protection: 1006<br> Red Cross: 901 222 222"],
  ["Sweden",112,112,112,"Non emergency police: 114 14<br> Non emergency medical advice: 1177<br> Information during accidents and crises: 113 13"],
  ["Switzerland",112,112,112,"Police: 117<br> Ambulance: 144<br> Fire: 118<br> Poison control: 145<br> Road help: 0800 140 140<br> Psychological support: 143<br> Psychological support for teens and children: 147<br> Rega air rescue: 1414 or by radio on 161.300 MHz<br> Air Glaciers air-rescue (Valais only): 1415"],
  ["Turkey",112,112,112,"Police: 155<br> Fire brigade: 110<br> Gendarmerie: 156<br> Coast guard: 158<br> Municipal police: 153<br> Gas emergency: 187<br> Electricity emergency: 186<br> Water emergency: 185<br> Poison control: 114<br> Child abuse and family violence: 183<br> Forest fire: 177"],
  ["Ukraine",112,112,112,"Police: 102<br> Ambulance: 103<br> Fire: 101<br> Gas emergency: 104"],
  ["United Kingdom",112,112,112, "Alternate: 999<br> Non emergency police: 101<br> Non emergency health issues: 111. SMS messages can be sent to 999 after registration by sending a text message with the word 'Register' to 999. 911 redirects to 999 on mobile phones. Report Power Cuts: 105"],
  ["Vatican City",112,112,112,"Police: 113<br> Ambulance: 118<br> Fire: 115"],
  ["American Samoa",911,911,911,""],
  ["Australia",'000','000','000',"Mobile phones: 112 or 000<br> State Emergency Service: 132 500<br> National relay service: 106<br> Non emergency police: 131 444 (NSW, QLD, SA,WA, NT, TAS ACT)<br> Crime Stoppers: 1800 333 000<br> Threats to national security: 1800 123 400"],
  ["Cook Islands",999,998,996,""],
  ["Fiji",'000','000','000',"Alternate: 911<br> Crime Stoppers: 919"],
  ["French Polynesia",112,112,112,"Police: 17<br> Ambulance: 15<br> Fire: 18"],
  ["Kiribati",999,999,999,"Police: 192<br> Ambulance: 194<br> Fire: 193"],
  ["Marshall Islands",911,911,911,""],
  ["New Caledonia",112,112,112,"Police: 17<br> Ambulance: 15<br> Fire: 18"],
  ["New Zealand",111,111,111,"SMS messages can be sent to 111 from registered mobile phones. Traffic: *555 (mobile phones only). 112 and 911 redirect to 111 on mobile phones. Dialling 000 and 999 plays a pre-recorded message advising the caller to call 111. Deaf TTY: 0800 161 610<br> Deaf fax: 0800 161 616<br> Crime Stoppers: 0800 555 111"],
  ["Papua New Guinea",112,111,110,""],
  ["Samoa",999,999,999,"Police: 995<br> Ambulance: 996<br> Fire: 994"],
  ["Solomon Islands",911,911,911,"Alternate: 999<br> In cities, local numbers exist which connect more quickly than either 911 or 999"],
  ["Tonga",911,911,911,"Police: 922<br> Ambulance: 933<br> Fire: 999"],
  ["Antigua and Barbuda",911,911,911,"Alternate: 999"],
  ["British Virgin Islands",911,911,911,"Alternate: 999"],
  ["Canada",911,911,911,"Non emergency: 311 (some areas only). 112 redirects to 911 on mobile phones."],
  ["Clipperton Island",112,112,112,"Police: 17<br> Ambulance: 15<br> Fire: 18"],
  ["Guadeloupe",112,112,112,"Police: 17<br> Ambulance: 15<br> Fire: 18"],
  ["Martinique",112,112,112,"Police: 17<br> Ambulance: 15<br> Fire: 18"],
  ["Mexico",066,066,066,"Alternate: 911<br> Information about emergencies: 066"],
  ["Montserrat",911,911,911,"Alternate: 999"],
  ["Navassa Island",911,911,911,""],
  ["Saint Kitts and Nevis",911,911,911,""],
  ["Saint Lucia",911,911,911,"Alternate: 999"],
  ["Saint Pierre and Miquelon",112,112,112,"Police: 17<br> Ambulance: 15<br> Fire: 18"],
  ["Saint Vincent and the Grenadines",911,911,911,"Alternate: 999"],
  ["United States of America",911,911,911,"Various services available through regional or national N11 codes (e.g.: 311 for Non emergency police or city services) in certain areas. Calling #77 from a mobile phone may reach the highway patrol in some states, but it should not be relied upon (because some phone carriers might not support it for certain service plans). Some carriers such as AT&T redirect 112 to 911, though it should not be relied on due to the connecting time."],
  ["United States Virgin Islands",911,911,911,""],
  ["Barbados",911,911,911,"Police: 211<br> Ambulance: 511<br> Fire: 311<br>"],
  ["The Bahamas",911,911,911,"Alternate: 919<br> Mobile phones: 112"],
  ["Cayman Islands",911,911,911,""],
  ["Costa Rica",911,911,911,"Mobile phones: 112"],
  ["Dominican Republic",911,911,911,"112 redirects to 911 on mobile phones"],
  ["Guatemala",110,128,122,"Police: 120<br> Fire: 123"],
  ["El Salvador",911,132,913,""],
  ["Haiti",114,116,115,"Police: 122"],
  ["Honduras",112,195,198,"Police: 911"],
  ["Nicaragua",118,128,115,"Fire: 911"],
  ["Panama",911,911,911,"Police: 104<br> Fire: 103"],
  ["Puerto Rico",911,911,911,""],
  ["Trinidad and Tobago",999,811,990,"Police: 911"],
  ["Argentina",911,911,911,"Police: 101<br> Ambulance: 107<br> Fire: 100<br> Civil defense: 103<br> Forest fire: 105<br> Coast guard: 106. 112 redirects to 911 on mobile phones"],
  ["Bolivia",911,911,911,"Police: 110<br> Ambulance: 118<br> Fire: 119<br> Civil protection: 114<br> National police: 120"],
  ["Brazil",190,192,193,"Federal highway police: 191<br> Federal police: 194<br> Civil police: 197<br> State highway police: 198<br> Civil defense: 199<br> Municipal guard: 153<br> Human rights: 100<br> Emergency in Mercosul area: 128. 112 and 911 redirect to 190 on mobile phones."],
  ["Chile",133,131,132,"911 redirects to 133."],
  ["Colombia",123,123,123,"Police: 112<br> Ambulance: 125<br> Fire: 119, Anti-kidnapping hotline: 165"],
  ["Ecuador",911,911,911,"Police: 101<br> Ambulance: 131<br> Fire: 102<br> Emergency in Guayaquil: 112<br> Traffic police in Guayaquil: 103"],
  ["Falkland Islands",112,112,112,"Alternate: 999"],
  ["French Guiana",112,112,112,"Police: 17<br> Ambulance: 15<br> Fire: 18"],
  ["Guyana",999,999,999,"Police: 911<br> Ambulance: 913<br> Fire: 912"],
  ["Paraguay",911,911,911,"Police: 912<br> Ambulance: 141<br> Fire: 132"],
  ["Peru",911,911,911,"Police: 105<br> Ambulance, Fire: 116<br> Civil defense: 115<br> Domestic violence: 100"],
  ["South Georgia and the South Sandwich Islands",999,999,999,""],
  ["Suriname",115,115,115,"Ambulance: 113<br> Fire: 110"],
  ["Uruguay",911,911,911,"Police: 109<br> Ambulance: 105<br> Fire: 104"],

navigator.geolocation.getCurrentPosition(function(position) {
  var lat = position.coords.latitude;
  var lon = position.coords.longitude;
  var country_link =
    "https://maps.googleapis.com/maps/api/geocode/json?latlng=" + lat + "," + lon;

 $.getJSON(country_link, function(json) {
   var country;
   for (var j = 0; j < json.results[0].address_components.length; j++) {
     if (json.results[0].address_components[j].types.indexOf("country") > -1) {
       country = json.results[0].address_components[j].long_name;

    for (var i = 0; i < data.length; i++) {
      if (data[i][0] == country) {
        $("#police_number").html('<a href="tel:'+ data[i][1] +'">' + data[i][1] + '</a>');
        $("#ambulance_number").html('<a href="tel:'+ data[i][2] +'">' + data[i][2] + '</a>');
        $("#fire_number").html('<a href="tel:'+ data[i][3] +'">' + data[i][3] + '</a>');
        var notes = data[i][4];     
             var string = "";
             var num = "";
             var inNum = false;           
           for (var k = 0; k < notes.length; k++) {
             var char = notes[k];
          if (!isNaN(char) && !inNum && char != ' ') {
            inNum = true;
            string += '<a href="tel:'
            num += char;
          } else if (!isNaN(char) && inNum) {
             num += char;
          } else if (isNaN(char) && inNum) {
            inNum = false;
            string += '">' + num + '</a>';
               num = "";
          string += char;   
        if (inNum) {
          string+= '">' + num + '</a>';


  /*for each field (police, fire etc) get nearest number - this is for local, not general emergencies. Uses google places API. TODO later. 
  var type= ["police"];
  var link =
    "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=" +
    lat +
    "," +
    lon +
    "&radius=5000&&type=" + type[0] + "&key=AIzaSyCak9WzbgJfGqd-GEsHNRKu6w8BtsduyLA";


🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................