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