For the graphs for qos classes, and for process
count and memory usage, the colors change on
each page reload, since the colors are currently
totally random.
This change uses defined color indexes, 15 different
ones, that should be enough for qos at least, and is
enough for processes on my setup. This makes
the colors consistent between page loads, so it makes
it easier to monitor changes.
Perhaps one should define 30 different colors meant
to be used for graphing, then one could avoid random
colors also for the sensor graphs, and make it less
likely to get color collision for the process graphs
as well. Defining 30 such colors is not part of this
change.
The new firewall uses some new options which can be configured on the optionsfw page in the WUI.
In the past these settings where missing on updated systems.
Make the html validate. One part of the changes is to
move style from using deprecated attributes to using
style attribute on tag.
The other part is to make sure that tables, rows and cells
are properly closed and nested.
Use a table for showing output from the dialctrl script.
Remove align attribute on div for openbox, rather use
style attribute with text-align, since align attribute
causes html validation warnings, since it is deprecated.
Remove deprecated and useless attribute on javascript tag.
The font tag is deprecated, so clean up html by removing
font tags that have no effect.
For font tags that have an effect, move the styling to
the tag controlling the text output.
The aim is to get one step further towards validating html.
When listing the defined qos classes when qos.cgi is initially
displayed, include the description of the class.
Add upload heading for red graph and download graph for imq graph,
since it is not obvious what the graphs means.
Almost all of <input type="image"... has both an alt and a
title attribute, but some are missing title, and when the icon
is not very clear, it makes it harder to understand what the icon
does. By adding title, the browser displays text when mouse pointer
is over the icon.
Also add missing quotes for alt and title attributes where needed.
qos.cgi and media.cgi depend on swapVisibility function, this
is defined in each theme, but was missing from the new theme.
Add the function, and implement it using jquery, since jquery
is always present in the new theme.
The menus in the new default theme does not work properly on
ipad and I guess other devices using mobile safari.
The reason is that <a> tags without href is not marked as
clickable by ios, and therefore no css hover effect is applied.
The fix is either to add a href="#" attribute
or a onclick="return true;" atribute on the <a> tag.
I prefer the href solution, since it is a no javascript solution.