($r, $b) = ($b, $r);
}
- printf " <td style=\"background-color: rgb($r, $g, $b)\">%.1f%%</td>\n", $pn * 100.0;
+ printf " <td style=\"background-color: rgb($r, $g, $b)\" class=\"num\">%.1f%%</td>\n", $pn * 100.0;
}
unless ($lowest_division) {
my $r = color(1.0);
my $g = color(1.0 - $pn / 3);
my $b = color(1.0 - $pn / 3);
- printf " <td style=\"background-color: rgb($r, $g, $b)\">%.1f%%</td>\n", $pn * 100.0;
+ printf " <td style=\"background-color: rgb($r, $g, $b)\" class=\"num\">%.1f%%</td>\n", $pn * 100.0;
}
print " </tr>\n";
}
<html>
<head>
<title>WLoH-plasseringsannsynlighetsberegning</title>
- <style type="text/css">
-body {
- color: black;
- background: white;
- font-family: sans-serif;
-}
-table {
- border-collapse: collapse;
- border: 1px solid black;
-}
-td, th {
- border: 1px solid black;
- padding: 5px;
-}
-td {
- text-align: right;
-}
- </style>
+ <link rel="stylesheet" href="/style" type="text/css" />
</head>
<body>
<h1>WLoH-plasseringsannsynlighetsberegning</h1>
<html>
<head>
<title>WLoH-rating</title>
- <style type="text/css">
-body {
- color: black;
- background: white;
- font-family: sans-serif;
-}
-table {
- border-collapse: collapse;
- border: 1px solid black;
-}
-td, th {
- border: 1px solid black;
- padding: 5px;
-}
-td.num {
- text-align: right;
-}
-.even {
- background-color: #ddd;
-}
- </style>
+ <link rel="stylesheet" href="/style" type="text/css" />
</head>
<body>
<h1>WLoH-rating</h1>
--- /dev/null
+body {
+ color: black;
+ background: white;
+ font-family: sans-serif;
+}
+table {
+ border-collapse: collapse;
+ border: 1px solid black;
+}
+td, th {
+ border: 1px solid black;
+ padding: 5px;
+}
+td.num {
+ text-align: right;
+}
+.even {
+ background-color: #ddd;
+}