Sequence of skip links

main
Bob Mottram 2021-02-01 17:32:05 +00:00
parent fc0ab024d9
commit 701ca8372b
2 changed files with 9 additions and 8 deletions

View File

@ -705,14 +705,15 @@ def htmlProfile(rssIconAtTop: bool,
movedTo, alsoKnownAs,
pinnedContent)
# Links for keyboard navigation
profileStr = \
'<div class="transparent">' + \
'<label class="transparent">' + \
'<a class="skip-main" href="#buttonheader">' + \
translate['Skip to timeline'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
translate['Switch to timeline view'] + '</a></label>' + \
translate['Switch to timeline view'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a class="skip-main" href="#buttonheader">' + \
translate['Skip to timeline'] + '</a></label>' + \
'</div>\n'
profileStr += profileHeaderStr + donateSection

View File

@ -369,6 +369,9 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
tlStr += \
'<div class="transparent">' + \
'<label class="transparent">' + \
'<a href="/users/' + nickname + '">' + \
translate['Switch to profile view'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a class="skip-main" href="#timeline">' + \
translate['Skip to timeline'] + '</a></label> | ' + \
'<label class="transparent">' + \
@ -376,10 +379,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
translate['Skip to Newswire'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a class="skip-links" href="#links">' + \
translate['Skip to Links'] + '</a></label> | ' + \
'<label class="transparent">' + \
'<a href="/users/' + nickname + '">' + \
translate['Switch to profile view'] + '</a></label>' + \
translate['Skip to Links'] + '</a></label>' + \
'</div>\n'
# banner and row of buttons