/*Copyright 2015, Pall Thayer (http://pallthayer.dyndns.org)*/ /*These program are free software: you can redistribute them and/or modify them under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will rock your world, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see .*/ /*Objects In Motion I: Rotating circle - 2015-10-07 20:42:46*/ var theByrds = function() { var width = window.innerWidth; var height = window.innerHeight; var season = document.createElement('div'); var deg = 0; season.style.border = "5px solid black"; season.style.width = width/2+'px'; season.style.height = width/2+'px'; season.style['margin-left'] = 'auto'; season.style['margin-right'] = 'auto'; season.style['border-radius'] = '100%'; document.body.appendChild(season); this.turn_turn_turn = function() { for(var i = 1;i < 9999;i++) { window.clearInterval(i); } var turn_turn = setInterval(turn_turn_turn, 100); } function turn_turn_turn() { season.style.transform = 'rotate('+deg+'deg)'; deg++; }; };