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