moved script into head & removed async because it only applies to src="" scripts

pull/4/head
RiedleroD 2023-05-10 11:01:33 +02:00
parent 4608df2edc
commit 948c95c187
1 changed files with 3 additions and 4 deletions

View File

@ -43,9 +43,7 @@
#odybtn {background-color: purple} /* Odysee */
#ptbtn {background-color: darkorange} /* PeerTube */
</style>
</head>
<body>
<script async>
<script>
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const codeyt = urlParams.get('yt')
@ -65,7 +63,8 @@
changeHref('ody',codeody);
});
</script>
</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>