Page 3 of 4

Re: airstrip use

Posted: Wed 20 Aug 2014 12:30 pm
by laulau

Re: airstrip use

Posted: Thu 21 Aug 2014 12:00 am
by JennyLeez
Hi Beteljuice,

and now I need to ask for permission....

May I please add my airfield page to my website, as an include, and publish it.
May I alter the styling code ( a little ) to match the fonts and size for continuity.
May I alter the code slightly to validate the main page only.

Cheers
Jenny

Re: airstrip use

Posted: Thu 21 Aug 2014 1:51 am
by beteljuice
But of course :D

Re: airstrip use

Posted: Thu 21 Aug 2014 2:17 am
by JennyLeez
Thank you beteljuice.

Now if I may annoy you one more time, ( for now anyways... lol ) I am not sure what to do with 1 error please.
I managed to fix the rest but this one is a bit beyond me and of course I dont want to muck anything up :)

http://validator.w3.org/check?uri=http% ... 2Fservices

Cheers
Jenny

Re: airstrip use

Posted: Thu 21 Aug 2014 2:52 am
by beteljuice
It's not an error as such.

Allowtransparency (IFrame) is specific to IE but inferred to others. It's something that the validators never really worked out how to handle and didnt bother because they all thought IFrames would become redundant with CSS and ajax.

If the error really annoys you, you will have to make a browser specific IF / ELSE statement.
Identical except for the AllowTransparency bit.

See ... http://www.codefap.com/2013/05/there-is ... validator/

Re: airstrip use

Posted: Thu 21 Aug 2014 4:29 am
by JennyLeez
Done and thank you :)

Re: airstrip use

Posted: Fri 22 Aug 2014 2:42 am
by beteljuice
@ all who have lifted the scripts - spotted a new oops !

In the code for the gauges page approx. line #400

Code: Select all

// show now DIRECTION


 		if(wind_kts >= 0.5) { 
		// populate direction nix tubes
// 24 deg Mag offset
nowMag = val2 - 24;
CHANGE to

Code: Select all

// show now DIRECTION


 		if(wind_kts >= 0.5) { 
		// populate direction nix tubes
// get Mag offset
nowMag = val2 - mag_deviation;

Re: airstrip use

Posted: Mon 25 Aug 2014 12:15 am
by JennyLeez
Thanks beteljuice, done.

I am just doing credits.
beteljuice would you please check the top of the js page and see what you reckon.
That tag to Pinto's website no longer exists plus maybe this would be the next version modified by yourself in 2013.

I am asking as I wish to add the tributes to the bottom of my page please.

Thanks
Cheers
Jenny

Re: airstrip use

Posted: Mon 25 Aug 2014 1:32 am
by uncle_bob
Here's a link for all the other nosey parkers like myself :)
http://wairoa.net/weather/airport.htm

Well done Jenny, that's great work and it looks fab!
Little ol Wairoa looks to have one of the best weather station sites in the world :)

Re: airstrip use

Posted: Mon 25 Aug 2014 3:57 am
by beteljuice
It is OLD ....

I suddenly had a thought that there may be conflicts with (your) saratoga template, but I see you've managed to avoid that ;)

Really ALL the variables and the functions need renaming :?

The variable wind routine could be rewritten with the 'new' Cumulus realtime value, then it would show immediately instead of waiting several cycles.

Pinto created the original ajax routine, so leave his name but no link if no longer valid. (No further info in his profile here)

A suggestion ... move your runway arrow out to 358 px left, then it will center up nicely when the wind's in the right direction.

You may also want to change the rose 'title' to MAGNETIC bearings (2014 21.1 E) - the month doesn't mean a lot the year is more important, and why not colour in the river :D

Re: airstrip use

Posted: Mon 25 Aug 2014 5:00 am
by JennyLeez
beteljuice wrote: I suddenly had a thought that there may be conflicts with (your) saratoga template, but I see you've managed to avoid that ;)
Yes my main weather site is non saratoga just basic htm with pinched scripts all through it :)
Really ALL the variables and the functions need renaming :?
Why, thats what gives this script character :)
The variable wind routine could be rewritten with the 'new' Cumulus realtime value, then it would show immediately instead of waiting several cycles.
Pinto created the original ajax routine, so leave his name but no link if no longer valid. (No further info in his profile here)
Done.
A suggestion ... move your runway arrow out to 358 px left, then it will center up nicely when the wind's in the right direction.
Done.
You may also want to change the rose 'title' to MAGNETIC bearings (2014 21.1 E) - the month doesn't mean a lot the year is more important.
Done
and why not colour in the river :D
I am not very good at painting :roll:
Thanks beteljuice.

Re: airstrip use

Posted: Wed 27 Aug 2014 3:10 am
by ace2
beteljuice wrote:and why not colour in the river :D
I agree and i want to see fish or a dolphin from time to time!!!! gee.............

Re: airstrip use

Posted: Wed 27 Aug 2014 4:20 am
by JennyLeez
ace2 wrote:
beteljuice wrote:and why not colour in the river :D
I agree and i want to see fish or a dolphin from time to time!!!! gee.............
Colour added to the River and Race Course as instructed :)

Look harder ace2, cant you see the whitebait running and the whitebaiters lining the river banks.
White bait season started 15th August and lasts for 15 weeks.
Not sure if you have these up there?

Cheers

Re: airstrip use

Posted: Wed 27 Aug 2014 6:11 am
by ace2
Not really.

If I see some bigger type fish, I might chuck a line in!

Re: airstrip use

Posted: Wed 27 Aug 2014 11:57 pm
by beteljuice
Yet another unexpected error - sorry to the guys who lifted the code ..
in the ...Dashboard.ajax.js approx. line 2012

Code: Select all

// varToggle(); // free run a 'blink' mechanism

// function to blink varWindAdvisory and gustAdvisory if populated (both elements MUST exist)
toggleOn = false;
checkToggle = document.getElementById('varWindAdvisory'); // get one of the advisories
function varToggle() {
// toggleOn = true;
	if(checkToggle && checkToggle.style.display == 'none') { // definately got an 'off' state
		set_ajax_uom("varWindAdvisory", true);
		set_ajax_uom("gustAdvisory", false);
	}else{ // might be 'on' or element not found ( set_ajax_uom() does own checks)
		set_ajax_uom("varWindAdvisory", false);
		set_ajax_uom("gustAdvisory", true);
	}
//	switchVarArrowTimer = setTimeout("varToggle()", 1000);

} // END function varToggle()
The checkToggle var is in the wrong place and the alternating wind advisories can behave in unexpected and incomplete ways - here's the correct and neatened up code:

Code: Select all

// function to blink varWindAdvisory and gustAdvisory if populated (both elements MUST exist)
function varToggle() {
	checkToggle = document.getElementById('varWindAdvisory'); // get one of the advisories
	if(checkToggle && checkToggle.style.display == 'none') { // definately got an 'off' state
		set_ajax_uom("varWindAdvisory", true);
		set_ajax_uom("gustAdvisory", false);
	}else{ // might be 'on' or element not found ( set_ajax_uom() does own checks)
		set_ajax_uom("varWindAdvisory", false);
		set_ajax_uom("gustAdvisory", true);
	}
} // END function varToggle()
Took me quite a while to work out the problem ... I'm getting too old for this. :groan: