diff options
-rw-r--r-- | charset.rb | 4 | ||||
-rw-r--r-- | config.rb.sample | 5 | ||||
-rw-r--r-- | dudle.css | 5 | ||||
-rwxr-xr-x | index.cgi | 15 |
4 files changed, 20 insertions, 9 deletions
@@ -8,7 +8,7 @@ $utfcookie = CGI::Cookie.new("utf", "true") $utfcookie.path = "/" if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") $utfcookie.expires = Time.now+1*60*60*24*365 - UTFASCII = "<a href='?ascii' style='text-decoration:none'>ASCII</a>" + UTFASCII = "<a href='?ascii' style='text-decoration:none'>Change Charset to plain ASCII</a>" BACK = CGI.escapeHTML("↩") YES = CGI.escapeHTML('✔') @@ -25,7 +25,7 @@ if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") DELETE = CGI.escapeHTML("⌧") else $utfcookie.expires = Time.now-1*60*60*24*36 - UTFASCII = "<a href='?utf' style='text-decoration:none'>UTF-8 (#{CGI.escapeHTML('↩✔✘?–↞←→↠✍⌧')})</a>" + UTFASCII = "<a href='?utf' style='text-decoration:none'>If you see all these characters: #{CGI.escapeHTML('↩✔✘?–↞←→↠✍⌧')} you can safely change the charset to UTF-8</a>" BACK = CGI.escapeHTML("back") YES = CGI.escapeHTML('OK') diff --git a/config.rb.sample b/config.rb.sample index 7cfdcca..e050a28 100644 --- a/config.rb.sample +++ b/config.rb.sample @@ -6,6 +6,11 @@ SITEURL = "http://#{$cgi.server_name}#{$cgi.script_name.gsub(/[^\/]*$/,"")}" # add this htmlcode to the startpage NOTICE = <<CHARSET +<fieldset><legend>Sandbox</legend> + If you want to play around with the Tool, you may want to take a look at these two Example Polls:<br /> + <a href='#{SITEURL}EventScheduleExample'>Event Schedule Poll</a><br /> + <a href='#{SITEURL}NormalExample'>Normal Poll</a> +</fieldset> <fieldset><legend>--verbose</legend> Get the sourcecode with <a href="http://bazaar-vcs.org/">bazaar</a>: <br /> @@ -103,4 +103,9 @@ h1 { div.comment { margin-top: 1ex; } +div#config{ + float: right; + margin-left:20px; + width:20ex; +} @@ -83,6 +83,14 @@ SUCCESS end end +$htmlout += <<CHARSET +<div id='config'> +<fieldset><legend>Config</legend> +#{UTFASCII} +</fieldset> +</div> +CHARSET + $htmlout += <<CREATE <fieldset><legend>Create New Poll</legend> <form method='post' action='.'> @@ -111,13 +119,6 @@ $htmlout += <<CREATE </fieldset> CREATE -$htmlout += <<CHARSET -<fieldset><legend>Change Charset</legend> -#{UTFASCII} -</fieldset> -CHARSET - - $htmlout += NOTICE $htmlout += "</body>" |