Skip to content

Commit

Permalink
screenname to email
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Sep 13, 2023
1 parent fdef190 commit 119b324
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apps/collection/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
const store = new Store("../../data/");
const container = document.getElementById("card-container");
const screenName = document.getElementById("screenName");
screenName.innerText = `hi, ${getUserInfo().data.registration.firstName}`;
screenName.innerText = `Hi, ${getUserInfo().email}`;
screenName.style.display = "";

function createAllCards(data, container) {
Expand Down
4 changes: 2 additions & 2 deletions apps/labeling/labelingSimpleAnnotationViewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@
async function initialize() {
const store = new Store("../../data/");
try {
let screenName = getUserInfo().data.registration.firstName;
let screenName = getUserInfo().email;
const screenNameDiv = document.getElementById("screenName");
screenNameDiv.innerText = `hi, ${screenName}`;
screenNameDiv.innerText = `Hi, ${screenName}`;
screenNameDiv.style.display = "";
// set collection info panel
let collectionInfoPanel = document.getElementById("collectionInfo");
Expand Down
4 changes: 2 additions & 2 deletions apps/labeling/pitfallsTable.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@
async function initialize() {
const store = new Store("../../data/");
try {
let screenName = getUserInfo().data.registration.firstName;
let screenName = getUserInfo().email;
const screenNameDiv = document.getElementById("screenName");
screenNameDiv.innerText = `hi, ${screenName}`;
screenNameDiv.innerText = `Hi, ${screenName}`;
screenNameDiv.style.display = "";
// set collection info panel
let collectionInfoPanel = document.getElementById("collectionInfo");
Expand Down
4 changes: 2 additions & 2 deletions apps/landing/crowd.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ <h3>Whole Slide Imaging</h3>
<script src="./util.js"></script>
<script type="text/javascript">
const store = new Store('../../data/');
let screenName = getUserInfo().data.registration.firstName;
let screenName = getUserInfo().email;
const screenNameElem = document.getElementById('screenName');
screenNameElem.innerText = `hi, ${screenName}`;
screenNameElem.innerText = `Hi, ${screenName}`;
screenNameElem.style.display = '';
function copyToken(){
navigator.clipboard.writeText(getCookie("token"));
Expand Down
4 changes: 2 additions & 2 deletions apps/landing/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ <h3>Whole Slide Imaging</h3>
<!-- <script type='text/javascript' src='../../common/util.js'></script> -->
<script type='text/javascript'>
const store = new Store('../../data/');
let screenName = getUserInfo().data.registration.firstName;
let screenName = getUserInfo().email;
const screenNameElem = document.getElementById('screenName');
screenNameElem.innerText = `hi, ${screenName}`;
screenNameElem.innerText = `Hi, ${screenName}`;
screenNameElem.style.display = '';
function copyToken(){
navigator.clipboard.writeText(getCookie("token"));
Expand Down
4 changes: 2 additions & 2 deletions apps/managment/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ <h1>Bulk User Managment</h1>

<script src="../landing/util.js"></script>
<script type="text/javascript">
let screenName = getUserInfo().data.registration.firstName;
let screenName = getUserInfo().email;
const screenNameElem = document.getElementById('screenName');
screenNameElem.innerText = `hi, ${screenName}`;
screenNameElem.innerText = `Hi, ${screenName}`;
screenNameElem.style.display = '';
</script>
<script src="https://code.jquery.com/jquery-3.6.3.min.js"></script>
Expand Down

0 comments on commit 119b324

Please sign in to comment.