diff --git a/files/www/black_on_white.css b/files/www/black_on_white.css new file mode 100644 index 00000000..c7dd5f06 --- /dev/null +++ b/files/www/black_on_white.css @@ -0,0 +1,28 @@ +body { font-family:Verdana; background: white; color:black } +a:link { background: white; color: black } +a:visited { background: white; color: black } +a:active { background: white; color: black } +h1 { font-family:Verdana; color: black} + +hr { + width: 100%; + height: 2px; + margin-left: auto; + margin-right: auto; + color: black; + background-color: white; +} + +body table { + font-size: 16px; + +} +.navbar_select { background:white; color:black } +.navbar_select a:link { background:white; color:black } +.navbar_select a:visited { background:white; color:black } +.navbar_select a:active { background:white; color:black } + +.TopBanner { width:100%; } +.LogoDiv { position:absolute left:0px; width:100%; height:95; } +.AREDNLogo { background: white; position:absolute; left:10%; width:175; height:95; } +.PartOfAREDN { font-family:Verdana; font-size:xx-small; text-align:center; } diff --git a/files/www/cgi-bin/perlfunc.pm b/files/www/cgi-bin/perlfunc.pm index 597667f9..113f0108 100644 --- a/files/www/cgi-bin/perlfunc.pm +++ b/files/www/cgi-bin/perlfunc.pm @@ -61,7 +61,9 @@ sub html_header print "\n"; print "\n"; print "\n"; - print "\n"; + my $rnum=`date +%s`; + chomp($rnum); + print "\n"; print "\n" if $close; } @@ -1362,14 +1364,14 @@ sub get_interface sub css_options { - print ""; + print ""; my @cssfiles = `ls /www/*.css`; foreach $css (@cssfiles) { chomp($css); $css =~ m#^(.*?)([^/]*)(\.css)$#; ($dir,$file) = ($1,$2); - print "" unless $file eq "style"; + print "" unless $file eq "style"; } } diff --git a/files/www/cgi-bin/status b/files/www/cgi-bin/status index b7eb3904..a8d148e1 100755 --- a/files/www/cgi-bin/status +++ b/files/www/cgi-bin/status @@ -49,13 +49,17 @@ $config = "not set" if $config eq "" or not -d "/etc/config.$config"; read_postdata(); # set up the style sheet -system "cp -f /www/aredn.css /www/style.css" unless -f "/www/style.css"; -if($parms{css}) { system "cp -f /www/$parms{css} /www/style.css" } +system "rm -rf /www/style.css" if -f "/www/style.css"; # cleanup any actual file named style.css +system "ln -s /www/aredn.css /www/style.css" unless -l "/www/style.css"; + +if($parms{css}) { + system "ln -fs /www/$parms{css} /www/style.css" if -f "/www/$parms{css}"; +} # generate the page http_header(); html_header("AREDN™ Node $node", 1); -print "
\n"; +print "\n"; print "
\n"; alert_banner(); diff --git a/files/www/night.css b/files/www/night.css deleted file mode 100644 index b4ba6e3c..00000000 --- a/files/www/night.css +++ /dev/null @@ -1,20 +0,0 @@ -body { background:black; color:red } -a:link { background:black; color:gray } -a:visited { background:black; color:gray } -a:active { background:black; color:gray } - -button { background-color:gray; font-weight:bold } -input { background-color:gray; font-weight:bold } -option { background-color:gray; font-weight:bold } -select { background-color:gray; font-weight:bold } - -.navbar_select { background:red; color:black } -.navbar_select a:link { background:red; color:black } -.navbar_select a:visited { background:red; color:black } -.navbar_select a:active { background:red; color:black } - - -.TopBanner { width:100%; } -.LogoDiv { position:absolute left:0px; width:100%; height:95; } -.AREDNLogo { background:rgb(231,231,231); position:absolute; left:10%; width:175; height:95; } -.PartOfAREDN { font-family:Verdana; font-size:xx-small; text-align:center; } diff --git a/files/www/red_on_black.css b/files/www/red_on_black.css new file mode 100644 index 00000000..eddad85f --- /dev/null +++ b/files/www/red_on_black.css @@ -0,0 +1,28 @@ +body { font-family:Verdana; background: black; color:red } +a:link { background: black; color: red } +a:visited { background: black; color: red } +a:active { background: black; color: red } +h1 { font-family:Verdana; color: red} + +hr { + width: 100%; + height: 2px; + margin-left: auto; + margin-right: auto; + color: red; + background-color: black; +} + +body table { + font-size: 16px; + +} +.navbar_select { background:black; color:red } +.navbar_select a:link { background:black; color:red } +.navbar_select a:visited { background:black; color:red } +.navbar_select a:active { background:black; color:red } + +.TopBanner { width:100%; } +.LogoDiv { position:absolute left:0px; width:100%; height:95; } +.AREDNLogo { background: white; position:absolute; left:10%; width:175; height:95; } +.PartOfAREDN { font-family:Verdana; font-size:xx-small; text-align:center; } diff --git a/files/www/style.css b/files/www/style.css deleted file mode 120000 index 147a2b77..00000000 --- a/files/www/style.css +++ /dev/null @@ -1 +0,0 @@ -/tmp/web/style.css \ No newline at end of file diff --git a/files/www/high_contrast.css b/files/www/white_on_black.css similarity index 100% rename from files/www/high_contrast.css rename to files/www/white_on_black.css diff --git a/files/www/yellow_on_black.css b/files/www/yellow_on_black.css new file mode 100644 index 00000000..fb797547 --- /dev/null +++ b/files/www/yellow_on_black.css @@ -0,0 +1,28 @@ +body { font-family:Verdana; background: black; color:yellow } +a:link { background: black; color: yellow } +a:visited { background: black; color: yellow } +a:active { background: black; color: yellow } +h1 { font-family:Verdana; color: yellow} + +hr { + width: 100%; + height: 2px; + margin-left: auto; + margin-right: auto; + color: yellow; + background-color: black; +} + +body table { + font-size: 16px; + +} +.navbar_select { background:black; color:yellow } +.navbar_select a:link { background:black; color:yellow } +.navbar_select a:visited { background:black; color:yellow } +.navbar_select a:active { background:black; color:yellow } + +.TopBanner { width:100%; } +.LogoDiv { position:absolute left:0px; width:100%; height:95; } +.AREDNLogo { background: white; position:absolute; left:10%; width:175; height:95; } +.PartOfAREDN { font-family:Verdana; font-size:xx-small; text-align:center; }