mirror of https://gitlab.com/bashrc2/epicyon
Tab index for video controls
parent
3687fb04f6
commit
1183c6e8a8
|
@ -279,9 +279,9 @@ def _add_embedded_audio(translate: {}, content: str) -> str:
|
|||
continue
|
||||
content += \
|
||||
'<center>\n<span itemprop="audio">' + \
|
||||
'<audio controls>\n' + \
|
||||
'<audio controls tabindex="10">\n' + \
|
||||
'<source src="' + wrd + '" type="audio/' + \
|
||||
extension.replace('.', '') + '" tabindex="10">' + \
|
||||
extension.replace('.', '') + '">' + \
|
||||
translate['Your browser does not support the audio element.'] + \
|
||||
'</audio>\n</span>\n</center>\n'
|
||||
return content
|
||||
|
@ -324,9 +324,9 @@ def _add_embedded_video(translate: {}, content: str) -> str:
|
|||
'<figure id="videoContainer" ' + \
|
||||
'data-fullscreen="false">\n' + \
|
||||
' <video id="video" controls ' + \
|
||||
'preload="metadata">\n' + \
|
||||
'preload="metadata" tabindex="10">\n' + \
|
||||
'<source src="' + wrd + '" type="video/' + \
|
||||
extension.replace('.', '') + '" tabindex="10">\n' + \
|
||||
extension.replace('.', '') + '">\n' + \
|
||||
translate['Your browser does not support the video element.'] + \
|
||||
'</video>\n</figure>\n</span>\n</center>\n'
|
||||
return content
|
||||
|
|
|
@ -278,7 +278,7 @@ def _html_podcast_soundbites(link_url: str, extension: str,
|
|||
soundbite_title += ' ' + str(ctr)
|
||||
podcast_str += \
|
||||
' <span itemprop="trailer">\n' + \
|
||||
' <audio controls>\n' + \
|
||||
' <audio controls tabindex="10">\n' + \
|
||||
' <p>' + soundbite_title + '</p>\n' + \
|
||||
' <source src="' + preview_url + '" type="audio/' + \
|
||||
extension.replace('.', '') + '">' + \
|
||||
|
@ -372,7 +372,7 @@ def html_podcast_episode(css_cache: {}, translate: {},
|
|||
# podcast player widget
|
||||
podcast_str += \
|
||||
' <span itemprop="audio">\n' + \
|
||||
' <audio controls>\n' + \
|
||||
' <audio controls tabindex="10">\n' + \
|
||||
' <source src="' + link_url + '" type="audio/' + \
|
||||
audio_extension.replace('.', '') + '">' + \
|
||||
translate['Your browser does not support the audio element.'] + \
|
||||
|
@ -397,7 +397,8 @@ def html_podcast_episode(css_cache: {}, translate: {},
|
|||
' <span itemprop="video">\n' + \
|
||||
' <figure id="videoContainer" ' + \
|
||||
'data-fullscreen="false">\n' + \
|
||||
' <video id="video" controls preload="metadata">\n' + \
|
||||
' <video id="video" controls preload="metadata" ' + \
|
||||
'tabindex="10">\n' + \
|
||||
'<source src="' + link_url + '" ' + \
|
||||
'type="' + video_mime_type + '">' + \
|
||||
translate[video_msg] + \
|
||||
|
|
|
@ -1206,7 +1206,7 @@ def get_post_attachments_as_html(base_dir: str, domain_full: str,
|
|||
' <figure id="videoContainer" ' + \
|
||||
'data-fullscreen="false">\n' + \
|
||||
' <video id="video" controls ' + \
|
||||
'preload="metadata">\n'
|
||||
'preload="metadata" tabindex="10">\n'
|
||||
gallery_str += \
|
||||
' <source src="' + attach['url'] + \
|
||||
'" alt="' + image_description + \
|
||||
|
@ -1245,7 +1245,7 @@ def get_post_attachments_as_html(base_dir: str, domain_full: str,
|
|||
'<center><figure id="videoContainer" ' + \
|
||||
'data-fullscreen="false">\n' + \
|
||||
' <video id="video" controls ' + \
|
||||
'preload="metadata">\n'
|
||||
'preload="metadata" tabindex="10">\n'
|
||||
attachment_str += \
|
||||
'<source src="' + attach['url'] + '" alt="' + \
|
||||
image_description + '" title="' + image_description + \
|
||||
|
@ -1272,7 +1272,7 @@ def get_post_attachments_as_html(base_dir: str, domain_full: str,
|
|||
gallery_str += \
|
||||
' <a href="' + attach['url'] + \
|
||||
'" tabindex="10">\n'
|
||||
gallery_str += ' <audio controls>\n'
|
||||
gallery_str += ' <audio controls tabindex="10">\n'
|
||||
gallery_str += \
|
||||
' <source src="' + attach['url'] + \
|
||||
'" alt="' + image_description + \
|
||||
|
@ -1307,7 +1307,7 @@ def get_post_attachments_as_html(base_dir: str, domain_full: str,
|
|||
gallery_str += ' </div>\n'
|
||||
gallery_str += '</div>\n'
|
||||
|
||||
attachment_str += '<center>\n<audio controls>\n'
|
||||
attachment_str += '<center>\n<audio controls tabindex="10">\n'
|
||||
attachment_str += \
|
||||
'<source src="' + attach['url'] + '" alt="' + \
|
||||
image_description + '" title="' + image_description + \
|
||||
|
|
Loading…
Reference in New Issue