-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtown_output.html
executable file
·107 lines (105 loc) · 4.74 KB
/
town_output.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Random town generation - For the Amar RPG</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css" integrity="sha384-cg6SkqEOCV1NbJoCu11+bm0NvBRc8IYLRGXkmNrqUBfTjmMYwNKPWBTIKyw9mHNJ" crossorigin="anonymous">
<link rel="stylesheet" href="/amar.css">
</head>
<body bgcolor="#ffffff" text="#000000">
<table width="480" border="0" cellspacing="0" cellpadding="2" align="center">
<tbody>
<tr>
<td>
<center><h2>Random town - for the Amar RPG</h2></center>
</td>
</tr>
<tr>
<td>
"Unhoused residents" are visitors from nearby or homeless residents.
</td>
</tr>
</tbody>
</table>
<br />
<table width="800" border="0" cellspacing="0" cellpadding="1"
align="center" bgcolor="#333333">
<tbody>
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr><td colspan="16" bgcolor="#666666">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tbody>
<tr>
<td width="150" bgcolor="#dddddd"><input type="text" style="font-weight: bold; background-color: #dddddd; text-align: center;" size="70" name="house" value="<%= @tn %>"</td>
</tr>
<% @t.each_with_index do |h,i| %>
<tr>
<td width="150" bgcolor="#dddddd"><input type="text" style="font-weight: bold; background-color: #dddddd;" size="70" name="house" value="#<%= i %>: <%= h[0] %>"</td>
</tr>
<% h[1..-1].each do |r| %>
<tr>
<td width="40" bgcolor="#ffffff"><input type="text" size="80" name="resident" value="<%= r %>"</td>
</tr>
<% end %>
<tr>
<td colspan="16" bgcolor="#888888"></td>
</tr>
<% end %>
</tbody>
</table>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<br />
<center><p><img src="<%= $town_png %>" width="600"/></p></center>
<table width="800" border="0" cellspacing="0" cellpadding="2" align="center">
<tbody>
<tr>
<td colspan="2" align="center">
<p><small><b>The image above</b> shows those residents with special relationships. A
black line indicates a very good relationship while a double black
line shows love or a strong alliance. A red line shows animosity while
a double red line signifies deep hate. Both a black and a red line
indicates a complex relationship. The residents that are not shown in
the image does not have special relationships. Residents with the same
surname has a good family relationship unless any lines shows an even
better relationsip with black line(s) or bad relationsip with red
line(s). The number at the bottom of each person (like #14) is the house
where they live.</p>
<p>Right-click on the image and choose to download to save your town
relations. If you are not satisfied with the generated relations,
simply download the town file, go to the front page and use the
tool to upload the town file to generate a new relationship map.</p>
<p> For large settlements, the map becomes chaotic, and then it is more
helpful to read the relations in a plain text file. To do so, simply
click the biutton "Download town relations". In the file, "+>"
indicates a positive relationship, whereas "->" is a negative
relationship.</small></p>
<br />
</td>
</tr>
<tr>
<td align="center">
<button class="pure-button button-download" onclick="location.href = '<%= $nfile %>';" > Download generated town </button></p>
</td>
<td align="center">
<button class="pure-button button-download" onclick="location.href = '<%= $townrel_file %>';" > Download town relations </button></p>
</td>
</tr>
<tr>
<td colspan="2"align="center">
<form name="new" method="post" action="/cgi-bin/html_town_input.rb">
<input type="submit" class="pure-button button-town" name="new" value=" New random town "></form>
<p><button class="pure-button button-reload" onClick="history.go(0);"> Reload with same values </button></p>
<p><button class="pure-button button-front" onclick="location.href = '/amar.html';" > Front page </button></p>
</td>
</tr>
</tbody>
</table>
</body>
</html>