consolidate the biz

This commit is contained in:
ethan merchant 2024-11-03 01:54:29 -05:00
parent bbfde69bab
commit 889955adbc
2 changed files with 0 additions and 49 deletions

View file

@ -1,49 +0,0 @@
<h2>shared accounts:</h2>
<!-- there might be sections for personal accounts later ~ -->
<div id='accounts'></div>
<script>
accounts = []
el = document.getElementById('accounts')
for (i = 0; i < accounts.length; i++) {
a = accounts[i]
el.innerHTML += `<div class='account ${(a.dead ? 'dead' : '')}'>
<div>
<b>${a.name}</b>
<a href='${a.link}'>&RightArrow;</a>
</div>
<div>${a.user}</div>
<div class='pass'>
<div onclick='
this.innerHTML="&checkmark;&nbsp;";
navigator.clipboard.writeText("${a.pass}")
'>&boxbox;&nbsp;</div>
<div onclick='
this.innerHTML === "${a.pass}" ?
window.getSelection().selectAllChildren(this) :
this.innerHTML = "${a.pass}"
'>${'*'.repeat(a.pass.length)}</div>
</div>
</div>`
}
</script>
<style>
.account {
margin-bottom: 32px;
}
.dead {
opacity: 0.666;
}
.pass {
cursor: pointer;
display: flex;
font-family: 'Courier Prime', monospace;
}
a {
text-decoration: none;
}
</style>