Skip to content
Snippets Groups Projects
Commit c82813dd authored by Eric Bremner's avatar Eric Bremner
Browse files

Merge branch 'feature/ISTWCMS-7180-kpaxman-video_pause' into '1.1.x'

Feature/istwcms 7180 kpaxman video pause

See merge request !236
parents 0f443e99 573ff98e
No related branches found
No related tags found
1 merge request!236Feature/istwcms 7180 kpaxman video pause
......@@ -21,14 +21,14 @@
$(this).removeClass('uw-video-play');
$(this).addClass('uw-video-pause');
$(this).attr('aria-label', 'Pause');
$(this).attr('title', 'Pause Video Autoplay');
$(this).attr('title', 'Pause video autoplay');
}
else {
video.pause();
$(this).removeClass('uw-video-pause');
$(this).addClass('uw-video-play');
$(this).attr('aria-label', 'Play');
$(this).attr('title', 'Pause Video Autoplay');
$(this).attr('title', 'Resume video autoplay');
}
});
});
......
......@@ -102,10 +102,10 @@
{% if image.link %}
</a>
{% endif %}
{% if image.type == "uw_para_local_video_banner" and media_flags.use_play_pause %}
{% if image.type == "uw_para_local_video_banner" and image.video %}
<div class="video-bottom">
<div class="controls embedded-video-controls">
<button id="btn-{{ image.uuid }}" class="banner-video-control video-control uw-video-pause" aria-label="Pause" title="Pause Video Autoplay">
<button id="btn-{{ image.uuid }}" class="banner-video-control video-control uw-video-pause" aria-label="Pause" title="Pause video autoplay">
<span class ="play">
{% include '@components/icon/icon--button/icon--button.twig' with {
'name': 'banner_play',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment