Updated the ytr.html page and the video shortcode (don't need the ytr subdomain anymore)

next
Gianmarco Gargiulo 2023-06-10 00:35:59 +02:00
parent fa0730e7d2
commit 5996da2720
2 changed files with 8 additions and 7 deletions

View File

@ -41,7 +41,7 @@
#pipedbtn {background-color: darkred} /* Piped */
#ytbtn {background-color: red} /* YouTube */
#odybtn {background-color: purple} /* Odysee */
#ptbtn {background-color: darkorange} /* PeerTube */
#ptbtn {background-color: #C2540A} /* PeerTube */
</style>
<script>
const queryString = window.location.search;
@ -66,10 +66,11 @@
</head>
<body>
<p>Where do you want to watch this video?</p>
<a id="pipedbtn" class="button" href="https://il.ax/embed/">Piped (il.ax)</a>
<a id="ytbtn" class="button" href="https://youtube.com/embed/">YouTube*</a>
<a id="odybtn" class="button" href="https://odysee.com/$/embed/@gianmarcogg03:e/">Odysee*</a>
<a id="pipedbtn" class="button" href="https://piped.projectsegfau.lt/embed/">Piped¹</a>
<a id="ytbtn" class="button" href="https://youtube.com/embed/">YouTube²</a>
<a id="odybtn" class="button" href="https://odysee.com/$/embed/@gianmarcogg03:e/">Odysee²</a>
<a id="ptbtn" class="button" href="https://peertube.uno/videos/embed/">PeerTube</a>
<p>* = not freedom and/or privacy respecting.</p>
<p>¹ = the instance used is "piped.projectsegfau.lt".</p>
<p>² = not freedom and/or privacy respecting.</p>
</body>
</html>

View File

@ -1,6 +1,6 @@
<div class="embed video-player">
<noscript><h3>The video players don't work without JavaScript enabled!</h3></noscript>
<iframe class="youtube-player" type="text/html" width="700" height="385" src="https://ytr.gianmarco.gg/?yt={{ index .Params 0 }}&ody={{ index .Params 1 }}&pt={{ index .Params 2 }}" allowfullscreen frameborder="0"></iframe>
<noscript><h3>The video players don't work without JavaScript enabled!</h3><br></br></noscript>
<iframe class="youtube-player" type="text/html" width="700" height="385" src="/ytr.html?yt={{ index .Params 0 }}&ody={{ index .Params 1 }}&pt={{ index .Params 2 }}" allowfullscreen frameborder="0"></iframe>
<p></p>
</div>