Techious http://www.techious.com/forums/ |
|
Nutrition calculator with unique food health rating! http://www.techious.com/forums/viewtopic.php?f=85&t=7098 |
Page 1 of 1 |
Author: | azcn2503 [ Wed Jun 29, 2011 2:15 pm ] |
Post subject: | Nutrition calculator with unique food health rating! |
Hey guys Just finished creating this masterpiece. http://www.webtagr.com/projects/nutrition/ Check it against the nutrition labels on your food products to determine just how healthy your food really is... you might be surprised! |
Author: | Lord Metritutus [ Wed Jun 29, 2011 6:11 pm ] |
Post subject: | Re: Nutrition calculator with unique food health rating! |
I'd be really interested in seeing the code you used to calculate the result. It must be pretty complex. |
Author: | azcn2503 [ Wed Jun 29, 2011 6:47 pm ] |
Post subject: | Re: Nutrition calculator with unique food health rating! |
Here it is: Code: function rating(){ _rating.innerHTML="Health Rating... Calculating..."; clearTimeout(ratingTimer); ratingTimer=setTimeout(function(){ _rating.innerHTML="Health Rating... <div class=\"green\">SUPER HEALTHY!</div>"; },Math.round(1000+(Math.random()*3000))); return false; } lol |
Author: | Lord Metritutus [ Wed Jun 29, 2011 6:51 pm ] |
Post subject: | Re: Nutrition calculator with unique food health rating! |
You know I was joking, I already knew what it did. |
Author: | azcn2503 [ Wed Jun 29, 2011 7:07 pm ] |
Post subject: | Re: Nutrition calculator with unique food health rating! |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |