mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Added hardware acceleration to main
This commit is contained in:
@@ -64,8 +64,12 @@ function initControls()
|
||||
|
||||
function fitToScreen()
|
||||
{
|
||||
document.getElementById("controls").style.top = document.getElementById("player").offsetTop + $("#player").height() + "px";
|
||||
document.getElementById("controls").style.left = document.getElementById("player").offsetLeft + "px";
|
||||
//document.getElementById("controls").style.top = document.getElementById("player").offsetTop + $("#player").height() + "px";
|
||||
document.getElementById("controls").style.top = $("#player").position()["top"] + $("#player").height() + "px";
|
||||
//document.getElementById("controls").style.left = document.getElementById("player").offsetLeft + "px";
|
||||
document.getElementById("controls").style.left = $("#player").position()["left"] + "px";
|
||||
//document.getElementById("controls").style.left = "10px";
|
||||
$("#controls").width($("#player").width());
|
||||
}
|
||||
|
||||
function initSlider()
|
||||
|
||||
@@ -82,7 +82,11 @@ function search(search_input){
|
||||
//console.log(wrapper);
|
||||
//$("#results").append(wrapper).show("slow");
|
||||
if(wrapper.length > 0)
|
||||
{
|
||||
$(".main").addClass("blurT");
|
||||
//$("#controls").addClass("blurT");
|
||||
}
|
||||
|
||||
$("<div style='display:none;'>"+wrapper+"</div>").appendTo('#results').slideDown('slow');
|
||||
|
||||
}
|
||||
@@ -92,6 +96,7 @@ function search(search_input){
|
||||
});
|
||||
}else{
|
||||
$(".main").removeClass("blurT");
|
||||
$("#controls").removeClass("blurT");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user