mirror of https://github.com/xfarrow/blink
Update userprofile.html
This commit is contained in:
parent
9244923ae3
commit
bcd1f6980b
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Resume</title>
|
||||
<title>Page Title</title>
|
||||
<link rel="stylesheet" href="../css/profile.css">
|
||||
</head>
|
||||
<body>
|
||||
<body style="display: none;">
|
||||
<div class="container">
|
||||
<header>
|
||||
<img src="../content/profile-picture-example.jpg" alt="Profile Picture" class="profile-picture">
|
||||
|
@ -79,14 +79,16 @@
|
|||
const data = await response.json();
|
||||
if(response.ok){
|
||||
populateFields(data.display_name, data.email);
|
||||
document.body.style.display = "block"; // Show page
|
||||
}
|
||||
else{
|
||||
alert(response.error);
|
||||
alert(data.error);
|
||||
}
|
||||
}
|
||||
|
||||
function populateFields(displayName, email){
|
||||
document.getElementById('displayName').textContent = displayName;
|
||||
document.title = `${displayName} - Blink`
|
||||
document.getElementById('email').textContent = email;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue