Javascript: Measures converter (US units to Metric system and vice versa) - repost
$250-750 USD
Terminado
Publicado hace casi 11 años
$250-750 USD
Pagado a la entrega
General Description:
write a JS code, that identifies measurements on the current page that can be converted to the user's preference.
When a unit that can be converted is detected, it will be marked with a double underline (an example: [login to view URL] ), and when its hovered, the converted unit will be displayed in a tooltip bubble.
Injection:
The JS code will be injected to any page the user loads via an addon for IE 7-10/Firefox/Chrome to any page.
The addon that injects the JS is already built, no need for it.
Supported unit systems:
The metric system -
* Length - meter, kilometer, centimeter, decimeter, millimeter
* Weight - kilogram, gram, milligram, tonne
* Volume - cubic meter, cubic centimeter, cubic decimeter, liter, milliliter
* Area - square centimeter, Square meter, square kilometer
* Temperature - Celsius
US Units -
* Length - inch, foot, yard, mile
* Weight - ounce, pound
* Volume - cubic foot, cubic inch, pint, gallon, fluid ounce
* Area - square inch, square yard, square foot, acre, square mile
* Temperature - Fahrenheit
The tooltip will include a 'settings' icon. when clicked: the user will be able to choose his preferred unit system (Metric / US / Both). After the user has made his choice, the tooltip will appear only for units that are not part of the unit system chosen, and will display the tooltip in his chosen preference unit system.
If no preference was chosen, the tooltip will appear for both variations.
General guidelines:
* The JS code needs to work cross-browser (IE 7-10, FF, Chrome)
* The JS code needs to work on as many Doctypes as possible (a list of doctypes with demo pages can be found here: [login to view URL] )
* There wont be any use of external frameworks (jQuery/prototype/YUI, etc.)
* The code should be as efficient as possible
* The code should contain basic documentation (commented code)
* The JS should contain a configuration section (to change icons/texts/colors)
Storing Data:
Will be required to store the user settings: Since the JS code will be injected to multiple domains - cookies will not work across domains.
As said, the JS will be injected via an addon that we already developed.
The addon we use to inject the JS will soon expose an API that will allow the injected JS to store data across domains (by utilizing the addon-level code).
It will take some time until the development will be done and fully tested, so we wont be able to use this functionality in the near future.
Bottom line, for saving the data:
Maintain set/get functions, that will save the data, in the following manner -
function get(hostName) {...} // returns a JSON with the saved data for hostName
function set(hostName, dataToSave) {...} // reads the JSON that is already stored for hostName (if exists), and adds dataToSave to it
These functions will inject an iframe to the DOM on a domain that will centralize the data saving/loading.
We will also provide the details for the data saving via our API, so please include the alternative for using it, so we'll be able to remove the iframe solution and handle data setting/getting with the addon-level based code.
The design that will be used in the addon will also be provided, and the design should be implemented as part of the project.
It's an ambitious project which must be completed with a lot of profesionalism.
My offer is not the cheaper, but i guarantee the best practice of JavaScript, with a simple, proper and reusable code.
$500 USD en 15 días
5,0 (2 comentarios)
4,9
4,9
13 freelancers están ofertando un promedio de $627 USD por este trabajo
Hi, Consider its done! I would love to get this opportunity of working with you. I can guarantee complete satisfaction if you select me to execute this project. Please check your private message board. Thanks
Hello,
I understand your requirements and believe that we can provide you with the best solution.
Please check the Private Message Box for further details.
This is a fairly simple javascript requirement. I have worked on very complex js code in my career (for companies like Virgin, Phoenix Technologies and Cisco). I understand that you may have concern about my skills since this is my first bid on freelance, and that is why I have bid a lower amount than the average. If you give me this chance I can complete this requirement for you to your satisfaction. Thanks.