chiark / gitweb /
Reverse colours of all stripey tables to have dark (different) first
[ypp-sc-tools.db-live.git] / yarrg / web / lookup
index 1453a372145ee2989261f757481aee295e052fb1..39da2e9699bc4a599e6360ca63f774d27df3cef3 100755 (executable)
@@ -124,9 +124,18 @@ body {
   color: #000000;
   background: #ffffff;
 }
-tr.datarow0 { background: #ffffff; }
-tr.datarow1 { background: #e3e3e3; }
+tr.datarow0 { background: #e3e3e3; }
+tr.datarow1 { background: #ffffff; }
 </style>
+<&| script &>
+  function register_onload(f) {
+    var previous_onload= window.onload;
+    window.onload= function() {
+      if (previous_onload) previous_onload();
+      f();
+    };
+  }
+</&script>
 </head><body>
 
 <a href="<% $m->current_comp()->name() |u %>">YARRG</a> -
@@ -144,7 +153,8 @@ foreach my $var (@vars) {
 
 foreach my $var (keys %ARGS) {
        next unless $var =~
-               m/^(?: (?:route|commod)string |
+               m/^(?: (?:route|commod|capacity)string |
+                       commodid |
                        islandid \d |
                        archipelago \d |
                        debug |