copious-transitions
Version:
Framework for working with frameworks
28 lines (23 loc) • 723 B
HTML
<div id = 'profile-line-container' >
I am <span id='who-am-i'></span>
<br>
<a id='who-my-profile' class="nav-link" href=/webcit/do_template?template=user_show?who=" target="WEBCIT" >
View my Profile
</a>
</div>
<script>
g_loginValueViews[`{{yourProileLinks.instantiate}}`] = (acctData) => {
let selfness = document.getElementById('who-am-i')
if ( selfness ) {
selfness.innerHTML = acctData.email
}
let linkness = document.getElementById('who-my-profile')
if ( linkness ) {
let href = linkness.href
if ( href[href.length-1] === '=' ) {
href += acctData.email
linkness.href = href
}
}
}
</script>