Skip to content

Commit

Permalink
Fix video thumbnails taking over fullscreen on iOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncoon committed Nov 30, 2024
1 parent 43a5475 commit 3593793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

{% assign sorted = site.posts | sort: 'sortKey' %}

<!-- master nav -->
<!-- main nav -->
<header class="navbar navbar-static-top bs-docs-nav" id="top" role="banner">
<div class="container-fluid">
<div class="navbar-header">
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="thumbnail" id="{{ post.id }}">
<div class="embed-responsive embed-responsive-16by9">
<a href="{{ post.url }}">
<video class="post lazy" data-poster="//i.imgur.com/{{ post.imgurId }}.jpg" autoplay="autoplay" muted="muted" loop="loop">
<video class="post lazy" data-poster="//i.imgur.com/{{ post.imgurId }}.jpg" autoplay="autoplay" muted="muted" loop="loop" playsinline>
<source data-src="//i.imgur.com/{{ post.imgurId }}.mp4" type="video/mp4">
</video>
</a>
Expand All @@ -26,7 +26,7 @@ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<div class="col-md-6">
<div class="thumbnail" id="{{ post.id }}">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item lazy" width="560" height="315" data-src="{{ post.videoUrl }}" frameborder="0" allowfullscreen></iframe>
<iframe class="embed-responsive-item lazy" width="560" height="315" data-src="{{ post.videoUrl }}" frameborder="0" allowfullscreen="false"></iframe>
</div>
<div class="caption">
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
Expand Down

0 comments on commit 3593793

Please sign in to comment.