-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweather_input.html
executable file
·80 lines (79 loc) · 2.96 KB
/
weather_input.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
<html>
<head>
<title>Generate random weather</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">
<form name="npc" method="post" action="/cgi-bin/html_weather_output.rb">
<table width="600" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td><center><h2>Random weather - for Amar RPG</h2></center></td>
</tr>
<tr>
<td><center><p>Create a month of weather: Choose the month
("Unspecified" if not in Amar), the weather and wind from the
previous day and press "Submit".</p>
<p>To learn about the months in the Amar calendar,
<a href="http://d6gaming.org/index.php/Mythology#The_Wheel_of_Existence">read here</a>.
</center></td>
</tr>
<tr><td></td></tr>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#333333">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td width="150" bgcolor="#CCCCCC"><b>Month</b></td>
<td bgcolor="#FFFFFF">
<select name="month">
<% $Month.each_with_index do |item,index| %>
<option><%= "#{index}: #{item}" %>
<% end %>
</select>
</td>
</tr>
<tr>
<td width="150" bgcolor="#CCCCCC"><b>Previous weather</b></td>
<td bgcolor="#FFFFFF">
<fieldset id="weather">
<table><tr>
<td><input type="radio" value="1" name="weather" checked="checked"><img src="/images/weather/weather1.png" alt="<%= $Weather[1] %>" /></td>
<% 2.upto(20) do |i| %>
<td><input type="radio" value="<%= i %>" name="weather"><img src="/images/weather/weather<%= i %>.png" alt="<%= $Weather[i] %>"/></td>
<% if i%6 == 5 %>
</tr><tr><td colspan="6"><hr /></td></tr><tr>
<% end %>
<% end %>
</tr></table>
</fieldset>
</td>
</tr>
<tr>
<td width="150" bgcolor="#CCCCCC"><b>Previous wind</b></td>
<td bgcolor="#FFFFFF">
<fieldset id="wind">
<table><tr>
<td><input type="radio" value="1" name="wind" checked="checked"><img src="/images/weather/wind0.png" /></td>
<% 1.upto(24) do |i| %>
<td><input type="radio" value="<%= i %>" name="wind"><img src="/images/weather/wind<%= i %>.png" /></td>
<% if i%6 == 5 %>
</tr><tr><td colspan="6"><hr /></td></tr><tr>
<% end %>
<% end %>
</tr></table>
</fieldset>
</td>
</tr>
<tr>
</tr>
</table>
</td>
</tr>
</table>
<p align="center"><input type="submit" name="submit" value=" Submit " class="pure-button button-weather"></p>
</form>
<p><center><button class="pure-button button-front" onclick="location.href = '/amar.html';" > Front page </button></center></p>
</body>
</html>