Skip to content

Commit

Permalink
Removed hypens from data mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
hcanna committed Mar 11, 2016
1 parent ea5e74a commit c53346b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions _javascript/curriculum.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,33 @@ $(function(){
{
url: "https://api.github.com/users/"+username,
success: function(data, textStatus, jqXHR){
$("#teacher-name").text(data.name);
$("#teachername").text(data.name);

$("<span/>",
{
text: data.login
}).appendTo("#teacher-username");
}).appendTo("#teacherusername");

// Profile email
if(data.email){
$("<span/>",
{
text: data.email
}).appendTo("#teacher-email");
}).appendTo("#teacheremail");
}
else{
$("#teacher-email").toggleClass("hidden");
$("#teacheremail").toggleClass("hidden");
}

// Profile company
if(data.company){
$("<span/>",
{
text: data.company
}).appendTo("#teacher-organization");
}).appendTo("#teacherorganization");
}
else{
$("#teacher-organization").toggleClass("hidden");
$("#teacherorganization").toggleClass("hidden");
}


Expand All @@ -56,35 +56,35 @@ $(function(){
$("<span/>",
{
text: data.location
}).appendTo("#teacher-location");
}).appendTo("#teacherlocation");
}
else{
$("#teacher-location").toggleClass("hidden");
$("#teacherlocation").toggleClass("hidden");
}

$("<img/>",
{
src: data.avatar_url,
class: "img-circle img-thumbnail"
}).appendTo("#teacher-avatar");
}).appendTo("#teacheravatar");

$("<span/>",
{
text: data.public_repos,
class: "badge"
}).appendTo("#teacher-repo");
}).appendTo("#teacherrepo");

$("<span/>",
{
text: data.followers,
class: "badge"
}).appendTo("#teacher-followers");
}).appendTo("#teacherfollowers");

$("<span/>",
{
text: data.following,
class: "badge"
}).appendTo("#teacher-following");
}).appendTo("#teacherfollowing");

$("#teacher").toggleClass("hidden");

Expand Down

0 comments on commit c53346b

Please sign in to comment.