cinera_player_pre.js: Remove spurious console.log
This commit is contained in:
parent
22633794b5
commit
8283e2a9e5
|
@ -168,7 +168,6 @@ GetWidthOfHideableElement(Element, UnhidingClass)
|
||||||
function
|
function
|
||||||
ComputeVerticalOffsetForMenu(Menu, Toggler, VideoContainerDimY)
|
ComputeVerticalOffsetForMenu(Menu, Toggler, VideoContainerDimY)
|
||||||
{
|
{
|
||||||
console.log("ComputeVerticalOffsetForMenu()");
|
|
||||||
var Result = 0;
|
var Result = 0;
|
||||||
var MenuHeight = GetHeightOfHideableElement(Menu, "visible");
|
var MenuHeight = GetHeightOfHideableElement(Menu, "visible");
|
||||||
var TogglerHeight = Toggler.offsetHeight;
|
var TogglerHeight = Toggler.offsetHeight;
|
||||||
|
@ -176,15 +175,11 @@ ComputeVerticalOffsetForMenu(Menu, Toggler, VideoContainerDimY)
|
||||||
var TogglerOffset = Toggler.offsetTop;
|
var TogglerOffset = Toggler.offsetTop;
|
||||||
var Result = TogglerOffset + (TogglerHeight / 2) - (MenuHeight / 2);
|
var Result = TogglerOffset + (TogglerHeight / 2) - (MenuHeight / 2);
|
||||||
|
|
||||||
console.log("Lower Point (0): " + (Result + MenuHeight));
|
|
||||||
console.log("VideoContainerDimY (0): " + VideoContainerDimY);
|
|
||||||
var LowerProtrusion = MenuHeight + Result - VideoContainerDimY;
|
var LowerProtrusion = MenuHeight + Result - VideoContainerDimY;
|
||||||
if(LowerProtrusion > 0)
|
if(LowerProtrusion > 0)
|
||||||
{
|
{
|
||||||
Result -= LowerProtrusion;
|
Result -= LowerProtrusion;
|
||||||
}
|
}
|
||||||
console.log("Lower Point (1): " + (Result + MenuHeight));
|
|
||||||
console.log("VideoContainerDimY (1): " + VideoContainerDimY);
|
|
||||||
|
|
||||||
if(Result < 0)
|
if(Result < 0)
|
||||||
{
|
{
|
||||||
|
@ -1333,7 +1328,6 @@ function handleKey(key) {
|
||||||
if(focusedElement.classList.contains("support"))
|
if(focusedElement.classList.contains("support"))
|
||||||
{
|
{
|
||||||
focusedElement.classList.remove("focused");
|
focusedElement.classList.remove("focused");
|
||||||
console.log(focusedElement);
|
|
||||||
unfocusSprite(focusedElement);
|
unfocusSprite(focusedElement);
|
||||||
|
|
||||||
lastFocusedCreditItem = focusedElement.previousElementSibling;
|
lastFocusedCreditItem = focusedElement.previousElementSibling;
|
||||||
|
|
Loading…
Reference in New Issue