Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (53 sloc) 1.686 kB
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="style.css">
<script src=""></script>
<script src="amazing.js"></script>
$(function() {
$(".cont-right input").bind("keyup input paste", function() {
amazing[] = parseInt($(this).val()) || 0;
$('#preset a').click(function() {
var $t = $(this);
if (typeof $t.attr('data-stop') !== "undefined") amazing.stop();
else if (!amazing.cont) amazing.start();
var step = $t.attr('data-step'), delay = $t.attr('data-delay');
amazing.step = parseInt(step);
amazing.delay = parseInt(delay);
<div id="main">
<p>because your page needs colour cycling</p>
<div id="controls">
<div class="cont-left">
<label for="preset">preset</label>
<label for="step">colour step</label>
<label for="delay">tick delay</label>
<div class="cont-right">
<div id="preset">
<a data-stop="1">stop</a> |
<a data-step="1" data-delay="1">smooth</a> |
<a data-step="10" data-delay="1">fast</a> |
<a data-step="200" data-delay="200">blocky</a> |
<a data-step="40" data-delay="1">seizure</a> |
<a data-step="100" data-delay="1">extreme seizure</a>
<input type="text" id="step" value="1">
<input type="text" id="delay" value="1">
Jump to Line
Something went wrong with that request. Please try again.