Skip to content

Commit

Permalink
Improved name generator code. Included naming of more types.
Browse files Browse the repository at this point in the history
  • Loading branch information
isene committed Aug 4, 2018
1 parent fb31257 commit 9438a18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cgi-bin/html_name_output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
require "cgi"
require "erb"

# Include all core files via includes.rb
load "../includes/includes.rb"

cgi = CGI.new
tmpl = File.read("../name_output.html")

Expand Down
2 changes: 1 addition & 1 deletion name_input.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<td bgcolor="#FFFFFF">
<select name="name_type">
<% $Names.each_with_index do |item,index| %>
<% o = index.to_s.rjust(2) + ": " + item[0] %>
<% o = index.to_s + ": " + item[0] %>
<option><%= o %>
<% end %>
</select>
Expand Down

0 comments on commit 9438a18

Please sign in to comment.