Skip to content

Commit

Permalink
Merge pull request #408 from code-reaper08/master
Browse files Browse the repository at this point in the history
Demo videos in homepage not loading on mobile
  • Loading branch information
pcottle authored Feb 8, 2022
2 parents a661e28 + 86aff62 commit 3670d02
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
17 changes: 17 additions & 0 deletions assets/launch_page.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,20 @@ hr {
padding-right: 0px;
}
}
/* Regarding video demo missing */
.mobile-show{
display: none;
}
.mobile-show img {
width:300px;
height: auto;
}

@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px){
.mobile-show {display: inline;
width: 50pxpx;
height: 50px;}
.mobile-hide {display: none;}
}
14 changes: 11 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,12 @@ <h2>Any Input</h2>
<p><a class="btn btn-success" href="https://github.com/facebook/pathpicker/" role="button">More on GitHub</a></p>
</div>
<div class="asciiDemo col-md-6">
<script type="text/javascript" src="https://asciinema.org/a/19519.js" id="asciicast-19519" async>
</script>
<!-- <script type="text/javascript" src="https://asciinema.org/a/19519.js" id="asciicast-19519" async> -->
<!-- </script> -->
<a class="mobile-show" href="https://asciinema.org/a/19519" target="_blank"><img src="https://asciinema.org/a/19519.png" /></a>
<div class="mobile-hide">
<script id="asciicast-19519" src="https://asciinema.org/a/19519.js" async></script>
</div>
</div>
</div>
<hr>
Expand All @@ -121,7 +125,11 @@ <h2>Arbitrary Commands</h2>
<a class="btn btn-success" href="https://github.com/facebook/pathpicker/" role="button">More on GitHub</a>
</div>
<div class="asciiDemo col-md-6">
<script type="text/javascript" src="https://asciinema.org/a/19520.js" id="asciicast-19520" async></script>
<!-- <script type="text/javascript" src="https://asciinema.org/a/19520.js" id="asciicast-19520" async></script> -->
<a class="mobile-show" href="https://asciinema.org/a/19520" target="_blank"><img src="https://asciinema.org/a/19520.png" /></a>
<div class="mobile-hide">
<script id="asciicast-19520" src="https://asciinema.org/a/19520.js" async></script>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 3670d02

Please sign in to comment.