mirror of
https://github.com/resume/resume.github.com.git
synced 2025-12-30 15:49:30 -06:00
Added a fun "Papa Bear" name in the event one doesnt have a name. Added a title modification.
This commit is contained in:
@@ -67,8 +67,13 @@ var run = function() {
|
||||
}
|
||||
}
|
||||
|
||||
var name = 'Papa Bear';
|
||||
if (data.user.name !== null && data.user.name !== undefined) {
|
||||
name = data.user.name;
|
||||
}
|
||||
|
||||
var view = {
|
||||
name: data.user.name,
|
||||
name: name,
|
||||
email: data.user.email,
|
||||
created_at: data.user.created_at,
|
||||
location: data.user.location,
|
||||
@@ -89,6 +94,7 @@ var run = function() {
|
||||
var template = data;
|
||||
var html = Mustache.to_html(template, view);
|
||||
$('#resume').html(html);
|
||||
document.title = name + "'s Résumé";
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user