Visual overhaul on mobile devices

This commit is contained in:
kasperrt
2014-12-30 04:20:09 +01:00
parent 42b5f5b063
commit 80a2091e8c
5 changed files with 48 additions and 6 deletions

View File

@@ -351,6 +351,9 @@ function onPlayerReady(event) {
function setBGimage(id){
if(window.mozInnerScreenX == null && !window.mobilecheck()){
$("#bgimage").css("background-image", "url(http://img.youtube.com/vi/"+id+"/0.jpg)");
}else if(window.mobilecheck()){
$("#mobile-banner").css("background-image", "url(http://img.youtube.com/vi/"+id+"/hqdefault.jpg)");
$("#mobile-banner").css("width",$(window).width());
}
}