download by click
This commit is contained in:
parent
8046f983f1
commit
36f0ffb03d
|
@ -6,7 +6,7 @@ function getCover()
|
||||||
videoCover.onload = function()
|
videoCover.onload = function()
|
||||||
{
|
{
|
||||||
document.getElementById('ytImage').innerHTML =
|
document.getElementById('ytImage').innerHTML =
|
||||||
'<a title="' + videoCover.width + 'x' + videoCover.height + '" download href="' + videoCover.src + '"><img src="'+ videoCover.src +'"></a>';
|
'<a title="' + videoCover.width + 'x' + videoCover.height + '" href="' + videoCover.src + '" download="cover"><img src="'+ videoCover.src +'"></a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
videoCover.src = 'https://img.youtube.com/vi/' + YouTubeGetID(videoUrl) + '/maxresdefault.jpg';
|
videoCover.src = 'https://img.youtube.com/vi/' + YouTubeGetID(videoUrl) + '/maxresdefault.jpg';
|
||||||
|
|
Loading…
Reference in New Issue