index.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Alt. youtube player</title>
  5. <link rel="stylesheet" href="./alt-yt-player.css" />
  6. <!--link rel="stylesheet" href="https://git.giaever.org/Magy/alt-youtube-player/raw/master/alt-yt-player.css"/-->
  7. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  8. </head>
  9. <body>
  10. <!--
  11. A player MUST:
  12. - Have a class «player»
  13. - Have a child element of img
  14. - with the class «thumb»
  15. - Have a child of the iframe
  16. - that has the query-param «enablejsapi=1»
  17. -->
  18. <div class="player">
  19. <img class="thumb" src="./thumb.png" alt="Thumbnail" />
  20. <div class="something wf realated classed and shit">
  21. <iframe src="https://www.youtube-nocookie.com/embed/dcsvMySGmS8?enablejsapi=1&rel=0" frameborder="0" allow="autoplay; encrypted-media; gyroscope" allowfullscreen></iframe>
  22. </div>
  23. </div>
  24. <!-- additional players -->
  25. <div class="player">
  26. <img class="thumb" src="./thumb.png" alt="Thumbnail" />
  27. <iframe src="https://www.youtube-nocookie.com/embed/pouODQkJQG0?enablejsapi=1" frameborder="0" allow="autoplay; encrypted-media; gyroscope" allowfullscreen></iframe>
  28. </div>
  29. <div class="player">
  30. <img class="thumb" src="./thumb.png" alt="Thumbnail" />
  31. <iframe src="https://www.youtube-nocookie.com/embed/Y-JQ-RCyPpQ?enablejsapi=1" frameborder="0" allow="autoplay; encrypted-media; gyroscope" allowfullscreen></iframe>
  32. </div>
  33. <div class="player">
  34. <img class="thumb" src="./thumb.png" alt="Thumbnail" />
  35. <iframe src="https://www.youtube-nocookie.com/embed/4-079YIasck?enablejsapi=1" frameborder="0" allow="autoplay; encrypted-media; gyroscope" allowfullscreen></iframe>
  36. </div>
  37. <!-- You need this before the </body>-tag (closing) -->
  38. <script src="./alt-yt-player.js"></script>
  39. <!--script src="https://git.giaever.org/Magy/alt-youtube-player/raw/master/alt-yt-player.js"></script-->
  40. </body>
  41. </html>