From 3c12a7336103b21fa47684eee5a15c4f08cfebb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Wed, 28 Sep 2011 08:42:37 +0000 Subject: [PATCH] adding a long list of countries to discojuice git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2937 44740490-163a-0410-bde0-09ae8108e29a --- .../www/discojuice/discojuice.misc.js | 524 ++++++++++++++++-- 1 file changed, 478 insertions(+), 46 deletions(-) diff --git a/modules/discojuice/www/discojuice/discojuice.misc.js b/modules/discojuice/www/discojuice/discojuice.misc.js index 0e087c9f0..7a31fee70 100644 --- a/modules/discojuice/www/discojuice/discojuice.misc.js +++ b/modules/discojuice/www/discojuice/discojuice.misc.js @@ -20,67 +20,499 @@ var DiscoJuice = {}; */ DiscoJuice.Constants = { "Countries": { + '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', + 'AC': 'Ascension Island', 'AU': 'Australia', 'AT': 'Austria', - 'CZ': 'Czech', - 'CN': 'China', + 'AZ': 'Azerbaijan', + 'BS': 'Bahamas', //The Bahamas + 'BH': 'Bahrain', + 'BD': 'Bangladesh', + 'BB': 'Barbados', + 'BY': 'Belarus', + 'BE': 'Belgium', + 'BZ': 'Belize', + 'BJ': 'Benin', + 'BM': 'Bermuda', + 'BT': 'Bhutan', + 'BO': 'Bolivia', + 'BQ': 'Bonaire, Sint Eustatius and Saba', //Caribbean Netherlands + 'BA': 'Bosnia and Herzegovina', + 'BW': 'Botswana', + 'BV': 'Bouvet Island', + 'BR': 'Brazil', + 'IO': 'British Indian Ocean Territory', + 'VG': 'British Virgin Islands', //Virgin Islands, British + 'BN': 'Brunei Darussalam', // Brunei + 'BG': 'Bulgaria', + 'BF': 'Burkina Faso', + 'MM': 'Burma', //Myanmar + 'BI': 'Burundi', + 'KH': 'Cambodia', + 'CM': 'Cameroon', 'CA': 'Canada', - 'DK': 'Denmark', - 'FI': 'Finland', - 'FR': 'France', - 'DE': 'Germany', - 'GR': 'Greece', + 'CV': 'Cape Verde', + 'KY': 'Cayman Islands', + 'CF': 'Central African Republic', + 'TD': 'Chad', + 'CL': 'Chile', + 'CN': 'China', //People's Republic of China + 'CX': 'Christmas Island', + 'CC': 'Cocos (Keeling) Islands', + 'CO': 'Colombia', + 'KM': 'Comoros', + 'CD': 'Congo, Democratic Republic of the', //Democratic Republic of the Congo + 'CG': 'Congo, Republic of the', //Republic of the Congo|Congo + 'CK': 'Cook Islands', + 'CR': 'Costa Rica', + 'CI': "CĂ´te d'Ivoire", 'HR': 'Croatia', - 'IE': 'Ireland', - 'IT': 'Italy', - 'IS': 'Iceland', - 'JP': 'Japan', + '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', //|Falkland Islands (Malvinas) + 'FO': 'Faroe Islands', + 'FJ': 'Fiji', + 'FI': 'Finland', + 'FR': 'France', + 'GF': 'French Guiana', + 'PF': 'French Polynesia', + 'TF': 'French Southern and Antarctic Lands', //French Southern Territories + 'GA': 'Gabon', + 'GM': 'Gambia', //The 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', + 'HN': 'Honduras', + 'HK': 'Hong Kong', 'HU': 'Hungary', - 'LU': 'Luxembourg', - 'NL': 'Netherlands', - 'NO': 'Norway', + 'IS': 'Iceland', + 'IN': 'India', + 'ID': 'Indonesia', + 'IR': 'Iran', //Iran, Islamic Republic of + 'IQ': 'Iraq', + 'IE': 'Ireland', //Republic of Ireland + 'IM': 'Isle of Man', + 'IL': 'Israel', + 'IT': 'Italy', + 'JM': 'Jamaica', + 'JP': 'Japan', + 'JE': 'Jersey', + 'JO': 'Jordan', + 'KZ': 'Kazakhstan', + 'KE': 'Kenya', + 'KI': 'Kiribati', + 'KP': 'North Korea', //Korea, Democratic People's Republic of + 'KR': 'South Korea', //Korea, Republic of + 'KW': 'Kuwait', + 'KG': 'Kyrgyzstan', + 'LA': 'Laos', //Lao People's Democratic Republic + 'LV': 'Latvia', + 'LB': 'Lebanon', + 'LS': 'Lesotho', + 'LR': 'Liberia', + 'LY': 'Libya', //Libyan Arab Jamahiriya + 'LI': 'Liechtenstein', + 'LT': 'Lithuania', + 'LU': 'Luxembourg', + 'MO': 'Macau', //Macao|Macao Special Administrative Region of the People's Republic of China + 'MK': 'Macedonia', //Republic of Macedonia|FYR Macedonia|Macedonia, the former Yugoslav 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', //Federated States of Micronesia + 'MD': 'Moldova', //Moldova, Republic of + 'MC': 'Monaco', + 'MN': 'Mongolia', + 'ME': 'Montenegro', + 'MS': 'Montserrat', + 'MA': 'Morocco', + 'MZ': 'Mozambique', + 'NA': 'Namibia', + 'NR': 'Nauru', + 'NP': 'Nepal', + 'NL': 'Netherlands', + 'NC': 'New Caledonia', 'NZ': 'New Zealand', - 'PL': 'Poland', - 'PT': 'Portugal', - 'SI': 'Slovenia', - 'ES': 'Spain', - 'SE': 'Sweden', - 'CH': 'Switzerland', - 'TR': 'Turkey', - 'US': 'USA', - 'GB': 'UK', - 'XX': 'Experimental' + '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 Palestine|Palestinian territories|Palestinian Territory, Occupied + 'PA': 'Panama', + 'PG': 'Papua New Guinea', + 'PY': 'Paraguay', + 'PE': 'Peru', + 'PH': 'Philippines', + 'PN': 'Pitcairn Islands', //Pitcairn + 'PL': 'Poland', + 'PT': 'Portugal', + 'PR': 'Puerto Rico', + 'QA': 'Qatar', + 'RE': 'RĂ©union', + 'RO': 'Romania', + 'RU': 'Russia', //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', //Collectivity of Saint Martin|Saint Martin (French part) + 'PM': 'Saint Pierre and Miquelon', + 'VC': 'Saint Vincent and the Grenadines', + 'WS': 'Samoa', + 'SM': 'San Marino', + 'ST': 'SĂŁo TomĂ© and PrĂncipe', + 'SA': 'Saudi Arabia', + 'SN': 'Senegal', + 'RS': 'Serbia', + 'SC': 'Seychelles', + 'SL': 'Sierra Leone', + 'SG': 'Singapore', + 'SX': 'Sint Maarten', //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', + 'SJ': 'Svalbard and Jan Mayen', + 'SZ': 'Swaziland', + 'SE': 'Sweden', + 'CH': 'Switzerland', + 'SY': 'Syria', //Syrian Arab Republic + 'TW': 'Taiwan', //Taiwan, Province of China + 'TJ': 'Tajikistan', + 'TZ': 'Tanzania', //Tanzania, United Republic of + 'TH': 'Thailand', + 'TL': 'Timor-Leste', //East Timor + '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', + 'GB': 'UK', //United Kingdom|United Kingdom of Great Britian and Northern Ireland|Great Britian + 'AE': 'United Arab Emirates', + 'UM': 'United States Minor Outlying Islands', + 'UY': 'Uruguay', + 'US': 'USA', //United States of America|United States + 'UZ': 'Uzbekistan', + 'VU': 'Vanuatu', + 'VA': 'Vatican City', //Holy See (Vatican City State) + 'VE': 'Venezuela', //Venezuela, Bolivarian Republic of + 'VN': 'Viet Nam', //Vietnam, + 'VI': 'Virgin Islands, U.S.', //United States Virgin Islands, + 'WF': 'Wallis and Futuna', + 'EH': 'Western Sahara', + 'YE': 'Yemen', + 'ZM': 'Zambia', + 'ZW': 'Zimbabwe', + 'XX': 'Experimental' }, "Flags": { - 'AU': 'au.png', + 'AD': 'ad.png', + 'AE': 'ae.png', + 'AF': 'af.png', + 'AG': 'ag.png', + 'AI': 'ai.png', + 'AL': 'al.png', + 'AM': 'am.png', + 'AN': 'an.png', + 'AO': 'ao.png', + 'AR': 'ar.png', + 'AS': 'as.png', 'AT': 'at.png', - 'CZ': 'cz.png', + 'AU': 'au.png', + 'AW': 'aw.png', + 'AX': 'ax.png', + 'AZ': 'az.png', + 'BA': 'ba.png', + 'BB': 'bb.png', + 'BD': 'bd.png', + 'BE': 'be.png', + 'BF': 'bf.png', + 'BG': 'bg.png', + 'BH': 'bh.png', + 'BI': 'bi.png', + 'BJ': 'bj.png', + 'BM': 'bm.png', + 'BN': 'bn.png', + 'BO': 'bo.png', + 'BR': 'br.png', + 'BS': 'bs.png', + 'BT': 'bt.png', + 'BV': 'bv.png', + 'BW': 'bw.png', + 'BY': 'by.png', + 'BZ': 'bz.png', 'CA': 'ca.png', + 'CC': 'cc.png', + 'CD': 'cd.png', + 'CF': 'cf.png', + 'CG': 'cg.png', + 'CH': 'ch.png', + 'CI': 'ci.png', + 'CK': 'ck.png', + 'CL': 'cl.png', + 'CM': 'cm.png', 'CN': 'cn.png', - 'DK': 'dk.png', - 'FI': 'fi.png', - 'FR': 'fr.png', + 'CO': 'co.png', + 'CR': 'cr.png', + 'CS': 'cs.png', + 'CU': 'cu.png', + 'CV': 'cv.png', + 'CX': 'cx.png', + 'CY': 'cy.png', + 'CZ': 'cz.png', 'DE': 'de.png', - 'GR': 'gr.png', - 'HR': 'hr.png', - 'IE': 'ie.png', - 'IT': 'it.png', - 'IS': 'is.png', - 'JP': 'jp.png', + 'DJ': 'dj.png', + 'DK': 'dk.png', + 'DM': 'dm.png', + 'DO': 'do.png', + 'DZ': 'dz.png', + 'EC': 'ec.png', + 'EE': 'ee.png', + 'EG': 'eg.png', + 'EH': 'eh.png', + 'ER': 'er.png', + 'ES': 'es.png', + 'ET': 'et.png', + 'FI': 'fi.png', + 'FJ': 'fj.png', + 'FK': 'fk.png', + 'FM': 'fm.png', + 'FO': 'fo.png', + 'FR': 'fr.png', + 'GA': 'ga.png', + 'GB': 'gb.png', + 'GD': 'gd.png', + 'GE': 'ge.png', + 'GF': 'gf.png', + 'GH': 'gh.png', + 'GI': 'gi.png', + 'GL': 'gl.png', + 'GM': 'gm.png', + 'GN': 'gn.png', + 'GP': 'gp.png', + 'GQ': 'gq.png', + 'GR': 'gr.png', + 'GS': 'gs.png', + 'GT': 'gt.png', + 'GU': 'gu.png', + 'GW': 'gw.png', + 'GY': 'gy.png', + 'HK': 'hk.png', + 'HM': 'hm.png', + 'HN': 'hn.png', + 'HR': 'hr.png', + 'HT': 'ht.png', 'HU': 'hu.png', - 'LU': 'lu.png', - 'NL': 'nl.png', + 'ID': 'id.png', + 'IE': 'ie.png', + 'IL': 'il.png', + 'IN': 'in.png', + 'IO': 'io.png', + 'IQ': 'iq.png', + 'IR': 'ir.png', + 'IS': 'is.png', + 'IT': 'it.png', + 'JM': 'jm.png', + 'JO': 'jo.png', + 'JP': 'jp.png', + 'KE': 'ke.png', + 'KG': 'kg.png', + 'KH': 'kh.png', + 'KI': 'ki.png', + 'KM': 'km.png', + 'KN': 'kn.png', + 'KP': 'kp.png', + 'KR': 'kr.png', + 'KW': 'kw.png', + 'KY': 'ky.png', + 'KZ': 'kz.png', + 'LA': 'la.png', + 'LB': 'lb.png', + 'LC': 'lc.png', + 'LI': 'li.png', + 'LK': 'lk.png', + 'LR': 'lr.png', + 'LS': 'ls.png', + 'LT': 'lt.png', + 'LU': 'lu.png', + 'LV': 'lv.png', + 'LY': 'ly.png', + 'MA': 'ma.png', + 'MC': 'mc.png', + 'MD': 'md.png', + 'ME': 'me.png', + 'MG': 'mg.png', + 'MH': 'mh.png', + 'MK': 'mk.png', + 'ML': 'ml.png', + 'MM': 'mm.png', + 'MN': 'mn.png', + 'MO': 'mo.png', + 'MP': 'mp.png', + 'MQ': 'mq.png', + 'MR': 'mr.png', + 'MS': 'ms.png', + 'MT': 'mt.png', + 'MU': 'mu.png', + 'MV': 'mv.png', + 'MW': 'mw.png', + 'MX': 'mx.png', + 'MY': 'my.png', + 'MZ': 'mz.png', + 'NA': 'na.png', + 'NC': 'nc.png', + 'NE': 'ne.png', + 'NF': 'nf.png', + 'NG': 'ng.png', + 'NI': 'ni.png', + 'NL': 'nl.png', + 'NO': 'no.png', + 'NP': 'np.png', + 'NR': 'nr.png', + 'NU': 'nu.png', 'NZ': 'nz.png', - 'NO': 'no.png', - 'PL': 'pl.png', - 'PT': 'pt.png', - 'SI': 'si.png', - 'ES': 'es.png', + 'OM': 'om.png', + 'PA': 'pa.png', + 'PE': 'pe.png', + 'PF': 'pf.png', + 'PG': 'pg.png', + 'PH': 'ph.png', + 'PK': 'pk.png', + 'PL': 'pl.png', + 'PM': 'pm.png', + 'PN': 'pn.png', + 'PR': 'pr.png', + 'PS': 'ps.png', + 'PT': 'pt.png', + 'PW': 'pw.png', + 'PY': 'py.png', + 'QA': 'qa.png', + 'RE': 're.png', + 'RO': 'ro.png', + 'RS': 'rs.png', + 'RU': 'ru.png', + 'RW': 'rw.png', + 'SA': 'sa.png', + 'SB': 'sb.png', + 'SC': 'sc.png', + 'SD': 'sd.png', 'SE': 'se.png', - 'CH': 'ch.png', - 'TR': 'tr.png', - 'GB': 'gb.png', - 'US': 'us.png' + 'SG': 'sg.png', + 'SH': 'sh.png', + 'SI': 'si.png', + 'SJ': 'sj.png', + 'SK': 'sk.png', + 'SL': 'sl.png', + 'SM': 'sm.png', + 'SN': 'sn.png', + 'SO': 'so.png', + 'SR': 'sr.png', + 'ST': 'st.png', + 'SV': 'sv.png', + 'SY': 'sy.png', + 'SZ': 'sz.png', + 'TC': 'tc.png', + 'TD': 'td.png', + 'TF': 'tf.png', + 'TG': 'tg.png', + 'TH': 'th.png', + 'TJ': 'tj.png', + 'TK': 'tk.png', + 'TL': 'tl.png', + 'TM': 'tm.png', + 'TN': 'tn.png', + 'TO': 'to.png', + 'TR': 'tr.png', + 'TT': 'tt.png', + 'TV': 'tv.png', + 'TW': 'tw.png', + 'TZ': 'tz.png', + 'UA': 'ua.png', + 'UG': 'ug.png', + 'UM': 'um.png', + 'US': 'us.png', + 'UY': 'uy.png', + 'UZ': 'uz.png', + 'VA': 'va.png', + 'VC': 'vc.png', + 'VE': 've.png', + 'VG': 'vg.png', + 'VI': 'vi.png', + 'VN': 'vn.png', + 'VU': 'vu.png', + 'WF': 'wf.png', + 'WS': 'ws.png', + 'YE': 'ye.png', + 'YT': 'yt.png', + 'ZA': 'za.png', + 'ZM': 'zm.png', + 'ZW': 'zw.png' } }; -- GitLab