diff --git a/app/app.js b/app/app.js index c0fa629..ce232d1 100644 --- a/app/app.js +++ b/app/app.js @@ -197,6 +197,24 @@ var app = new Vue({ }, + getCountryName: function(countryCode) + { + //console.log("getCountryName(" + countryCode + "/" + this.countryCodes.length +"): this.countryCodes=", this.countryCodes); + for (var i = 0; i < this.countryCodes.length; i++) + { + var country = this.countryCodes[i]; + //console.log("country.code=" + country.code); + if (country.code == countryCode) + { + //console.log("country.name=" + country.name); + return country.name; + } + } + + return ""; + }, + + displayLocation: function() { /* @@ -207,8 +225,9 @@ var app = new Vue({ */ - return this.sections.basics.location.city + ", " + this.sections.basics.location.countryCode; + return this.sections.basics.location.city + ", " + this.getCountryName(this.sections.basics.location.countryCode); }, + skillLevelAsPercent: function(index) diff --git a/index.html b/index.html index c933bc1..ea29669 100644 --- a/index.html +++ b/index.html @@ -197,16 +197,14 @@
Location
- Where do you primarily live or work from? + + Where do you primarily live or work from?
+ All field are optional but City and/or Country are recommended. +

- + - Your street address -

-

- - - Post or Zip cod +

@@ -214,17 +212,22 @@ City or town

- + + + +

+

+ + + +

+

+ - The 2-character country code per ISO-3166-1 ALPHA-2, e.g. US, AU, IN (https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) -

-

- - - The general region or status where you live - e.g. a US state, or a province, for instance. +

@@ -267,8 +270,8 @@ - - + +
Social Network Profiles
@@ -292,7 +295,7 @@
-
+
@@ -806,7 +809,7 @@
- +