Log in

View Full Version : How to extract part of a script from the internet



theremotedr
07-29-2015, 11:30 AM
Here is the page in question http://www.fuel-economy.co.uk/calc.html

I am trying to extract/copy the section Real-Life Miles Per Gallon.
Not being able to work out the formula hence need to copy it from the page.

Any advice on how to do this would be great.

Thanks.

coothead
07-29-2015, 03:37 PM
Hi there theremotedr,


checkout the attachment. :)

Note:-

The "fuelfunctions.js" file includes this heading...


/*

This code is copyright Fuel-Economy.co.uk 2006. Do not use
it without consent.

Version History
===============
21/06/06 Matt Initial version - added JourneyCost, Mile<>KM,
MPG<>L/100KM, and RequiredFuel functions.
26/06/06 Matt Added RealMPG, Gallons

*/


coothead

theremotedr
07-29-2015, 04:11 PM
Hi,

I have now worked out the formula.
I need to think from now on a touch.

Thanks