Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sj11223 authored Sep 25, 2022
1 parent 58d30e8 commit 84325e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@
<script>
function myFunction() {

var sentence = document.getElementById('ytlink').value;

if (document.getElementById('ytlink').value == ""){
alert("ENTER A YOUTUBE VIDEO URL");
}
alert("ENTER YOUTUBE VIDEO URL");
}
else if (sentence.includes('youtu.be')){
var result = sentence.replace("https://youtu.be/", "https://www.youtube.com/watch?v=");
document.getElementById('ytlink').value = result;
Expand Down

1 comment on commit 84325e9

@vercel
Copy link

@vercel vercel bot commented on 84325e9 Sep 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.