Change in css
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
<a name="YouTubeURL" href="" target="_blank">
|
<a name="YouTubeURL" href="" target="_blank">
|
||||||
<img name="YouTubeThumb" width="210" height="170"
|
<img name="YouTubeThumb" width="336" height="188"
|
||||||
src="">
|
src="">
|
||||||
</img>
|
</img>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -72,12 +72,11 @@ function getSongURL(MPDartist, MPDsong)
|
|||||||
function getYouTubeRequest(MPDfile) {
|
function getYouTubeRequest(MPDfile) {
|
||||||
var url = 'https://www.googleapis.com/youtube/v3/search';
|
var url = 'https://www.googleapis.com/youtube/v3/search';
|
||||||
var params = {
|
var params = {
|
||||||
// part: 'id',
|
part: 'id',
|
||||||
part: 'snippet',
|
part: 'snippet',
|
||||||
key: '',
|
key: 'AIzaSyCfkMY2Nk3QwEh1Tjdqm-8GueBqOS5jgeI',
|
||||||
q: MPDfile
|
q: MPDfile
|
||||||
};
|
};
|
||||||
|
|
||||||
$.getJSON(url, params, showResults);
|
$.getJSON(url, params, showResults);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,4 +86,5 @@ function showResults(results) {
|
|||||||
YouURL = entries[0].id.videoId;
|
YouURL = entries[0].id.videoId;
|
||||||
document.querySelector('img[name="YouTubeThumb"]').setAttribute('src', thumb);
|
document.querySelector('img[name="YouTubeThumb"]').setAttribute('src', thumb);
|
||||||
document.querySelector('a[name="YouTubeURL"]').setAttribute('href', "https://www.youtube.com/watch?v="+YouURL);
|
document.querySelector('a[name="YouTubeURL"]').setAttribute('href', "https://www.youtube.com/watch?v="+YouURL);
|
||||||
|
console.log("https://www.youtube.com/watch?v="+YouURL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user