-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
548 lines (543 loc) · 26.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
<!DOCTYPE html><html lang=en ng-app=app><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width, initial-scale=1"><meta name=description><meta name=author><link rel=icon href=../../favicon.ico><title>Flag-css - CSS for SVG country flags with PNG fallback.</title><link href=//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css rel=stylesheet><link href=./dist/flag-css.css rel=stylesheet><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]--><script src=https://rawgit.com/chjj/marked/master/lib/marked.js></script></head><body><a href=https://github.com/7kfpun/flag-css><img style="position: absolute; top: 0; right: 0; border: 0;" src=https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67 alt="Fork me on GitHub" data-canonical-src=https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png></a><div class=container ng-controller=MainController><div><!--[if lt IE 9]>
<h1>Flag-css</h1>
<h2>CSS for SVG country flags with PNG fallback.</h2>
<a href="ie.html">click here for legacy browser</a>
<![endif]--><div id=content></div><script>
document.getElementById('content').innerHTML = marked('# Flag-css\n\nCSS for SVG country flag icons with PNG fallback (all alpha-2, alpha-3, numeric, IOC and FIFA are all supported). See the [demo](http://7kfpun.github.io/flag-css/).\n\n> As a backend developer, I prefer **ISO_3166-1 alpha-3**.\n\n- Including all world flags (over 250 flags)\n- Images are vectors - they are scalable\n- All flags from [Wikimedia](http://commons.wikimedia.org/wiki/Category:SVG_sovereign_state_flags)\n- Use [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1), all alpha-2, alpha-3 and numeric are supported\n- [IOC](https://en.wikipedia.org/wiki/List_of_IOC_country_codes) and [FIFA](https://en.wikipedia.org/wiki/List_of_FIFA_country_codes) are also supported\n- Respect flag\'s original ratio\n- Flag-css CSS, LESS, and Sass files are licensed under the MIT License\n\n## Install\n\n bower:\n\n bower install --save flag-css\n\n## Or download\n\n- [Flag-css (full)](dist/archive.zip)\n- [Flag-css (without .png files)](dist/archive-nopng.zip)\n\n## Usage\n\nFor using the flags inline with text add the classes `.flag` with `.flag-xxx` or `.flag-xx` (where `xxx` is the\n[ISO 3166-1-alpha-3](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) or [ISO 3166-1-numeric](http://en.wikipedia.org/wiki/ISO_3166-1_numeric) and xx is the [ISO 3166-1-alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of a country) to an empty `<span>`. Or using `flag-ioc-xxx` or `flag-fifa-xxx` (where `xxx` either the [IOC](https://en.wikipedia.org/wiki/List_of_IOC_country_codes) or [FIFA](https://en.wikipedia.org/wiki/List_of_FIFA_country_codes) of a country). Example:\n\n <span class=\"flag flag-hkg\"></span>\n <span class=\"flag flag-hk\"></span>\n <span class=\"flag flag-344\"></span>\n <span class=\"flag flag-ioc-hkg\"></span>\n <span class=\"flag flag-fifa-hkg\"></span>\n\n### Sizing\n\n <span class=\"flag flag-hkg flag-2x\"></span>\n <span class=\"flag flag-hkg flag-3x\"></span>\n <span class=\"flag flag-hkg flag-4x\"></span>\n ⋮\n ⋮\n <span class=\"flag flag-hkg flag-10x\"></span>\n\n### Rotating and flipping\n\n <span class=\"flag flag-hkg flag-rotate-90\"></span>\n <span class=\"flag flag-hkg flag-rotate-180\"></span>\n <span class=\"flag flag-hkg flag-rotate-270\"></span>\n <span class=\"flag flag-hkg flag-flip-horizontal\"></span>\n <span class=\"flag flag-hkg flag-flip-vertical\"></span>\n\n## Todo\'s\n\n - 3×4 flag ratio available\n\n## License\n\nMIT\n\n## Development\n\nUbuntu:\n\n apt-get install imagemagick\n apt-get install graphicsmagick\n\nMac OS X (using Homebrew):\n\n brew install imagemagick\n brew install graphicsmagick\n');
</script><p><a class="btn btn-success btn-lg" href=./dist/archive.zip role=button><span class="glyphicon glyphicon-save" aria-hidden=true></span> Download Flag-css</a>    <a href=./dist/archive-nopng.zip role=button>download without .png files</a></p><hr><p><input type=text placeholder="Search country" ng-model=input typeahead="country for country in countries | filter:$viewValue | limitTo:8" class=form-control></p><br><div class="row text-center" ng-if=getFlag(input)><div class="col-sm-6 col-md-4"><div class="panel panel-default"><div class=panel-body><span class=flag ng-class=getFlag(input)></span></div><div class=panel-heading><span><span class="flag {{ getFlag(input) }}"></span></span></div></div></div><div class="col-sm-6 col-md-4" data-ng-repeat="i in [2, 3, 4, 5, 6, 7, 8, 9, 10]"><div class="panel panel-default"><div class=panel-body><span class="flag flag-{{ i }}x" ng-class=getFlag(input)></span></div><div class=panel-heading><span><span class="flag {{ getFlag(input) }} flag-{{ i }}x"></span></span></div></div></div><div class="col-sm-6 col-md-4" data-ng-repeat="i in ['flag-rotate-90', 'flag-rotate-180', 'flag-rotate-270', 'flag-flip-horizontal', 'flag-flip-vertical']"><div class="panel panel-default"><div class=panel-body><span class="flag flag-10x {{ i }}" ng-class=getFlag(input)></span></div><div class=panel-heading><span><span class="flag {{ getFlag(input) }} flag-10x {{ i }}"></span></span></div></div></div></div><div class="row text-center" ng-if=!getFlag(input)><div class="col-sm-6 col-md-4" ng-repeat="code in countries"><div class="panel panel-default"><div class=panel-body><span class="flag flag-10x" ng-class=getFlag(code)></span></div><div class=panel-heading><span><span class="flag {{ getFlag(code) }} flag-10x"></span></span></div></div></div></div></div></div><script src=//ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js></script><script src=//ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular-touch.min.js></script><script src=//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.12.1.min.js></script><script src=//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js></script><script>
'use strict';
angular.module('app', ['ui.bootstrap']).config(function() {
});
angular.module('app').controller('MainController', function($scope) {
var codes = {};
codes.alpha3ToName = {
'AFG': 'Afghanistan',
'ALA': 'Åland Islands',
'ALB': 'Albania',
'DZA': 'Algeria',
'ASM': 'American Samoa',
'AND': 'Andorra',
'AGO': 'Angola',
'AIA': 'Anguilla',
'ATA': 'Antarctica',
'ATG': 'Antigua and Barbuda',
'ARG': 'Argentina',
'ARM': 'Armenia',
'ABW': 'Aruba',
'AUS': 'Australia',
'AUT': 'Austria',
'AZE': 'Azerbaijan',
'BHS': 'Bahamas',
'BHR': 'Bahrain',
'BGD': 'Bangladesh',
'BRB': 'Barbados',
'BLR': 'Belarus',
'BEL': 'Belgium',
'BLZ': 'Belize',
'BEN': 'Benin',
'BMU': 'Bermuda',
'BTN': 'Bhutan',
'BOL': 'Bolivia, Plurinational State of',
'BES': 'Bonaire, Sint Eustatius and Saba',
'BIH': 'Bosnia and Herzegovina',
'BWA': 'Botswana',
'BVT': 'Bouvet Island',
'BRA': 'Brazil',
'IOT': 'British Indian Ocean Territory',
'BRN': 'Brunei Darussalam',
'BGR': 'Bulgaria',
'BFA': 'Burkina Faso',
'BDI': 'Burundi',
'KHM': 'Cambodia',
'CMR': 'Cameroon',
'CAN': 'Canada',
'CPV': 'Cape Verde',
'CYM': 'Cayman Islands',
'CAF': 'Central African Republic',
'TCD': 'Chad',
'CHL': 'Chile',
'CHN': 'China',
'CXR': 'Christmas Island',
'CCK': 'Cocos (Keeling) Islands',
'COL': 'Colombia',
'COM': 'Comoros',
'COG': 'Congo',
'COD': 'Congo, The Democratic Republic of the',
'COK': 'Cook Islands',
'CRI': 'Costa Rica',
'CIV': 'Côte d\'Ivoire',
'HRV': 'Croatia',
'CUB': 'Cuba',
'CUW': 'Curaçao',
'CYP': 'Cyprus',
'CZE': 'Czech Republic',
'DNK': 'Denmark',
'DJI': 'Djibouti',
'DMA': 'Dominica',
'DOM': 'Dominican Republic',
'ECU': 'Ecuador',
'EGY': 'Egypt',
'SLV': 'El Salvador',
'GNQ': 'Equatorial Guinea',
'ERI': 'Eritrea',
'EST': 'Estonia',
'ETH': 'Ethiopia',
'FLK': 'Falkland Islands (Malvinas)',
'FRO': 'Faroe Islands',
'FJI': 'Fiji',
'FIN': 'Finland',
'FRA': 'France',
'GUF': 'French Guiana',
'PYF': 'French Polynesia',
'ATF': 'French Southern Territories',
'GAB': 'Gabon',
'GMB': 'Gambia',
'GEO': 'Georgia',
'DEU': 'Germany',
'GHA': 'Ghana',
'GIB': 'Gibraltar',
'GRC': 'Greece',
'GRL': 'Greenland',
'GRD': 'Grenada',
'GLP': 'Guadeloupe',
'GUM': 'Guam',
'GTM': 'Guatemala',
'GGY': 'Guernsey',
'GIN': 'Guinea',
'GNB': 'Guinea-Bissau',
'GUY': 'Guyana',
'HTI': 'Haiti',
'HMD': 'Heard Island and McDonald Islands',
'VAT': 'Holy See (Vatican City State)',
'HND': 'Honduras',
'HKG': 'Hong Kong',
'HUN': 'Hungary',
'ISL': 'Iceland',
'IND': 'India',
'IDN': 'Indonesia',
'IRN': 'Iran, Islamic Republic of',
'IRQ': 'Iraq',
'IRL': 'Ireland',
'IMN': 'Isle of Man',
'ISR': 'Israel',
'ITA': 'Italy',
'JAM': 'Jamaica',
'JPN': 'Japan',
'JEY': 'Jersey',
'JOR': 'Jordan',
'KAZ': 'Kazakhstan',
'KEN': 'Kenya',
'KIR': 'Kiribati',
'PRK': 'Korea, Democratic People\'s Republic of',
'KOR': 'Korea, Republic of',
'KWT': 'Kuwait',
'KGZ': 'Kyrgyzstan',
'LAO': 'Lao People\'s Democratic Republic',
'LVA': 'Latvia',
'LBN': 'Lebanon',
'LSO': 'Lesotho',
'LBR': 'Liberia',
'LBY': 'Libya',
'LIE': 'Liechtenstein',
'LTU': 'Lithuania',
'LUX': 'Luxembourg',
'MAC': 'Macao',
'MKD': 'Macedonia, Republic of',
'MDG': 'Madagascar',
'MWI': 'Malawi',
'MYS': 'Malaysia',
'MDV': 'Maldives',
'MLI': 'Mali',
'MLT': 'Malta',
'MHL': 'Marshall Islands',
'MTQ': 'Martinique',
'MRT': 'Mauritania',
'MUS': 'Mauritius',
'MYT': 'Mayotte',
'MEX': 'Mexico',
'FSM': 'Micronesia, Federated States of',
'MDA': 'Moldova, Republic of',
'MCO': 'Monaco',
'MNG': 'Mongolia',
'MNE': 'Montenegro',
'MSR': 'Montserrat',
'MAR': 'Morocco',
'MOZ': 'Mozambique',
'MMR': 'Myanmar',
'NAM': 'Namibia',
'NRU': 'Nauru',
'NPL': 'Nepal',
'NLD': 'Netherlands',
'NCL': 'New Caledonia',
'NZL': 'New Zealand',
'NIC': 'Nicaragua',
'NER': 'Niger',
'NGA': 'Nigeria',
'NIU': 'Niue',
'NFK': 'Norfolk Island',
'MNP': 'Northern Mariana Islands',
'NOR': 'Norway',
'OMN': 'Oman',
'PAK': 'Pakistan',
'PLW': 'Palau',
'PSE': 'Palestine, State of',
'PAN': 'Panama',
'PNG': 'Papua New Guinea',
'PRY': 'Paraguay',
'PER': 'Peru',
'PHL': 'Philippines',
'PCN': 'Pitcairn',
'POL': 'Poland',
'PRT': 'Portugal',
'PRI': 'Puerto Rico',
'QAT': 'Qatar',
'REU': 'Réunion',
'ROU': 'Romania',
'RUS': 'Russian Federation',
'RWA': 'Rwanda',
'BLM': 'Saint Barthélemy',
'SHN': 'Saint Helena, Ascension and Tristan da Cunha',
'KNA': 'Saint Kitts and Nevis',
'LCA': 'Saint Lucia',
'MAF': 'Saint Martin (French part)',
'SPM': 'Saint Pierre and Miquelon',
'VCT': 'Saint Vincent and the Grenadines',
'WSM': 'Samoa',
'SMR': 'San Marino',
'STP': 'Sao Tome and Principe',
'SAU': 'Saudi Arabia',
'SEN': 'Senegal',
'SRB': 'Serbia',
'SYC': 'Seychelles',
'SLE': 'Sierra Leone',
'SGP': 'Singapore',
'SXM': 'Sint Maarten (Dutch part)',
'SVK': 'Slovakia',
'SVN': 'Slovenia',
'SLB': 'Solomon Islands',
'SOM': 'Somalia',
'ZAF': 'South Africa',
'SGS': 'South Georgia and the South Sandwich Islands',
'ESP': 'Spain',
'LKA': 'Sri Lanka',
'SDN': 'Sudan',
'SUR': 'Suriname',
'SSD': 'South Sudan',
'SJM': 'Svalbard and Jan Mayen',
'SWZ': 'Swaziland',
'SWE': 'Sweden',
'CHE': 'Switzerland',
'SYR': 'Syrian Arab Republic',
'TWN': 'Taiwan, Province of China',
'TJK': 'Tajikistan',
'TZA': 'Tanzania, United Republic of',
'THA': 'Thailand',
'TLS': 'Timor-Leste',
'TGO': 'Togo',
'TKL': 'Tokelau',
'TON': 'Tonga',
'TTO': 'Trinidad and Tobago',
'TUN': 'Tunisia',
'TUR': 'Turkey',
'TKM': 'Turkmenistan',
'TCA': 'Turks and Caicos Islands',
'TUV': 'Tuvalu',
'UGA': 'Uganda',
'UKR': 'Ukraine',
'ARE': 'United Arab Emirates',
'GBR': 'United Kingdom',
'USA': 'United States',
'UMI': 'United States Minor Outlying Islands',
'URY': 'Uruguay',
'UZB': 'Uzbekistan',
'VUT': 'Vanuatu',
'VEN': 'Venezuela, Bolivarian Republic of',
'VNM': 'Viet Nam',
'VGB': 'Virgin Islands, British',
'VIR': 'Virgin Islands, U.S.',
'WLF': 'Wallis and Futuna',
'ESH': 'Western Sahara',
'YEM': 'Yemen',
'ZMB': 'Zambia',
'ZWE': 'Zimbabwe'
};
codes.alpha2ToName = {
'AF': 'Afghanistan',
'AX': 'Åland Islands',
'AL': 'Albania',
'DZ': 'Algeria',
'AS': 'American Samoa',
'AD': 'Andorra',
'AO': 'Angola',
'AI': 'Anguilla',
'AQ': 'Antarctica',
'AG': 'Antigua and Barbuda',
'AR': 'Argentina',
'AM': 'Armenia',
'AW': 'Aruba',
'AU': 'Australia',
'AT': 'Austria',
'AZ': 'Azerbaijan',
'BS': 'Bahamas',
'BH': 'Bahrain',
'BD': 'Bangladesh',
'BB': 'Barbados',
'BY': 'Belarus',
'BE': 'Belgium',
'BZ': 'Belize',
'BJ': 'Benin',
'BM': 'Bermuda',
'BT': 'Bhutan',
'BO': 'Bolivia, Plurinational State of',
'BQ': 'Bonaire, Sint Eustatius and Saba',
'BA': 'Bosnia and Herzegovina',
'BW': 'Botswana',
'BV': 'Bouvet Island',
'BR': 'Brazil',
'IO': 'British Indian Ocean Territory',
'BN': 'Brunei Darussalam',
'BG': 'Bulgaria',
'BF': 'Burkina Faso',
'BI': 'Burundi',
'KH': 'Cambodia',
'CM': 'Cameroon',
'CA': 'Canada',
'CV': 'Cape Verde',
'KY': 'Cayman Islands',
'CF': 'Central African Republic',
'TD': 'Chad',
'CL': 'Chile',
'CN': 'China',
'CX': 'Christmas Island',
'CC': 'Cocos (Keeling) Islands',
'CO': 'Colombia',
'KM': 'Comoros',
'CG': 'Congo',
'CD': 'Congo, The Democratic Republic of the',
'CK': 'Cook Islands',
'CR': 'Costa Rica',
'CI': 'Côte d\'Ivoire',
'HR': 'Croatia',
'CU': 'Cuba',
'CW': 'Curaçao',
'CY': 'Cyprus',
'CZ': 'Czech Republic',
'DK': 'Denmark',
'DJ': 'Djibouti',
'DM': 'Dominica',
'DO': 'Dominican Republic',
'EC': 'Ecuador',
'EG': 'Egypt',
'SV': 'El Salvador',
'GQ': 'Equatorial Guinea',
'ER': 'Eritrea',
'EE': 'Estonia',
'ET': 'Ethiopia',
'FK': 'Falkland Islands (Malvinas)',
'FO': 'Faroe Islands',
'FJ': 'Fiji',
'FI': 'Finland',
'FR': 'France',
'GF': 'French Guiana',
'PF': 'French Polynesia',
'TF': 'French Southern Territories',
'GA': 'Gabon',
'GM': 'Gambia',
'GE': 'Georgia',
'DE': 'Germany',
'GH': 'Ghana',
'GI': 'Gibraltar',
'GR': 'Greece',
'GL': 'Greenland',
'GD': 'Grenada',
'GP': 'Guadeloupe',
'GU': 'Guam',
'GT': 'Guatemala',
'GG': 'Guernsey',
'GN': 'Guinea',
'GW': 'Guinea-Bissau',
'GY': 'Guyana',
'HT': 'Haiti',
'HM': 'Heard Island and McDonald Islands',
'VA': 'Holy See (Vatican City State)',
'HN': 'Honduras',
'HK': 'Hong Kong',
'HU': 'Hungary',
'IS': 'Iceland',
'IN': 'India',
'ID': 'Indonesia',
'IR': 'Iran, Islamic Republic of',
'IQ': 'Iraq',
'IE': 'Ireland',
'IM': 'Isle of Man',
'IL': 'Israel',
'IT': 'Italy',
'JM': 'Jamaica',
'JP': 'Japan',
'JE': 'Jersey',
'JO': 'Jordan',
'KZ': 'Kazakhstan',
'KE': 'Kenya',
'KI': 'Kiribati',
'KP': 'Korea, Democratic People\'s Republic of',
'KR': 'Korea, Republic of',
'KW': 'Kuwait',
'KG': 'Kyrgyzstan',
'LA': 'Lao People\'s Democratic Republic',
'LV': 'Latvia',
'LB': 'Lebanon',
'LS': 'Lesotho',
'LR': 'Liberia',
'LY': 'Libya',
'LI': 'Liechtenstein',
'LT': 'Lithuania',
'LU': 'Luxembourg',
'MO': 'Macao',
'MK': 'Macedonia, Republic of',
'MG': 'Madagascar',
'MW': 'Malawi',
'MY': 'Malaysia',
'MV': 'Maldives',
'ML': 'Mali',
'MT': 'Malta',
'MH': 'Marshall Islands',
'MQ': 'Martinique',
'MR': 'Mauritania',
'MU': 'Mauritius',
'YT': 'Mayotte',
'MX': 'Mexico',
'FM': 'Micronesia, Federated States of',
'MD': 'Moldova, Republic of',
'MC': 'Monaco',
'MN': 'Mongolia',
'ME': 'Montenegro',
'MS': 'Montserrat',
'MA': 'Morocco',
'MZ': 'Mozambique',
'MM': 'Myanmar',
'NA': 'Namibia',
'NR': 'Nauru',
'NP': 'Nepal',
'NL': 'Netherlands',
'NC': 'New Caledonia',
'NZ': 'New Zealand',
'NI': 'Nicaragua',
'NE': 'Niger',
'NG': 'Nigeria',
'NU': 'Niue',
'NF': 'Norfolk Island',
'MP': 'Northern Mariana Islands',
'NO': 'Norway',
'OM': 'Oman',
'PK': 'Pakistan',
'PW': 'Palau',
'PS': 'Palestine, State of',
'PA': 'Panama',
'PG': 'Papua New Guinea',
'PY': 'Paraguay',
'PE': 'Peru',
'PH': 'Philippines',
'PN': 'Pitcairn',
'PL': 'Poland',
'PT': 'Portugal',
'PR': 'Puerto Rico',
'QA': 'Qatar',
'RE': 'Réunion',
'RO': 'Romania',
'RU': 'Russian Federation',
'RW': 'Rwanda',
'BL': 'Saint Barthélemy',
'SH': 'Saint Helena, Ascension and Tristan da Cunha',
'KN': 'Saint Kitts and Nevis',
'LC': 'Saint Lucia',
'MF': 'Saint Martin (French part)',
'PM': 'Saint Pierre and Miquelon',
'VC': 'Saint Vincent and the Grenadines',
'WS': 'Samoa',
'SM': 'San Marino',
'ST': 'Sao Tome and Principe',
'SA': 'Saudi Arabia',
'SN': 'Senegal',
'RS': 'Serbia',
'SC': 'Seychelles',
'SL': 'Sierra Leone',
'SG': 'Singapore',
'SX': 'Sint Maarten (Dutch part)',
'SK': 'Slovakia',
'SI': 'Slovenia',
'SB': 'Solomon Islands',
'SO': 'Somalia',
'ZA': 'South Africa',
'GS': 'South Georgia and the South Sandwich Islands',
'ES': 'Spain',
'LK': 'Sri Lanka',
'SD': 'Sudan',
'SR': 'Suriname',
'SS': 'South Sudan',
'SJ': 'Svalbard and Jan Mayen',
'SZ': 'Swaziland',
'SE': 'Sweden',
'CH': 'Switzerland',
'SY': 'Syrian Arab Republic',
'TW': 'Taiwan',
'TJ': 'Tajikistan',
'TZ': 'Tanzania, United Republic of',
'TH': 'Thailand',
'TL': 'Timor-Leste',
'TG': 'Togo',
'TK': 'Tokelau',
'TO': 'Tonga',
'TT': 'Trinidad and Tobago',
'TN': 'Tunisia',
'TR': 'Turkey',
'TM': 'Turkmenistan',
'TC': 'Turks and Caicos Islands',
'TV': 'Tuvalu',
'UG': 'Uganda',
'UA': 'Ukraine',
'AE': 'United Arab Emirates',
'GB': 'United Kingdom',
'US': 'United States',
'UM': 'United States Minor Outlying Islands',
'UY': 'Uruguay',
'UZ': 'Uzbekistan',
'VU': 'Vanuatu',
'VE': 'Venezuela, Bolivarian Republic of',
'VN': 'Viet Nam',
'VG': 'Virgin Islands, British',
'VI': 'Virgin Islands, U.S.',
'WF': 'Wallis and Futuna',
'EH': 'Western Sahara',
'YE': 'Yemen',
'ZM': 'Zambia',
'ZW': 'Zimbabwe'
};
codes.alpha3ToName['EUR'] = 'European Union'
codes.alpha2ToName['EU'] = 'European Union'
codes.nameToAlpha3 = _.invert(codes.alpha3ToName);
codes.nameToAlpha2 = _.invert(codes.alpha2ToName);
$scope.selected = undefined;
$scope.countries = _.keys(codes.nameToAlpha3);
$scope.getFlag = function(name) {
if (codes.nameToAlpha3[name] != undefined)
return 'flag-' + codes.nameToAlpha3[name].toLowerCase();
};
});
</script><script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-61158370-1', 'auto');
ga('send', 'pageview');
</script></body></html>