aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--charset.rb2
-rwxr-xr-xcustomize.rb8
-rw-r--r--dudle.css2
3 files changed, 7 insertions, 5 deletions
diff --git a/charset.rb b/charset.rb
index 1dfef01..b6eae18 100644
--- a/charset.rb
+++ b/charset.rb
@@ -24,6 +24,7 @@ if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii")
NO = CGI.escapeHTML('✘')
MAYBE = CGI.escapeHTML('?')
UNKNOWN = CGI.escapeHTML("–")
+ CROSS = CGI.escapeHTML('✘')
YEARBACK = CGI.escapeHTML("↞")
MONTHBACK = CGI.escapeHTML("←")
@@ -39,6 +40,7 @@ else
NO = CGI.escapeHTML('NO')
MAYBE = CGI.escapeHTML('?')
UNKNOWN = CGI.escapeHTML("-")
+ CROSS = CGI.escapeHTML('X')
YEARBACK = CGI.escapeHTML("<<")
MONTHBACK = CGI.escapeHTML("<")
diff --git a/customize.rb b/customize.rb
index a976452..8a9231a 100755
--- a/customize.rb
+++ b/customize.rb
@@ -46,12 +46,12 @@ $html << <<CHARSET
<th>Description</th>
</tr>
CHARSET
-[["Use special characters (#{UTFCHARS})","utf"],
- ["Use normal strings","ascii"]].each{|description,href|
+[["Use normal strings","ascii"],
+ ["Use special characters (#{UTFCHARS})","utf"]].each{|description,href|
selected = href == (USEUTF ? "utf" : "ascii")
$html << "<tr><td>"
- $html << "X" if selected
- $html << "</td><td>"
+ $html << CROSS if selected
+ $html << "</td><td class='charset'>"
$html << "<a href='?#{href}'>" unless selected
$html << description
$html << "</a>" unless selected
diff --git a/dudle.css b/dudle.css
index 8c123fc..ff9c779 100644
--- a/dudle.css
+++ b/dudle.css
@@ -79,7 +79,7 @@ table {
border: none;
}
-td.create_poll{
+td.create_poll, td.charset{
text-align:left;
}