Skip to content
Browse files

Merge branch 'master' of https://github.com/StanAngeloff/The-Slowest-…

  • Loading branch information...
2 parents b3bd779 + bcce8e8 commit 2fbb20d3053c9f68bba14e9c5e2321f83ee6f07f @cramforce committed Dec 13, 2010
Showing with 3 additions and 11 deletions.
  1. +3 −11 slow.html
View
14 slow.html
@@ -50,23 +50,15 @@
parseInt(window.getComputedStyle(document.getElementById('box')).top) + direction + 'px';
document.getElementById('box').style.left =
parseInt(window.getComputedStyle(document.getElementById('box')).left) + direction + 'px';
+ document.getElementById('box').style['-webkit-transform'] = 'rotate(' + i + 'deg)';
+ document.getElementById('box').style[ '-moz-transform'] = 'rotate(' + i + 'deg)';
+ document.getElementById('box').style[ 'transform'] = 'rotate(' + i + 'deg)';
if(++i % 128 === 0) {
direction = direction * -1;
}
}, 1000 / 128);
}
-function moreText() {
- var initialHeight = parseInt(window.getComputedStyle(document.getElementById('box')).height);
- for(var i = 0; i < 100; i++) {
- var before = document.getElementById('box').innerHTML;
- document.getElementById('box').innerHTML += 'ABC<br>';
- if(parseInt(window.getComputedStyle(document.getElementById('box')).height) > initialHeight) {
- document.getElementById('box').innerHTML = before;
- }
- }
-}
-
// Make sure we save our state to disk
window.onmousemove = function() {
if(window.localStorage) {

0 comments on commit 2fbb20d

Please sign in to comment.
Something went wrong with that request. Please try again.