Webserver: Add wikipedia (artist) links to the song details pages
This commit is contained in:
1 parent
3344f05b58
commit
bfd8672d69
4 files changed
+16
No files matched your search
@@ -358,6 +358,9 @@
|
|||||||
<Content Include="Website\img\spotify.png">
|
<Content Include="Website\img\spotify.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="Website\img\wikipedia.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="Website\img\youtube.png">
|
<Content Include="Website\img\youtube.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -178,6 +178,7 @@
|
|||||||
<div id="displaySongLinks">
|
<div id="displaySongLinks">
|
||||||
<img id="displaySongLinkYoutube" src="img/youtube.png" />
|
<img id="displaySongLinkYoutube" src="img/youtube.png" />
|
||||||
<img id="displaySongLinkSpotify" src="img/spotify.png" />
|
<img id="displaySongLinkSpotify" src="img/spotify.png" />
|
||||||
|
<img id="displaySongLinkWikipedia" src="img/wikipedia.png" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -246,6 +246,10 @@ function initPageLoadHandler() {
|
|||||||
$('#displaySongLinkSpotify').unbind('click').click(function () {
|
$('#displaySongLinkSpotify').unbind('click').click(function () {
|
||||||
showSpotify(result.Artist, result.Title);
|
showSpotify(result.Artist, result.Title);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#displaySongLinkWikipedia').unbind('click').click(function () {
|
||||||
|
showWikipedia(result.Artist);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
$('#displaySongLinks').hide();
|
$('#displaySongLinks').hide();
|
||||||
}
|
}
|
||||||
@@ -739,4 +743,12 @@ function showSpotify(artist, title) {
|
|||||||
$("#popupVideo").popup("open");
|
$("#popupVideo").popup("open");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function showWikipedia(artist) {
|
||||||
|
popupVideoHeight = 800;
|
||||||
|
popupVideoWidth = 600;
|
||||||
|
|
||||||
|
$("#popupVideo iframe").attr("src", "http://m.wikipedia.org/wiki/Special:Search/" + artist);
|
||||||
|
$("#popupVideo").popup("open");
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user