Lean-Green-Sex-Machine
@leangreensexmachine
Lauren. 25. Vegan. Feminist. Nomad. Artist. Writer. Professional moocher. Cancer. Want to know anything else, feel free to ask. The Animal Kill Counter: Basic Version << ADAPTT :: Animals Deserve Absolute Protection Today and Tomorrow // Global variables: ___________________________________________________________________ var counts = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]; var rate = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]; // Functions: __________________________________________________________________________ function StartKillCounter() { var millions = [ 90000, 45895, 2262, 1244, 857, 691, 533, 515, 345, 292, 65, 63, 23, 16, 4, 4, 3, 2 ]; var perSecond = 8; for (var i = 0; i < counts.length; ++i) rate[i] = millions[i] * 1000000 / 365 / 24 / 60 / 60 / perSecond; setInterval(NewCounts, 1000 / perSecond); } function NewCounts() { var num, thous, str; for (var i = 0; i < counts.length; ++i) { counts[i] += rate[i]; num = Math.round(counts[i]); str = ""; while (num > 1000) { thous = num % 1000; if (thous < 10) thous = "00" + thous; else if (thous < 100) thous = "0" + thous; str = "," + thous + str; num = Math.floor(num / 1000); } str = num + str; document.getElementById("count" + i).innerHTML = str; } } span#count0, span#count1, span#count2, span#count3, span#count4, span#count5, span#count6, span#count7, span#count8, span#count9, span#count10, span#count11, span#count12, span#count13, span#count14, span#count15, span#count16, span#count17 { display: inline; } Animals Slaughtered: 0 marine animals
0 chickens
0 ducks
0 pigs
0 rabbits
0 turkeys
0 geese
0 sheep
0 goats
0 cows and calves
0 rodents
0 pigeons and other birds
0 buffaloes
0 dogs
0 cats
0 horses
0 donkeys and mules
0 camels and other camelids StartKillCounter(); var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-11533107-1"); pageTracker._trackPageview(); } catch(err) { }