-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
247 lines (227 loc) · 11.3 KB
/
index.html
File metadata and controls
247 lines (227 loc) · 11.3 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Clawlendar Web | Celestial Perpetual Calendar</title>
<meta name="description"
content="Clawlendar Web is a multilingual international calendar and celestial wheel interface for AI-agent workflows." />
<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=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Sans+TC:wght@300;400;500;700&family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,600;1,600&family=JetBrains+Mono:wght@400;700&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="./styles.css?v=10" />
</head>
<body>
<canvas id="starfield" aria-hidden="true"></canvas>
<div id="daylightFx" aria-hidden="true">
<div class="daylight-layer base"></div>
<div class="daylight-layer twilight"></div>
<div class="daylight-layer sun"></div>
<div class="daylight-layer moon"></div>
</div>
<div id="weatherFx" aria-hidden="true">
<div class="weather-layer clouds"></div>
<div class="weather-layer rain"></div>
<div class="weather-layer snow"></div>
<div class="weather-layer fog"></div>
<div class="weather-layer lightning"></div>
</div>
<main class="shell">
<header class="panel topbar">
<div>
<p class="eyebrow">Clawlendar Web / Engine: <span id="engineStatusIndicator" class="engine-local">Local
Mode</span></p>
<h1 data-i18n="title">Celestial Calendar Studio</h1>
<p class="subtitle" data-i18n="subtitle">Timestamp-first perpetual calendar + almanac for professionals and AI
workflows.</p>
</div>
<div class="links">
<a class="github-star-btn" href="https://github.com/Hosuke/Clawlendar" target="_blank" rel="noreferrer">★ Star on GitHub</a>
<a href="https://github.com/Hosuke/Clawlendar" target="_blank" rel="noreferrer">GitHub</a>
<a href="https://pypi.org/project/clawlendar/" target="_blank" rel="noreferrer">PyPI</a>
</div>
</header>
<!-- Sub-header config tools. Hidden by default but expansible? Or just compact -->
<section class="panel controls">
<div class="control-item">
<label for="languageSelect" data-i18n="language">Language</label>
<select id="languageSelect"></select>
</div>
<div class="control-item">
<label for="calendarSelect" data-i18n="calendar">Calendar System</label>
<select id="calendarSelect"></select>
</div>
<div class="control-item">
<label for="timezoneSelect" data-i18n="timezone">Timezone</label>
<select id="timezoneSelect"></select>
</div>
<div class="control-item">
<label for="monthModeSelect" data-i18n="monthMode">Month Mode</label>
<select id="monthModeSelect"></select>
</div>
<div class="control-item wide">
<label for="apiBaseInput" data-i18n="apiBase">Clawlendar API Base (Optional / Vercel: leave empty for /api
)</label>
<input id="apiBaseInput" type="text" placeholder="/api" />
</div>
</section>
<section class="layout">
<!-- LEFT: Calendar Grid -->
<article class="panel calendar-panel">
<div class="calendar-header">
<button id="prevMonthBtn" class="ghost-btn" data-i18n-title="prevMonth"
aria-label="Previous month">←</button>
<div class="header-selectors">
<!-- Replaced Title with Selectors -->
<div class="ym-selectors">
<select id="viewYearSelect" class="title-select"></select>
<select id="viewMonthSelect" class="title-select"></select>
</div>
<p id="monthSubtitle"></p>
</div>
<button id="nextMonthBtn" class="ghost-btn" data-i18n-title="nextMonth"
aria-label="Next month">→</button>
</div>
<div class="calendar-actions">
<button id="todayBtn" class="solid-btn" data-i18n="today">Today</button>
<button id="resetApiBtn" class="ghost-btn" data-i18n="resetApi">Reset API</button>
</div>
<div id="weekdayRow" class="weekday-row"></div>
<div id="calendarGrid" class="calendar-grid"></div>
</article>
<!-- RIGHT: Dashboard (Day Profile, Almanac, Astro Wheel) -->
<article class="panel side-panel">
<div class="dashboard-top">
<div class="dashboard-date">
<span id="mainDatePrimary">01</span>
<div class="dashboard-date-sub">
<div id="mainWeekday">Monday</div>
<div class="dashboard-meta-line">
<span id="mainDateFull">2026-03-09</span>
<span id="moonPhaseBadge" class="moon-phase-badge" title="Moon phase">🌑</span>
</div>
</div>
</div>
<div class="time-controls-minimal">
<label for="hourSlider" data-i18n="hour" style="display:none;">Hour</label>
<div class="hour-display">
<span id="hourLabel" class="hour-label">12:00</span>
</div>
<input id="hourSlider" type="range" min="0" max="23" step="1" />
</div>
</div>
<h3 class="panel-title" data-i18n="dayProfile">Day Profile & Almanac</h3>
<div class="sidebar-filters">
<label><input id="sidebarLegacyToggle" type="checkbox" checked /> <span data-i18n="legacyDetails">Standard
Details</span></label>
<label><input id="sidebarEasternToggle" type="checkbox" checked /> <span
data-i18n="easternMetaphysics">Eastern Almanac (Huangli & Bazi)</span></label>
<label><input id="sidebarWesternToggle" type="checkbox" checked /> <span
data-i18n="westernMetaphysics">Western Astrological</span></label>
<label><input id="sidebarRawJsonToggle" type="checkbox" /> <span data-i18n="rawJson">Raw Developer
JSON</span></label>
</div>
<!-- The detailed Cards / Huangli View -->
<div id="dayProfileCards" class="meta-list huangli-blocks"></div>
<pre id="dayProfileOutput" class="json-output compact" style="display:none;"></pre>
<h3 class="panel-title" data-i18n="astroClock">Astro Map (Cosmic Map)</h3>
<!-- Make the spin static for beauty via CSS -->
<div id="zodiacWheel" class="zodiac-wheel static-wheel"></div>
<div class="astro-actions">
<button id="fetchAstroBtn" class="ghost-btn" style="display:none;">Update Sync</button>
<span id="astroStatus" class="status-text"></span>
</div>
<pre id="astroOutput" class="json-output" style="display:none;"></pre>
</article>
</section>
<section class="context-grid">
<article class="panel context-panel">
<h3 class="panel-title" data-i18n="lifeContext">Life Context</h3>
<section class="life-context-panel">
<div class="life-context-controls">
<div class="control-item">
<label for="birthInput" data-i18n="birthTime">Birth Time</label>
<input id="birthInput" type="datetime-local" />
</div>
<div class="control-item">
<label for="entityIdInput" data-i18n="entityId">Entity ID</label>
<input id="entityIdInput" type="text" placeholder="lobster-001" />
</div>
<div class="control-item">
<label for="roleInput" data-i18n="role">Role</label>
<input id="roleInput" type="text" placeholder="digital lifeform" />
</div>
<div class="control-item">
<label for="soulInput" data-i18n="soul">Soul Traits</label>
<input id="soulInput" type="text" placeholder="continuity-first and adaptive" />
</div>
<div class="control-item">
<label for="locationInput" data-i18n="location">Location</label>
<input id="locationInput" type="text" placeholder="Taipei City" />
</div>
<div class="control-item split">
<div>
<label for="latitudeInput" data-i18n="latitude">Latitude</label>
<input id="latitudeInput" type="text" placeholder="25.0330" />
</div>
<div>
<label for="longitudeInput" data-i18n="longitude">Longitude</label>
<input id="longitudeInput" type="text" placeholder="121.5654" />
</div>
</div>
<div class="control-item">
<label for="backgroundInput" data-i18n="background">Background</label>
<input id="backgroundInput" type="text" placeholder="city night walk" />
</div>
<div class="control-item">
<label for="climateInput" data-i18n="climate">Climate</label>
<input id="climateInput" type="text" placeholder="humid subtropical" />
</div>
<div class="control-item wide">
<label for="sceneryInput" data-i18n="scenery">Scenery Note</label>
<input id="sceneryInput" type="text" placeholder="street lights and river reflections" />
</div>
</div>
<div class="life-context-actions">
<label class="life-checkbox">
<input id="autoWeatherToggle" type="checkbox" checked />
<span data-i18n="autoWeather">Auto Weather</span>
</label>
<button id="refreshLifeBtn" class="ghost-btn" data-i18n="refreshLife">Update Context</button>
</div>
<div id="lifeContextCards" class="meta-list life-context-cards"></div>
<pre id="lifeContextOutput" class="json-output compact" style="display:none;"></pre>
</section>
</article>
<article class="panel context-panel">
<h3 class="panel-title" data-i18n="weatherNow">Weather Now</h3>
<section class="weather-panel">
<div class="weather-actions">
<button id="useLocationBtn" class="ghost-btn" data-i18n="useMyLocation">Use My Location</button>
<button id="fetchWeatherBtn" class="solid-btn" data-i18n="checkWeather">Check Weather</button>
</div>
<span id="weatherStatus" class="status-text"></span>
<div id="weatherNowCards" class="meta-list"></div>
<pre id="weatherNowOutput" class="json-output compact" style="display:none;"></pre>
<div class="scene-snapshot-panel">
<div class="scene-snapshot-header">
<b data-i18n="spacetimeSnapshot">Spacetime Snapshot</b>
</div>
<div class="scene-snapshot-controls">
<label for="sceneDateTimeInput" data-i18n="snapshotTime">Snapshot Time</label>
<input id="sceneDateTimeInput" type="datetime-local" />
<button id="fetchSceneBtn" class="ghost-btn" data-i18n="reconstructScene">Reconstruct Scene</button>
</div>
<span id="sceneStatus" class="status-text"></span>
<div id="sceneSnapshotCards" class="meta-list"></div>
<pre id="sceneSnapshotOutput" class="json-output compact" style="display:none;"></pre>
</div>
</section>
</article>
</section>
</main>
<script type="module" src="./app.js?v=10"></script>
</body>
</html>