This was just an example. I don’t know what your existing code is, so I can’t tell you exactly what you need to do, but once you get $dist, you need to ‘echo’ the value where you want it.
This was just an example. I don’t know what your existing code is, so I can’t tell you exactly what you need to do, but once you get $dist, you need to ‘echo’ the value where you want it.
I didn’t realize you were trying to alter the acarsmap.tpl. This is a lot more complicated. I’d have to look at it and I’m not sure whether I’d be able to figure it out
I didn’t realize you were trying to alter the acarsmap.tpl. This is a lot more complicated. I’d have to look at it and I’m not sure whether I’d be able to figure it out
I should have included what I was trying to do :S
To make it clear here is what I am trying to do:
On the ACARS map (live map) I’m putting in a JavaScript progress bar to show how much % of the flight a pilot has completed on his journey. But in order to calculate it I need the total distance of the actual flight. I am unable to get that code..
I don’t think you’re going to have much luck with this unless you can use the javascript variables already given in the comments (which wouldn’t really allow you to do what you want).
The way the ACARS map is done is unfortunately really… odd.
I don’t think you’re going to have much luck with this unless you can use the javascript variables already given in the comments (which wouldn’t really allow you to do what you want).
The way the ACARS map is done is unfortunately really… odd.
Damn I was really looking forward to see this work aah well
I don’t think you’re going to have much luck with this unless you can use the javascript variables already given in the comments (which wouldn’t really allow you to do what you want).
The way the ACARS map is done is unfortunately really… odd.
Yeah, I agree. I don’t know if it’s “odd”, but it certainly isn’t as straightforward as the other templates. The only way would be to edit the JS to expose the new variable.
Javascript in the acars map. I had assumed you were doing a static percentage bar
Nope it is a javascript as is changes colour as the % gets bigger. <- Again my fault for not giving all the information in the topic. I tested it with php and it worked so its just the acars
EDIT: I made it look like I was giving out to you, so I changed this reply