Totally Spies : Supernaze

S3 ép. 10 : Supernaze

Totally Spies Supernaze
document.playerloaded = true; document.playerstate = "notfloating"; document.playerViewState = true; document.playerClicked = false; var lazyIframe = { query:function(rule){ return document.querySelectorAll(rule); }, isInView:function(domElt){ var coords = domElt.getBoundingClientRect(); return (coords.top < window.innerHeight/2); }, isOutView:function(domElt){ var coords = domElt.parentNode.children[0].getBoundingClientRect(); if( ( coords.height + coords.top - 40 ) < 0 )return true; if( coords.top > (window.innerHeight - 40 )) return true; return false; }, floatingthumb:function(domElt){ if( document.playerstate == "notfloating" && document.playerloaded && document.playerClicked) { document.playerstate = "floating"; $(domElt ).addClass("jwplfloat"); $(domElt).prepend("
"); $(domElt).find(".closebtttn, .closebtttn button").bind("click", function(){ lazyIframe.unfloatingthumb(domElt); document.playerstate = "locked"; }) } }, unfloatingthumb:function(domElt){ if( document.playerstate == "floating" && document.playerloaded && document.playerClicked) { document.playerstate = "notfloating"; $(domElt).removeClass("jwplfloat"); $(".closebtttn").remove(); } }, load:function(domElt){ var src = domElt.getAttribute("data-src"); if(src != "loaded"){ domElt.setAttribute("src", src); domElt.setAttribute("data-src", "loaded"); document.playerloaded = true; } }, run:function(){ lazyIframes = lazyIframe.query(".lazyplayer"); for (var k = 0; k < lazyIframes.length; k++){ if( lazyIframe.isInView(lazyIframes[k])) { lazyIframe.load( lazyIframes[k] ); } } if( typeof(window.matchMedia) === "function" ){ /*if (window.matchMedia("(min-width: 800px)").matches) {*/ if(true){ floatingFrames = lazyIframe.query(".lazyplayercontainer"); for (var k = 0; k < floatingFrames.length; k++){ if(k < 1){ currentViewState = lazyIframe.isOutView(floatingFrames[k]); if(currentViewState != document.playerViewState ){ document.playerViewState = currentViewState; if( currentViewState ) { console.log("outview:floating"); lazyIframe.floatingthumb( floatingFrames[k] ); }else{ console.log("intview:unfloating"); lazyIframe.unfloatingthumb( floatingFrames[k] ); } } } } } } }, attachEvent:function(){ document.addEventListener("scroll", lazyIframe.run); window.addEventListener( "message", function (e) { if(e.data == "jwplClicked" ){ document.playerClicked = true; } }); }, }; lazyIframe.attachEvent();
Durée 00h 21m 50s
Visible pendant
Arnold se retrouve accidentellement en possession d'une pierre magique qui aspire tout le côté " cool " des gens et fait d'Arnold un mec hyper cool. Les Spies parviendront-elles à l'arrêter ?

Aucun commentaire

Valider
Le top dessins animés Gulli Replay