Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

guagesT.htm

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

guagesT.htm

Post by beteljuice »

I noticed some syntax error in guagesT.htm

Everybody seems to working alright regardless, but there are no 'endings' to several Javascript lines at the bottom of the page.

Code: Select all

<script language="JavaScript1.2" type="text/javascript">
 var tempunits = "<#tempunit>"
 var tempos = new Array("<#RCtemp>","<#RCtempTL>","<#RCtempTH>","<#temptrendtext>")
 var tempis = new Array("<#RCintemp>","","","")
 var tempex1 = new Array("","","","")
 var tempex2 = new Array("","","","")
 var tempdp = new Array("<#RCdew>","","","")
 var temphi = new Array("<#RCheatindex>","","","")
 var tempwc = new Array("<#RCwchill>","","","")
 var humos = new Array("<#RChum>","","","")
 var humis = new Array("<#RCinhum>","","","")
 var humex1 = new Array("","","","")
 var humex2 = new Array("","","","")

...........
Should read:

Code: Select all

<script language="JavaScript1.2" type="text/javascript">
 var tempunits = "<#tempunit>";
 var tempos = new Array;("<#RCtemp>","<#RCtempTL>","<#RCtempTH>","<#temptrendtext>");
 var tempis = new Array("<#RCintemp>","","","");
 var tempex1 = new Array("","","","");
 var tempex2 = new Array("","","","");
 var tempdp = new Array("<#RCdew>","","","");
 var temphi = new Array("<#RCheatindex>","","","");
 var tempwc = new Array("<#RCwchill>","","","");
 var humos = new Array("<#RChum>","","","");
 var humis = new Array("<#RCinhum>","","","");
 var humex1 = new Array("","","","");
 var humex2 = new Array("","","","");

...........
Luckily, this is being interpreted as a list of variable declarations on one line - which is allowed :P
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: guagesT.htm

Post by steve »

"That's not my code". (Have you seen the "list of phrases used by software developers"? Quite funny.)

I just copied it from the original distribution and modified it to use Cumulus codes. I don't do javascript so didn't know any better.

Anyway, enough of the excuses - I'll fix it for the next build - thanks!

Steve
Post Reply