fixed some code and errors

This commit is contained in:
kasperrt
2014-12-30 17:44:55 +01:00
parent 93625d29e7
commit 3b8a102f7b
5 changed files with 49 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
function initYoutubeControls(player)
{
if(player != undefined)
if(player !== undefined)
{
ytplayer = player;
//initSlider();
@@ -21,9 +21,9 @@ function initYoutubeControls(player)
container.appendChild(newElem);
for(x = 0; x < elems.length; x++)
{
var newElem = document.createElement("div");
newElem.id = elems[x];
container.appendChild(newElem);
var newElemFor = document.createElement("div");
newElemFor.id = elems[x];
container.appendChild(newElemFor);
}
/*elems = Array("medium", "large", "hd1080", "auto");
newElem = document.createElement("div");
@@ -39,7 +39,7 @@ function initYoutubeControls(player)
newElem.appendChild(newChild);
}
container.appendChild(newElem);*/
initControls()
initControls();
fitToScreen();
$(window).resize(function(){
fitToScreen();