Page 1 of 1

Cumulus MX Default Web Template Validation

Posted: Sat 05 Jun 2021 7:01 am
by BeaumarisWX
Hi Mark,
Finally had time to play with the new default CUMX Template.
I decided to add my onsite WxSim Forecast page and Webcam Page and in doing so as I always do, made sure they validated, as I had to change some pages from .htm to .php due to .php inclusion in those pages, the reason for going with .php was because my shared host provider does not allow .htaccess mods.

So decided to validate all Template pages and found the following : (apologies if these have already been highlighted).

1: "noaareport.htm" a minuscule error on line 98, throws error because of the "---" between commented out <span>.
Old : Line 98 : <!-- <h3><span id="RptTitle">---</span></h3> -->
New : Line 98 : <!-- <h3><span id="RptTitle"></span></h3> --> ( removed "---" ).

2: "today.htm" a minuscule error on line 176, throws error because of the rouge "</span>" as per below.
Old : Line 176 : <td>High Pressure</span></td>
New : Line 176 : <td>High Pressure</td> ( removed "</span>" ).

I also noticed that on the "noaareport.htm" page if you select the first year of records (eg. 2019) the Months Selector is greyed out, acknowledge you are fixing the uncaught error for " monSt = y == startYear ? startMon : 1;" to "monSt = y == startYear ? startMonth: 1;".

Also added validation "img" links to footer on each page for easy checking, as well as some additional quirky bits and bobs to the display for fun.

https://beaumaris-weather.com/cumulusmx ... /index.php

Thanks for all the great work, appreciated, latest version going well so far.

Kindest Regards Always,

Re: Cumulus MX Default Web Template Validation

Posted: Mon 07 Jun 2021 8:49 am
by mcrossley
Thanks, Tony, I do validate the pages, but not as often as I should so little issues creep in.

I'll add these to my tofix list...