Skip to content

Commit

Permalink
Removed the annoying youtube popups in the shorts embed, attempted to…
Browse files Browse the repository at this point in the history
… remove side scrolling on safari.
  • Loading branch information
ArushYadlapati committed Jul 8, 2024
1 parent cbf5e57 commit 0ec605d
Showing 1 changed file with 41 additions and 11 deletions.
52 changes: 41 additions & 11 deletions src/roadrunner_10/complete_trajectorybuilder_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,28 @@ The begin pose is the origin (0,0) with a heading of $\frac{\pi}{6}$.
```

<style>
.video-container {
display: flex;
justify-content: center;
}
.video-container {
position: relative;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
height: 0;
overflow: hidden;
max-width: 100%;
background: #000;
}

.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}

</style>

<div class="video-container">
<iframe width="505" height="650" src="https://www.youtube.com/embed/JuYdXikOhzM" title="waitSeconds()" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<iframe width="505" height="650" src="https://www.youtube.com/embed/JuYdXikOhzM?rel=0&modestbranding=1" title="waitSeconds()" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

---
Expand All @@ -69,14 +83,30 @@ The begin pose is the origin (0,0) with a heading of $\frac{\pi}{6}$.
```

<style>
.video-container {
display: flex;
justify-content: center;
}
.video-container {
display: flex;
justify-content: center;
position: relative;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
height: 0;
overflow: hidden;
max-width: 100%;
background: #000;
margin-bottom: 20px;
}

.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
</style>

<div class="video-container">
<iframe width="505" height="650" src="https://www.youtube.com/embed/tTfQ6Diz_GQ" title="turn()" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<iframe width="505" height="650" src="https://www.youtube.com/embed/tTfQ6Diz_GQ?rel=0&modestbranding=1" title="turn()" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

---
Expand All @@ -95,7 +125,7 @@ The begin pose is the origin (0,0) with a heading of $\frac{\pi}{6}$.
</style>

<div class="video-container">
<iframe width="505" height="650" src="https://www.youtube.com/embed/eRQwtMEw4io" title="turnTo()" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<iframe width="505" height="650" src="https://www.youtube.com/embed/eRQwtMEw4io?rel=0&modestbranding=1" title="turnTo()" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

---
Expand Down

0 comments on commit 0ec605d

Please sign in to comment.