testing things

pull/74/head
Patricio Gonzalez Vivo 8 years ago
parent b686e864de
commit 89ee7948a8

@ -84,7 +84,6 @@
}
}
window.onload = function() {
// if ()
if (window.GlslEditor && window.GlslEditor) {
@ -110,7 +109,7 @@
menu: true
});
}
document.body.style.backgroundColor = window.getComputedStyle(glslEditor.editor.getWrapperElement(),null).getPropertyValue('background-color');
</script>
<script>
(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){

@ -262,39 +262,13 @@ function nextPage() {
window.location.href = url;
}
/**
* Provides requestAnimationFrame in a cross browser way.
*/
window.requestAnimFrame = (function() {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function(/* function FrameRequestCallback */ callback, /* DOMElement Element */ element) {
return window.setTimeout(callback, 1000/60);
};
})();
/**
* Provides cancelRequestAnimationFrame in a cross browser way.
*/
window.cancelRequestAnimFrame = (function() {
return window.cancelCancelRequestAnimationFrame ||
window.webkitCancelRequestAnimationFrame ||
window.mozCancelRequestAnimationFrame ||
window.oCancelRequestAnimationFrame ||
window.msCancelRequestAnimationFrame ||
window.clearTimeout;
})();
window.onload = function(){
window.scrollTo(0, 0);
styleCodeBlocks();
loadGlslElements();
captionizeImages();
window.scrollTo(0, 0);
setTimeout(function () {
window.scrollTo(0, 0);
}, 1000);
// setTimeout(function () {
// window.scrollTo(0, 0);
// }, 1000);
};

Loading…
Cancel
Save