Fill in some accesskeys and tooltips.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3823 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-02-05 23:04:04 +00:00
parent 1aa4b0e590
commit 412dce0a47
2 changed files with 12 additions and 4 deletions

View File

@ -165,6 +165,14 @@ function stats() {
document.getElementById("statsPane").style.display = 'flex';
}
function toggleStats() {
if (document.getElementById("statsPane").style.display == 'none') {
stats();
} else {
closeStats();
}
}
function guessMode(name) {
return name.endsWith(".js") ? "javascript" :
name.endsWith(".html") ? "htmlmixed" :

View File

@ -11,11 +11,11 @@
<div class="navigation">
<span>😎</span>
<span id="title">Tilde Friends</span>
<a href="/">home</a>
<a href="/~core/apps/">apps</a>
<a accesskey="h" data-tip="Open home app." href="/">home</a>
<a accesskey="a" data-tip="Open apps list." href="/~core/apps/">apps</a>
<a accesskey="e" data-tip="Toggle the app editor." href="#" onclick="event.preventDefault(); toggleEdit()">edit</a>
<a href="#" onclick="event.preventDefault(); trace()">trace</a>
<a href="#" onclick="event.preventDefault(); stats()">stats</a>
<a accesskey="t" data-tip="Open performance trace." href="#" onclick="event.preventDefault(); trace()">trace</a>
<a accesskey="g" data-tip="Show graphs." href="#" onclick="event.preventDefault(); toggleStats()">stats</a>
<span id="status"></span>
<span id="login"></span>
</div>