moved script into head & removed async because it only applies to src="" scripts
parent
4608df2edc
commit
948c95c187
|
@ -43,9 +43,7 @@
|
||||||
#odybtn {background-color: purple} /* Odysee */
|
#odybtn {background-color: purple} /* Odysee */
|
||||||
#ptbtn {background-color: darkorange} /* PeerTube */
|
#ptbtn {background-color: darkorange} /* PeerTube */
|
||||||
</style>
|
</style>
|
||||||
</head>
|
<script>
|
||||||
<body>
|
|
||||||
<script async>
|
|
||||||
const queryString = window.location.search;
|
const queryString = window.location.search;
|
||||||
const urlParams = new URLSearchParams(queryString);
|
const urlParams = new URLSearchParams(queryString);
|
||||||
const codeyt = urlParams.get('yt')
|
const codeyt = urlParams.get('yt')
|
||||||
|
@ -65,7 +63,8 @@
|
||||||
changeHref('ody',codeody);
|
changeHref('ody',codeody);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
<p>Where do you want to watch this video?</p>
|
<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="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="ytbtn" class="button" href="https://youtube.com/embed/">YouTube*</a>
|
||||||
|
|
Loading…
Reference in New Issue