-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastrotest.html
192 lines (178 loc) · 8.21 KB
/
astrotest.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE HTML>
<html>
<head>
<title>astrotest - Testing astrological hypotheses</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="astrotest.css">
<script type="text/javascript" src="minlib.js"></script>
<script type="text/javascript" src="astrotest_settings.js"></script>
<script type="text/javascript" src="astrotest.js"></script>
<script type="text/javascript" src="aaf2csv.js"></script>
</head>
<body>
<h1>astrotest - Testing astrological hypotheses</h1>
<div id="msg"> </div>
<table id="selections">
<tr id="row-csv">
<td class="with-help" data-help-id="source-file">Sample dataset (.csv)</td>
<td>
<input type="text" id="source-file" size="60" value="test.csv">
<button type="button" class="choose-file with-help" data-help-id="choose-file-name" data-for="source-file">Choose</button>
<button type="button" id="switch-to-aaf" class="with-help" data-help-id="switch-to-aaf">AAF</button>
</td>
</tr>
<tr id="row-aaf" style="display:none">
<td class="with-help" data-help-id="source-file-aaf">Sample dataset (.aaf)</td>
<td>
<input type="text" id="source-file-aaf" size="60" value="test.aaf">
<button type="button" class="choose-file with-help" data-help-id="choose-file-name" data-for="source-file-aaf">Choose</button>
<button type="button" class="with-help" data-help-id="convert-from-aaf" id="convert-from-aaf">Convert</button>
<button type="button" id="switch-to-csv" class="with-help" data-help-id="back-to-csv" >CSV</button>
</td>
</tr>
<tr>
<td class="with-help" data-help-id="number-of-runs">Number of test runs</td>
<td>
<input type="number" id="test-runs" size="6">
</td>
</tr>
<tr>
<td class="with-help" data-help-id="rand-date-fn">Function to generate random date/time</td>
<td>
<select id="rand-date-fn" data-help-id="rand-date-fn-values" class="with-help"></select>
</td>
</tr>
<tr>
<td class="with-help" data-help-id="seed-values">Seed values for PNG</td>
<td>
<input id="seed1" type="number" width="7">
<input id="seed2" type="number" width="7">
<button type="button" id="generate-seed-values" class="with-help" data-help-id="generate-seed-values">Generate</button>
</td>
</tr>
<tr id="R-dates" style="display:none">
<td class="with-help" data-help-id="rand-date-fn-R">Dates for random date function "R"</td>
<td>
<input id="jd1" class="juldate" type="number">
<input id="jd2" class="juldate" type="number">
<input id="jd3" class="juldate" type="number">
</td>
</tr>
<tr id="Q-quantiles" style="display:none">
<td class="with-help" data-help-id="rand-date-fn-Q">Quantiles</td>
<td>
<input id="quantiles" type="number" size="3">
</td>
</tr>
<tr>
<td class="with-help" data-help-id="house-system">House system</td>
<td>
<select id="hsys" size="1"></select>
</td>
</tr>
<tr>
<td class="with-help" data-help-id="orb">Aspect orb</td>
<td>
<input id="orb" type="number" value="5"> °
</td>
</tr>
<tr>
<td class="with-help" data-help-id="score-fn">Score Function</td>
<td>
<button type="button" id="add-aspect" class="add_row">Add aspect</button>
<button type="button" id="add-sign-position" class="add_row">Add sign position</button>
<button type="button" id="add-house-position" class="add_row">Add house position</button>
<button type="button" id="add-raw-term" class="add_row">Add raw term</button>
<table id="score-fn"><tbody/></table>
<script type="text/html" id="row-template-aspect">
<tr class="aspect">
<td>+<input class="with-help" data-help-id="weight-factor" type="number" value="1">*</td>
<td><select class="planet" value="0"></select></td>
<td><select class="aspect"></select></td>
<td><select class="planet" value="1"></select></td>
<td><select value="*" class="direction with-help" data-help-id="aspect-direction" ></select></td>
<td><select class="reference with-help" value="z" data-help-id="aspect-reference"></select></td>
<td><button type="button" class="delete_row with-help" data-help-id="delete-row">-</button></td>
</tr>
</script>
<script type="text/html" id="row-template-house-position">
<tr class="house-position">
<td>+<input class="with-help" data-help-id="weight-factor" type="number" value="1">*</td>
<td><select class="planet" value="0"></select></td>
<td>in <select class="house"></select></td>
<td></td>
<td></td>
<td></td>
<td><button type="button" class="delete_row with-help" data-help-id="delete-row">-</button></td>
</tr>
</script>
<script type="text/html" id="row-template-sign-position">
<tr class="sign-position">
<td>+<input class="with-help" data-help-id="weight-factor" type="number" value="1">*</td>
<td><select class="planet" value="0"></select></td>
<td>in <select class="sign"></select></td>
<td></td>
<td></td>
<td></td>
<td><button type="button" class="delete_row with-help" data-help-id="delete-row">-</button></td>
</tr>
</script>
<script type="text/html" id="row-template-raw-term">
<tr class="raw">
<td>+<input class="with-help" data-help-id="weight-factor" type="number" value="1">*</td>
<td><select class="planet pl1" value="0"></select></td>
<td><select class="fn" value="zll"></select></td>
<td><select class="planet pl2" value="1"></select></td>
<td><input title="First numeric argument" type="number" class="arg1"></td>
<td><input title="Second numeric argument" type="number" class="arg2"></td>
<td><button type="button" class="delete_row with-help" data-help-id="delete-row">-</button></td>
</tr>
</script>
</td>
</tr>
<tr>
<td class="with-help" data-help-id="allow-moshier-fallback">Allow Moshier fallback</td>
<td>
<input type="checkbox" id="cont-with-mosh">
</td>
</tr>
<tr>
<td class="with-help" data-help-id="sweph-ephepath">Ephemeris path</td>
<td>
<input type="text" id="ephepath">
</td>
</tr>
<tr>
<td class="with-help" data-help-id="dbg-level">Debug level</td>
<td>
<select id="dbg-level" size="1">
<option value="0">No debug output</option>
<option value="1">Debug</option>
</select>
</td>
</tr>
<tr>
<td rowspan="2" class="with-help" data-help-id="plan-file">These settings</td>
<td>
<input type="text" id="plan-file" size="60" value="test.plan">
<button type="button" class="choose-file with-help" data-help-id="choose-file-name" data-for="plan-file">Choose</button>
</td>
</tr>
<tr>
<td class="col2">
<button type="button" id="save-plan">Save to file</button>
<button type="button" id="read-plan">Restore from file</button>
</td>
</tr>
</table>
<input type="file" id="file-dialog" style="display:none;">
<div id="final-buttons">
<button type="button" id="compute" class="with-help" data-help-id="compute">Compute</button>
</div>
<p></p>
<textarea id="output" cols="93" rows="10" readonly></textarea>
<div id="help-text" style="display:none;"></div>
<!-- To my knowledge, the <iframe> hack is still the only way to modularize html pages -->
<iframe id="help-texts" style="display:none" src="help-texts.html"></iframe>
</body>
</html>