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 23, 2022
1 parent e08a2e4 commit ac9cf59
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,18 @@

<script>
function myFunction() {

if (document.getElementById('ytlink').value == ""){
alert("ENTER A YOUTUBE VIDEO URL");
}
else {
var value = document.getElementById("ytlink").value;
const str = value;
const after_ = str.substring(str.indexOf('=') + 1);
const valfinal = "https://www.youtubethumbnaildownloaderonline.com/?id=" + after_;
window.open(valfinal,'_blank');
const str = value;
const after_ = str.substring(str.indexOf('=') + 1);
const valfinal = "https://www.youtubethumbnaildownloaderonline.com/?id=" + after_;
window.open(valfinal,'_blank');
}

}
</script>

Expand Down

1 comment on commit ac9cf59

@vercel
Copy link

@vercel vercel bot commented on ac9cf59 Sep 23, 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.