Sha256: deea538c3583846a60d142d4fe4fa8448cf4d9fa5e827bd483b804a550859294
Contents?: true
Size: 457 Bytes
Versions: 4
Compression:
Stored size: 457 Bytes
Contents
function ToHex(n) { return (n < 16 ? "0" : "") + n.toString(16); } function RubyFade(element, iteration) { if (typeof iteration == 'undefined') iteration = 0; var el = document.getElementById(element); if (iteration < 256) { setTimeout("RubyFade('"+element+"', " + (iteration + 16) + ")", 100); } else { el.style.backgroundColor = 'transparent'; return; } el.style.backgroundColor = "#FF" + ToHex(iteration) + ToHex(iteration); }
Version data entries
4 entries across 4 versions & 1 rubygems