Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Custom navigation Bar and DIV

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

Moderator: daj

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

Re: Custom navigation Bar and DIV

Post by beteljuice »

gemini06720 wrote:.... most if not all of the variables (or tags) should be placed between single or double quotes. The only variables that do not need to be placed inside quote marks are the 'true/false'.

I know some people are going to tell me that a script will still work when the quotes are not used, but that is sloppy programming...
Babblecrap !

Code: Select all

<SCRIPT LANGUAGE="JavaScript">
a= '1.2';
b= '5.4';
a1= a+b;

document.write('Quoted 1.2 + 5.4 = ' + a1 +'<br />'); 

// Results in
// Quoted 1.2 + 5.4 = 1.25.4
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Custom navigation Bar and DIV

Post by mcrossley »

Agreed Beteljuice. However it will work for Antonio's code -

Code: Select all

if (temp>0){...}
But in general if using quotes you should explicitly cast the variables...

Code: Select all

var a = "1.2";
var b = "5.4";

var a1 = parseFloat(a) + parseFloat(b);
Unless of course you really want to concatenate the strings. :lol:
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

Re: Custom navigation Bar and DIV

Post by beteljuice »

.. concatenate the strings
But Ant is a newbie (if not actually a baby), so such advice is misleading.

Thus far his experience is mainly cut 'n' paste - nothing wrong with that, but this forum has dedicated more than enough time on baby sitting (mods edit if you wish).
Image
......................Imagine, what you will KNOW tomorrow !
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Custom navigation Bar and DIV

Post by Synewave »

beteljuice wrote:Thus far his experience is mainly cut 'n' paste - nothing wrong with that, but this forum has dedicated more than enough time on baby sitting (mods edit if you wish).
I have no problem in helping anyone where I can. I actually teach 80+ year olds how to use a computer for the first time in their lives, so I have a lot of patience.

Although, I do feel sometimes that some of the questions are not really Cumulus web customisation directly related, and maybe should be asked elsewhere. But having said that, the questions are about developing a Cumulus data generated website.
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: Custom navigation Bar and DIV

Post by pacificblue03 »

haha i just woke up and read the comments well

the javascrips was 1000% confunisng :bash: :lol: :oops:

and as an above post said i am quiet new to the web industry but that is why i am doing Cert 4 in web design for a year this includes some javascript and i know that scripting can be hard since i used to use Python

i will add the padding on the bottom lines

by the way is there a big time zone difference i seem to only be able to hear from you guys in my 6- 9am and 7pm - 2am

Antonio.
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: Custom navigation Bar and DIV

Post by pacificblue03 »

gemini06720 wrote:
pacificblue03 wrote:So that worked very well i guess now all i can do is wait for some feedback / suggestions
Antonio how about doing the same (padding) for the two line at the bottom of your page... ;)
haha sorry i am confused are the 2 bottom lines being my

page updated
powered by cumulus?

if so then i will go ahead but i dont want to break anything dont want that at all haha by the way with your help of course my web teacher said WOW your site looks good antonio :) now i am happy.

Antonio.
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Custom navigation Bar and DIV

Post by Synewave »

pacificblue03 wrote:by the way is there a big time zone difference i seem to only be able to hear from you guys in my 6- 9am and 7pm - 2am
You do make me laugh (in a nice way!). I, for one, am on the opposite side of the earth to you! :o
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: Custom navigation Bar and DIV

Post by pacificblue03 »

haha oh i see well at least now i know that :)

so i had a question i have on the index page wind readings right they are

current gust
10 min average wind

now i need the tag for Todays max Gust so that under the current gust i can add a cell displaying the strongest gust of the day and then i want to add a yesterdays strongest gust if pos.

Antonio.
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Custom navigation Bar and DIV

Post by Synewave »

Antonio,

Have you looked in the Wiki?

For guidance, have a look at <#wgustTM> to start.

I still can't believe you thought we were all in Austrailia?
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: Custom navigation Bar and DIV

Post by pacificblue03 »

:oops: yes Australia :oops:




okay where is this wiki?

is on google?

im having trouble adding another row of tables you see under the wind table i put

<tr>
<td>&nbsp;</td>
</tr>

but it makes the cell not filled

Antonio
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Custom navigation Bar and DIV

Post by Synewave »

Antonio,

Do you really not know what &nbsp; is? Surely your HTML classes may have covered that?

The Wiki, just look at the top of this page you are looking at (have you really not already looked at it at all since having Cumulus installed?)

I need to go to the fridge now for more wine.
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: Custom navigation Bar and DIV

Post by pacificblue03 »

yep it is the code for 1 (space)

um okay so new problem now i have made the cells but the are not filled like the rest of the cells?

Antonio.
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Custom navigation Bar and DIV

Post by daj »

Synewave wrote:I need to go to the fridge now for more wine.
:lol:
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: Custom navigation Bar and DIV

Post by pacificblue03 »

daj wrote:
Synewave wrote:I need to go to the fridge now for more wine.
:lol:
so am i making you want to have wine to ease stress :P

i hope not if i am .....
pacificblue03
Posts: 425
Joined: Sun 13 Jun 2010 12:35 am
Weather Station: Davis vantage vue
Operating System: windows 11
Location: Sydney Australia

Re: Custom navigation Bar and DIV

Post by pacificblue03 »

well i worked out my table problem i was missing

<tr class="td_wind_data">

silly silly me

Antonio.
Post Reply