-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstarmatch.html
More file actions
348 lines (322 loc) · 14.5 KB
/
starmatch.html
File metadata and controls
348 lines (322 loc) · 14.5 KB
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Starmatch - Astrological Comparision Engine</title>
<link rel="stylesheet" href="style/engine-visualiser.css">
<link rel="stylesheet" href="style/location-picker.css">
<style>
/* Page-specific: Footer should not be fixed on Starmatch page */
body { padding-bottom: 2rem !important; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { position: static; background: transparent; backdrop-filter: none; }
</style>
</head>
<body>
<main>
<header>
<div class="header-title-row">
<h1>Starmatch</h1>
<button id="settings-btn" class="settings-btn" aria-label="Settings">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="3"></circle>
<path d="M12 1v6m0 6v6m0-12l-5.2 3m10.4 0L12 7m0 10l-5.2 3m10.4 0L12 17"></path>
<path d="M4.93 4.93l4.24 4.24m5.66 5.66l4.24 4.24m0-14.14l-4.24 4.24m-5.66 5.66l-4.24 4.24"></path>
</svg>
</button>
</div>
<!-- Mode Toggle -->
<div class="mode-toggle">
<button id="btn-chart-mode" class="mode-btn active">Chart Mode</button>
<button id="btn-starmatch-mode" class="mode-btn">Starmatch Mode</button>
</div>
</header>
<section class="input-controls">
<div class="control-group">
<h3>Birth Data Input</h3>
<div class="input-row">
<div class="input-field">
<label for="birth-date">Date</label>
<input type="date" id="birth-date" class="picker-input" value="1974-09-11">
<input type="text" id="birth-date-text" class="text-input" placeholder="DD MM YYYY" value="11 09 1974" style="display: none;">
<small id="date-range-hint" style="font-size: 0.7rem; color: #8fa8ce; margin-top: 0.25rem; display: none;"></small>
</div>
<div class="input-field">
<label for="birth-time">Time (Local)</label>
<input type="time" id="birth-time" class="picker-input" value="14:14">
<input type="text" id="birth-time-text" class="text-input" placeholder="HH MM" value="14 14" style="display: none;">
<small style="font-size: 0.7rem; color: #8fa8ce;">Timezone auto-detected from location</small>
</div>
</div>
<div class="input-row with-lookup">
<div class="input-field">
<label for="latitude">Lat</label>
<input type="number" id="latitude" class="picker-input" min="-90" max="90" step="0.01" value="55.9221" placeholder="55.9221">
<input type="text" id="latitude-text" class="text-input" placeholder="55.9221 N or -55.9221" value="55.9221 N" style="display: none;">
</div>
<div class="input-field">
<label for="longitude">Long</label>
<input type="number" id="longitude" class="picker-input" min="-180" max="180" step="0.01" value="-3.1336" placeholder="-3.1336">
<input type="text" id="longitude-text" class="text-input" placeholder="3.1336 W or -3.1336" value="3.1336 W" style="display: none;">
</div>
<div class="input-field">
<label> </label>
<button class="location-lookup-btn" id="location-lookup" title="Search for location">
🔍
</button>
</div>
</div>
<div id="selected-location-name" style="font-size: 0.85rem; color: #8fa8ce; margin-top: 0.5rem; min-height: 1.2em;"></div>
<div class="action-row">
<button id="btn-load-records" class="mini-btn" title="Load Saved Records">Load</button>
<button id="btn-save-record" class="mini-btn" title="Save Current Inputs">Save</button>
<button id="btn-calculate" class="primary-btn">Calculate Chart</button>
</div>
<div id="records-panel" class="records-panel hidden">
<div class="records-header">
<span>Saved Records</span>
<button id="btn-close-records" class="icon-btn" title="Close">✕</button>
</div>
<div id="records-list" class="records-list empty">
<div class="empty-msg">No saved records yet.</div>
</div>
<div class="records-footer">
<label class="apply-settings-toggle" title="If checked, loading a record will overwrite current engine settings">
<input type="checkbox" id="apply-saved-settings" checked>
<span>Apply saved settings</span>
</label>
<button id="btn-clear-all" class="danger-btn" title="Delete All Records">Clear All</button>
</div>
</div>
</div>
<div class="control-group">
<h3>Engine Settings</h3>
<div class="setting-row">
<label for="orb-type">Orb Type</label>
<select id="orb-type">
<option value="0" selected>Aspect Orbs (Modern)</option>
<option value="1">Planet Orbs (Ancient)</option>
</select>
</div>
<div class="setting-row">
<label for="aspect-orb-set">Aspect Orb Set</label>
<select id="aspect-orb-set">
<option value="0" selected>Default</option>
<option value="1">Tight</option>
<option value="2">Wide (Astrotheme)</option>
<option value="3">Medium</option>
<option value="4">Very Tight</option>
</select>
</div>
<div class="setting-row">
<label for="traditional-factors">Traditional Factors</label>
<select id="traditional-factors">
<option value="0" selected>Ancient Rulers</option>
<option value="4">Modern Rulers</option>
</select>
</div>
<div class="setting-row">
<label>
<input type="checkbox" id="precession-flag">
Apply Precession Correction
</label>
</div>
</div>
</section>
<section class="chart-visualisation">
<h3>Chart Wheel Visualisation</h3>
<div class="canvas-container">
<canvas id="chart-canvas" width="600" height="600"></canvas>
<div id="chart-tooltip" class="chart-tooltip"></div>
</div>
</section>
<section class="aspect-grid-section">
<h3>Aspect Grid</h3>
<div class="aspect-grid-container">
<div id="aspect-grid" class="aspect-grid">
<div class="loading-message">Calculate a chart to view aspect grid...</div>
</div>
</div>
</section>
<section class="results-container">
<div class="theme-chart collapsible-section">
<div class="section-header">
<h3>Theme Values (House/Sign Emphasis)</h3>
<button class="collapse-toggle" data-target="theme-bars" aria-label="Toggle theme values">
<span class="collapse-icon">▼</span>
</button>
</div>
<div id="theme-bars" class="theme-bars-container">
<div class="loading-message">Calculate a chart to view themes...</div>
</div>
</div>
<div class="planetary-positions collapsible-section">
<div class="section-header">
<h3>Planetary Positions</h3>
<button class="collapse-toggle" data-target="positions-display" aria-label="Toggle planetary positions">
<span class="collapse-icon">▼</span>
</button>
</div>
<div id="positions-display" class="positions-grid collapsed">
<div class="loading-message">Calculate a chart to view positions...</div>
</div>
</div>
</section>
<section class="analysis-details">
<div class="analysis-header">
<h3>Dominant Themes / Traditional Factors / Aspect Analysis</h3>
<button class="collapse-toggle" id="analysis-toggle" aria-label="Toggle analysis details">
<span class="collapse-icon">▼</span>
</button>
</div>
<div class="analysis-content" id="analysis-content">
<div class="detail-panel">
<h3>Aspect Analysis</h3>
<div id="aspect-counts" class="info-grid">
<div class="loading-message">Calculate a chart to view aspects...</div>
</div>
</div>
<div class="detail-panel">
<h3>Traditional Factors</h3>
<div id="trad-factors" class="info-grid">
<div class="loading-message">Calculate a chart to view factors...</div>
</div>
</div>
<div class="detail-panel">
<h3>Dominant Themes</h3>
<div id="dominant-info" class="info-grid">
<div class="loading-message">Calculate a chart to view dominants...</div>
</div>
</div>
</div>
</section>
<!-- Starmatch Comparison Section (Hidden by default) -->
<section id="starmatch-section" class="starmatch-section hidden">
<div class="starmatch-container">
<h3>Starmatch Comparison</h3>
<p class="starmatch-description">
Compare two charts to analyse compatibility and thematic interactions.
</p>
<div class="comparison-controls">
<div class="subject-target-row">
<div class="comparison-panel">
<h4>Subject</h4>
<select id="subject-select" class="record-select">
<option value="">-- Select Subject --</option>
</select>
<button id="btn-load-subject" class="mini-btn">Load Subject</button>
<div id="subject-info" class="person-info"></div>
</div>
<div class="vs-divider">VS</div>
<div class="comparison-panel">
<h4>Target</h4>
<select id="target-select" class="record-select">
<option value="">-- Select Target --</option>
</select>
<button id="btn-load-target" class="mini-btn">Load Target</button>
<div id="target-info" class="person-info"></div>
</div>
</div>
<button id="btn-compare" class="primary-btn" disabled>Compare Charts</button>
</div>
<div id="comparison-results" class="comparison-results hidden">
<h3>Comparison Results</h3>
<div id="comparison-output" class="comparison-output">
<!-- Results will be displayed here -->
</div>
</div>
</div>
</section>
</main>
<!-- Toast Container -->
<div id="toast-container" class="toast-container"></div>
<div id="save-modal" class="modal hidden">
<div class="modal-dialog">
<div class="modal-header">
<h4>Save Record</h4>
<button id="modal-close" class="icon-btn" title="Close">✕</button>
</div>
<div class="modal-body">
<label for="record-name-input">Name</label>
<input id="record-name-input" type="text" placeholder="e.g. Ada Lovelace" />
<div class="hint">Will store date, time, latitude, longitude, settings.</div>
</div>
<div class="modal-footer">
<button id="modal-save" class="primary-btn small">Save</button>
<button id="modal-cancel" class="mini-btn">Cancel</button>
</div>
</div>
</div>
<div id="danger-modal" class="modal hidden">
<div class="modal-dialog danger">
<div class="modal-header">
<h4 id="danger-modal-title">Delete ALL Records?</h4>
<button id="danger-modal-close" class="icon-btn" title="Close">✕</button>
</div>
<div class="modal-body" id="danger-modal-body">
<p class="danger-text" id="danger-modal-text">This will permanently remove every saved record.</p>
<ul class="danger-list" id="danger-modal-points">
<li>No undo</li>
<li>All names and settings lost</li>
<li>Export first if unsure</li>
</ul>
<div class="stage-indicator" id="danger-stage-indicator">Stage 1 / 2</div>
</div>
<div class="modal-footer">
<button id="danger-cancel" class="mini-btn">Cancel</button>
<button id="danger-confirm" class="danger-btn large">Yes, Continue</button>
</div>
</div>
</div>
<!-- Settings Modal -->
<div id="settings-modal" class="modal hidden">
<div class="modal-dialog">
<div class="modal-header">
<h4>Settings</h4>
<button class="icon-btn" id="settings-close" aria-label="Close settings">✕</button>
</div>
<div class="modal-body">
<div class="setting-item">
<label class="setting-label">
<input type="checkbox" id="use-text-inputs" class="setting-checkbox">
<span class="setting-text">Use text input mode (instead of specialised pickers)</span>
</label>
<p class="setting-description">When enabled, all date/time/location inputs will be plain text fields instead of specialised picker controls.</p>
</div>
</div>
</div>
</div>
<!-- Include dependencies -->
<script src="script/input-parsers.js"></script>
<script src="script/input-manager.js"></script>
<script src="script/test/test-harness.js"></script>
<script src="script/constants.js"></script>
<script src="script/test/constants.test.js"></script>
<script src="script/storage-manager.js"></script>
<script src="script/migrate-storage.js"></script>
<script src="script/test/storage-manager.test.js"></script>
<script src="script/astronomical-calculations.js"></script>
<script src="script/test/astronomical-calculations.test.js"></script>
<script src="script/chart-renderer.js"></script>
<script src="script/test/chart-renderer.test.js"></script>
<script src="script/ui-manager.js"></script>
<script src="script/test/ui-manager.test.js"></script>
<script src="script/zodiac-utils.js"></script>
<script src="script/test/zodiac-utils.test.js"></script>
<script src="script/aspect-grid.js"></script>
<script src="script/spectrum-displays.js"></script>
<script src="script/comparison-chart-renderer.js"></script>
<script src="script/comparison-ui.js"></script>
<script src="script/engine.js"></script>
<script src="script/location-picker.js"></script>
<script src="script/timezone-helper.js"></script>
<script src="script/starmatch-visualiser.js"></script>
<script src="script/comparison-engine.js"></script>
<script src="script/test/comparison-engine.test.js"></script>
<script src="script/self-test.js"></script>
<footer class="site-footer" role="contentinfo">
<a href="privacy.html" aria-label="Read the privacy policy">Privacy</a>
</footer>
</body>
</html>