Triad Skin 2.1 is coming on nicely. I wanted smart font sizing for users with preferences stored in a cookie. I also wanted an easy way to switch from a standard view to a "big" view with either only one column or perhaps two, and with a bigger default font size, to accommodate visually impaired users as much as possible.

I finally got the cookie management working. One cookie to set the view for either standard or big, and another for the font size. The last one needed to be set by either php or javascript, since the sizing is done by both methods. So now php and javascript can talk to each other, via the cookie and via setting of javascript variables through pmwiki php variables.

Site.PageHeader got a toggle switch for Normal and Big view. This sets the "setview" cookie and the "setfontsize" cookie. The {$View} page variable is used to show either switch link, via (:if equal {$View} big:) or (:if ! equal {$View} big:).

Next step is a reverse color scheme, again to aid easier reading of the screen. ~Hans

Skins


Comments:


Add Comment 
Sign as Author 
Enter code:


Back to Triad Dev -- Blog Home Page


Recent Comments

Sat 31 Mar -

Fri 23 Mar -

Fri 23 Feb -

Tue 30 Jan -

Tue 23 Jan -

Mon 23 Oct -

Thu 05 Oct -

Tue 13 Jun -

Sun 21 May -

Wed 22 Feb -