FAQ  •  Register  •  Login

Transport calculator (web app)

<<

KingOFBows

Citizen

Posts: 128

Joined: Fri Aug 13, 2010 8:41 pm

Location: wichita.

Post Sun Aug 15, 2010 4:01 am

Re: Transport calculator (web app)

Epic fail.....
Image
<<

Yodac

User avatar

Warlord

Posts: 2271

Joined: Wed Jul 21, 2010 9:16 pm

Location: Yodac LLC, Ohio

Post Mon Aug 16, 2010 6:29 pm

Re: Transport calculator (web app)

Hmmm. Can you post the formula you used, and private message me how to make an app?
http://www.yodac.net

Yodac wrote:People would be more interested in life, if life gave more interest in them

FOR SUPPORT: Ask me a Q.

Image

Vayneglory wrote: Post count doesn't matter, quit bragging about it
<<

Teo_

Beginner

Posts: 41

Joined: Mon Jul 26, 2010 10:09 am

Post Mon Aug 16, 2010 10:07 pm

Re: Transport calculator (web app)

If the b don’t work you can try this longer link.
Yodac wrote:Hmmm. Can you post the formula you used, and private message me how to make an app?

I have simply multiplied the carry values from defined in the tutorial page.
This web app is a simple html form with a JavaScrip that auto update the other values "onchange".
  Code:
function updatethis(event)
{
    document.getElementById('infantry_res').value = 80*document.getElementById('infantry').value;
    document.getElementById('cavalry_res').value = 100*document.getElementById('cavalry').value;
    document.getElementById('archer_res').value = 40*document.getElementById('archer').value;
    document.getElementById('catapult_res').value = 40*document.getElementById('catapult').value;
    document.getElementById('total').value = (document.getElementById('infantry_res').value*1)+(document.getElementById('cavalry_res').value*1)+(document.getElementById('archer_res').value*1)+(document.getElementById('catapult_res').value*1);
    document.getElementById('total_per_res').value = (document.getElementById('total').value/4);
}


It was developed with Dashcode and is just a test: I never used it, so I tried to do something for testing.
I’m on server 102
A free web app to calculate Haypi resources: http://www.trendupgraphic.com/haypi/ (vist it with yours iOS device)
Previous

Return to Haypi Guides

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.