-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
310 lines (286 loc) · 14 KB
/
Copy pathindex.html
File metadata and controls
310 lines (286 loc) · 14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NatalEngine - Birth Chart Calculator</title>
<meta name="description" content="Calculate Western Astrology, Human Design, and Gene Keys charts. Open source birth chart engine with clean data output.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/src/styles.css">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>%E2%97%89</text></svg>">
</head>
<body>
<nav class="main-nav">
<a href="./" class="nav-logo">natalengine</a>
<div class="nav-links">
<a href="./" class="nav-link active">Calculator</a>
<a href="./docs.html" class="nav-link">Docs</a>
<a href="./mcp.html" class="nav-link">MCP</a>
<a href="https://github.com/Unforced-Dev/natal-engine" class="nav-link" target="_blank">GitHub</a>
<button id="dark-mode-toggle" class="theme-toggle" title="Toggle theme">
<span class="theme-icon">◐</span>
</button>
</div>
</nav>
<div class="container">
<header>
<h1 class="logo">natalengine</h1>
<p class="subtitle">Birth chart calculator for Western & Vedic Astrology, Human Design, and Gene Keys</p>
<div class="tagline">
<span class="tagline-item">Astrology</span>
<span class="tagline-item">Vedic</span>
<span class="tagline-item">Human Design</span>
<span class="tagline-item">Gene Keys</span>
</div>
</header>
<section class="input-section">
<h2>Birth Information</h2>
<form id="birth-form">
<div class="form-row">
<div class="form-group">
<label for="birth-date">Date</label>
<input type="date" id="birth-date" required>
</div>
<div class="form-group">
<label for="birth-time">Time</label>
<input type="time" id="birth-time" value="12:00">
</div>
</div>
<div class="form-row">
<div class="form-group location-group">
<label for="birth-city">Location</label>
<div class="location-input-wrapper">
<input type="text" id="birth-city" placeholder="Search city..." autocomplete="off">
<div class="location-dropdown" id="location-dropdown"></div>
</div>
<div class="location-selected" id="location-selected"></div>
</div>
</div>
<div class="form-row coordinates-row" style="display: none;">
<div class="form-group">
<label for="latitude">Latitude</label>
<input type="number" id="latitude" step="0.0001" placeholder="40.7128">
</div>
<div class="form-group">
<label for="longitude">Longitude</label>
<input type="number" id="longitude" step="0.0001" placeholder="-74.0060">
</div>
<div class="form-group">
<label for="timezone">UTC Offset</label>
<input type="number" id="timezone" step="0.5" value="0" placeholder="-5">
</div>
</div>
<button type="button" class="toggle-coords" onclick="toggleCoordinates()">Enter coordinates manually</button>
<div class="form-actions">
<button type="submit" class="calculate-btn">Calculate</button>
<button type="button" class="save-profile-btn" id="save-profile-btn" style="display: none;">
<span class="save-icon">+</span> Save Profile
</button>
</div>
<!-- Inline Save Form -->
<div class="inline-save-form" id="inline-save-form" style="display: none;">
<input type="text" id="profile-name-input" placeholder="Profile name (e.g., Me, Partner)" maxlength="30">
<div class="inline-save-actions">
<button type="button" class="save-confirm-btn" id="save-confirm-btn">Save</button>
<button type="button" class="save-cancel-btn" id="save-cancel-btn">Cancel</button>
</div>
</div>
</form>
<!-- Profile Picker -->
<div class="profile-picker" id="profile-picker" style="display: none;">
<span class="profile-picker-label">Saved Profiles</span>
<select id="profile-select">
<option value="">-- Load a profile --</option>
</select>
<button type="button" class="delete-profile-btn" id="delete-profile-btn" style="display: none;" title="Delete profile">
<span>Delete</span>
</button>
</div>
</section>
<section class="results-section" id="results" style="display: none;">
<div class="tabs-container">
<div class="tabs-nav" role="tablist">
<button class="tab-btn active" data-tab="astrology" role="tab" aria-selected="true">
<span class="tab-icon">☉</span>
<span class="tab-label">Astrology</span>
</button>
<button class="tab-btn" data-tab="vedic" role="tab" aria-selected="false">
<span class="tab-icon">☾</span>
<span class="tab-label">Vedic</span>
</button>
<button class="tab-btn" data-tab="humandesign" role="tab" aria-selected="false">
<span class="tab-icon">◎</span>
<span class="tab-label">Human Design</span>
</button>
<button class="tab-btn" data-tab="genekeys" role="tab" aria-selected="false">
<span class="tab-icon">✦</span>
<span class="tab-label">Gene Keys</span>
</button>
</div>
<div class="tab-panels">
<div class="tab-panel active" id="panel-astrology" role="tabpanel">
<div class="result-card" id="astrology-card">
<div class="card-header">
<span class="card-title">Western Astrology</span>
<button class="export-btn" onclick="copyJSON('astrology')">Copy JSON</button>
</div>
<div class="result-content" id="astrology-result"></div>
</div>
</div>
<div class="tab-panel" id="panel-vedic" role="tabpanel">
<div class="result-card" id="vedic-card">
<div class="card-header">
<span class="card-title">Vedic Astrology (Jyotish)</span>
<button class="export-btn" onclick="copyJSON('vedic')">Copy JSON</button>
</div>
<div class="result-content" id="vedic-result"></div>
</div>
</div>
<div class="tab-panel" id="panel-humandesign" role="tabpanel">
<div class="result-card" id="humandesign-card">
<div class="card-header">
<span class="card-title">Human Design</span>
<button class="export-btn" onclick="copyJSON('humandesign')">Copy JSON</button>
</div>
<div class="result-content" id="humandesign-result"></div>
</div>
</div>
<div class="tab-panel" id="panel-genekeys" role="tabpanel">
<div class="result-card" id="genekeys-card">
<div class="card-header">
<span class="card-title">Gene Keys</span>
<button class="export-btn" onclick="copyJSON('genekeys')">Copy JSON</button>
</div>
<div class="result-content" id="genekeys-result"></div>
</div>
</div>
</div>
</div>
</section>
<!-- Compatibility Section - Separate from individual chart tabs -->
<section class="compatibility-section" id="compatibility-section">
<div class="compatibility-card">
<div class="compatibility-header">
<h2><span class="compat-icon">❤</span> Chart Compatibility</h2>
<p>Compare charts across Astrology, Human Design, and Gene Keys</p>
</div>
<div class="beta-notice">
<strong>Beta Feature</strong> - This compatibility analysis is new and still being refined.
<a href="https://github.com/Unforced-Dev/natal-engine/issues" target="_blank">Feedback welcome on GitHub</a>
</div>
<div class="compatibility-people">
<!-- Person A -->
<div class="compat-person" id="compat-person-a">
<div class="compat-person-header">
<span class="compat-person-label">Person A</span>
<div class="compat-person-toggle">
<button type="button" class="toggle-btn active" data-mode="profile" data-person="a">Saved Profile</button>
<button type="button" class="toggle-btn" data-mode="manual" data-person="a">Enter Info</button>
</div>
</div>
<!-- Profile selection mode -->
<div class="compat-person-content profile-mode" id="compat-a-profile">
<select id="compare-person-a" class="compat-select">
<option value="current">Current Chart (above)</option>
</select>
<div class="compat-preview" id="preview-a"></div>
</div>
<!-- Manual entry mode -->
<div class="compat-person-content manual-mode" id="compat-a-manual" style="display: none;">
<div class="compat-inline-form">
<div class="compat-form-row">
<input type="date" id="compat-a-date" placeholder="Birth date">
<input type="time" id="compat-a-time" value="12:00">
</div>
<div class="compat-form-row">
<input type="text" id="compat-a-location" placeholder="Search city..." class="compat-location-input" autocomplete="off">
<div class="compat-location-dropdown" id="compat-a-dropdown"></div>
</div>
<div class="compat-location-selected" id="compat-a-selected"></div>
</div>
<div class="compat-preview" id="preview-a-manual"></div>
</div>
</div>
<div class="vs-divider">
<span>vs</span>
</div>
<!-- Person B -->
<div class="compat-person" id="compat-person-b">
<div class="compat-person-header">
<span class="compat-person-label">Person B</span>
<div class="compat-person-toggle">
<button type="button" class="toggle-btn active" data-mode="profile" data-person="b">Saved Profile</button>
<button type="button" class="toggle-btn" data-mode="manual" data-person="b">Enter Info</button>
</div>
</div>
<!-- Profile selection mode -->
<div class="compat-person-content profile-mode" id="compat-b-profile">
<select id="compare-person-b" class="compat-select">
<option value="">Select a profile...</option>
</select>
<div class="compat-preview" id="preview-b"></div>
</div>
<!-- Manual entry mode -->
<div class="compat-person-content manual-mode" id="compat-b-manual" style="display: none;">
<div class="compat-inline-form">
<div class="compat-form-row">
<input type="date" id="compat-b-date" placeholder="Birth date">
<input type="time" id="compat-b-time" value="12:00">
</div>
<div class="compat-form-row">
<input type="text" id="compat-b-location" placeholder="Search city..." class="compat-location-input" autocomplete="off">
<div class="compat-location-dropdown" id="compat-b-dropdown"></div>
</div>
<div class="compat-location-selected" id="compat-b-selected"></div>
</div>
<div class="compat-preview" id="preview-b-manual"></div>
</div>
</div>
</div>
<div class="compare-systems">
<label class="system-toggle">
<input type="checkbox" id="compare-astrology" checked>
<span class="toggle-track"><span class="toggle-thumb"></span></span>
<span class="toggle-label">☉ Astrology</span>
</label>
<label class="system-toggle">
<input type="checkbox" id="compare-humandesign" checked>
<span class="toggle-track"><span class="toggle-thumb"></span></span>
<span class="toggle-label">◎ Human Design</span>
</label>
<label class="system-toggle">
<input type="checkbox" id="compare-genekeys" checked>
<span class="toggle-track"><span class="toggle-thumb"></span></span>
<span class="toggle-label">✦ Gene Keys</span>
</label>
</div>
<button class="compare-btn" id="compare-btn">
<span class="compare-btn-text">Compare Charts</span>
<span class="compare-btn-loading" style="display: none;">
<span class="spinner"></span> Analyzing...
</span>
</button>
<div class="no-profiles-hint" id="no-profiles-hint" style="display: none;">
<p>No saved profiles yet. Calculate a chart above and click "Save Profile", or use "Enter Info" to compare without saving.</p>
</div>
</div>
<!-- Compatibility Results -->
<div class="compatibility-results-wrapper" id="compatibility-results-wrapper" style="display: none;">
<div class="result-card">
<div class="card-header">
<span class="card-title" id="compat-results-title">Compatibility Results</span>
<button class="export-btn" onclick="copyJSON('compatibility')">Copy JSON</button>
</div>
<div id="compatibility-results"></div>
</div>
</div>
</section>
<footer>
<p><a href="https://github.com/Unforced-Dev/natal-engine" target="_blank">natalengine</a> is open source. MIT License.</p>
</footer>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>