HabitRPG / habitica

A habit tracker app which treats your goals like a Role Playing Game.
https://habitica.com
Other
11.87k stars 4.06k forks source link

Javascript: Volume calculator from width, length and depth #8019

Closed Egretta closed 8 years ago

Egretta commented 8 years ago

hi experts!

I don't know is this a right section to ask your help, but i could'nt find better place too. So, i need to create an online calculator from these inputs: width, length and height, and display the answer in m³. The length and width measurs are in meters, the height (this is a tricky part) in centemeters.

Found the base of that code from internet and modified a bit. look into jsfiddle . Basically it does what i need – calculates the sum from three values (first two are in meters, third in centemeters), but i would like it to be more simpler. I don’t want “select options” at the end of a height (thickness) field. this value:

..else if(select_val == "meter"){
    result = result/100;
    $("#answer").text(result).append(" m<sup>3</sup>");;...

must have programmed into code by default! please help me to simplify that code! or maybe you can provide more elegant solution?

my english is not good, but i still hope you understood my request

crookedneighbor commented 8 years ago

This is not the appropriate place to ask for help with this. If you'd like some Habitican's help, try asking in one of the developer focused guilds on the site.

Egretta commented 8 years ago

could you guide me (provide a link) to right place?

crookedneighbor commented 8 years ago

Here's a list of the public guilds in Habitica: https://habitica.com/#/options/groups/guilds/public

You might be interested in the developers guild or the JavaScript guild