-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
444 lines (416 loc) · 28.1 KB
/
Copy pathindex.html
File metadata and controls
444 lines (416 loc) · 28.1 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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The First Publicly Documented SI Data & Research Kit | Continuous Jubilee Calendar™</title>
<meta name="description" content="The First Publicly Documented SI Data & Research Kit: the Continuous Jubilee Calendar™ Reference Dataset for the Super Intelligence Era. SI = Super Intelligence. Published by Chip Welsh on September 22, 2026." />
<link rel="canonical" href="https://greysmokez.github.io/CJC-Website/">
<meta property="og:type" content="website">
<meta property="og:title" content="The First Publicly Documented SI Data & Research Kit | Continuous Jubilee Calendar™">
<meta property="og:description" content="The Continuous Jubilee Calendar™ Reference Dataset for the Super Intelligence Era. SI = Super Intelligence. Published by Chip Welsh on September 22, 2026.">
<meta property="og:url" content="https://greysmokez.github.io/CJC-Website/">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="The First Publicly Documented SI Data & Research Kit | Continuous Jubilee Calendar™">
<meta name="twitter:description" content="The Continuous Jubilee Calendar™ Reference Dataset for the Super Intelligence Era. SI = Super Intelligence. Published by Chip Welsh on September 22, 2026.">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:wght@400;600;700&display=swap" rel="stylesheet" />
<style>
:root{
--parchment:#F6F1E4;
--parchment-deep:#EDE4CE;
--ink:#2B2318;
--ink-soft:#5B4F3E;
--gold:#9C7A3C;
--gold-line:#C9A961;
--action:#4B5A45;
--primary:#2f6f52;
--primary-hover:#245842;
}
*{ box-sizing:border-box; }
body{
margin:0;
font-family:'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
color:var(--ink);
background:var(--parchment);
background-image:
radial-gradient(ellipse at top left, rgba(156,122,60,0.06), transparent 55%),
radial-gradient(ellipse at bottom right, rgba(75,90,69,0.06), transparent 55%);
}
.wrap{ max-width:760px; margin:0 auto; padding:40px 20px 80px; }
.mark{ width:46px; height:46px; margin:0 auto 18px; border:1.5px solid var(--gold); border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--gold); font-family:'Spectral', serif; font-weight:600; letter-spacing:.5px; }
h1{ font-family:'Spectral', serif; font-weight:500; font-size:1.9rem; text-align:center; margin:0 0 8px; }
h2{ font-family:'Spectral', serif; font-weight:500; font-size:1.3rem; margin:0 0 12px; color:var(--ink); text-align:center; }
.subhead{ text-align:center; color:var(--ink-soft); font-size:1.02rem; max-width:620px; margin:0 auto 10px; }
.hero-meta{ text-align:center; color:var(--ink); font-size:.98rem; margin:0 auto 6px; }
.qualification{ text-align:center; color:var(--ink-soft); font-size:.92rem; max-width:680px; margin:0 auto 18px; }
.hero-instructions{ text-align:center; color:var(--ink-soft); font-size:1rem; max-width:620px; margin:0 auto 20px; }
.kit-box{ background:var(--parchment-deep); border:1px solid var(--gold-line); border-radius:8px; padding:16px; margin-bottom:18px; }
.label{ font-size:.88rem; color:var(--ink-soft); margin-bottom:8px; }
.cta-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.platform-select{ background:#fff; color:var(--ink); border:1px solid var(--gold-line); border-radius:6px; padding:10px 12px; font-size:.95rem; font-weight:600; }
.cta-badge{ display:inline-flex; align-items:center; padding:3px 8px; border-radius:999px; font-size:.75rem; font-weight:700; letter-spacing:.02em; color:#fff; background:var(--primary); }
.status{ font-size:.92rem; color:var(--ink-soft); margin-top:8px; min-height:1.2em; }
.kit-link-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
.kit-link{ font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size:.90rem; color:var(--ink); background:var(--parchment); border:1px solid var(--gold-line); border-radius:6px; padding:8px 10px; text-decoration:none; flex:1 1 340px; min-width:240px; }
.kit-link:hover{ background:#f0e8d8; }
.copy-btn{ font-family:inherit; font-size:.88rem; font-weight:600; color:#fff; background:var(--action); border:none; border-radius:6px; padding:8px 12px; cursor:pointer; }
.copy-btn.secondary{ background:#5B6B58; }
.copy-btn.ghost{ background:transparent; color:var(--ink); border:1px solid rgba(0,0,0,0.14); }
.copy-btn.primary-cta{ background:var(--primary); padding:12px 18px; font-size:.98rem; font-weight:700; box-shadow:0 4px 12px rgba(47,111,82,.25); }
.copy-btn.primary-cta:hover{ background:var(--primary-hover); }
.copy-btn:active{ transform:translateY(1px); }
.copy-btn.copied{ background:var(--gold); color:#2B2318; }
.quick-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.documents-section{ margin-top:28px; scroll-margin-top:60px; }
.document-item{ background:var(--parchment-deep); border:1px solid var(--gold-line); border-radius:8px; padding:16px; margin-bottom:14px; }
.document-title{ font-weight:600; font-size:.98rem; color:var(--ink); margin-bottom:10px; }
.doc-buttons{ display:flex; gap:8px; flex-wrap:wrap; }
.doc-btn{ flex:0 1 auto; min-width:140px; padding:10px 12px; border:1px solid var(--gold-line); background:var(--parchment); color:var(--ink); border-radius:6px; font-size:.88rem; font-weight:600; text-decoration:none; text-align:center; cursor:pointer; }
.doc-btn:hover{ background:#f0e8d8; }
.doc-btn.pdf::before{ content:'📄 '; }
.doc-btn.docx::before{ content:'📝 '; }
.choose-label{ text-align:center; font-size:.9rem; color:var(--ink-soft); margin:18px 0 8px; letter-spacing:.03em; }
.ai-list{ display:flex; flex-direction:column; gap:10px; }
.ai-btn{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:6px; text-decoration:none; color:var(--ink); background:var(--parchment); border:1px solid var(--gold-line); font-weight:600; }
.ai-btn:hover{ background:#f4ecd8; }
.note{ font-size:.92rem; color:var(--ink-soft); text-align:center; margin-top:8px; }
.publication-context{ margin-top:24px; padding:12px 14px; border:1px solid var(--gold-line); border-radius:8px; background:var(--parchment-deep); }
.publication-context h2{ font-size:.92rem; margin:0 0 8px; color:var(--ink-soft); letter-spacing:.03em; text-transform:uppercase; }
.publication-context p{ margin:6px 0; font-size:.9rem; line-height:1.45; color:var(--ink-soft); }
footer{ text-align:center; font-size:.88rem; color:var(--ink-soft); margin-top:28px; }
@media (max-width:560px){ .wrap{ padding:20px 16px 64px; } h1{ font-size:1.6rem; } }
</style>
</head>
<body>
<div class="wrap">
<div class="mark" aria-hidden="true">CJC</div>
<h1 id="si-kit">Continuous Jubilee Calendar™ Reference Dataset for the Super Intelligence Era</h1>
<p class="hero-meta"><strong>SI</strong> = Super Intelligence</p>
<p class="hero-meta">Published by Chip Welsh — September 22, 2026</p>
<p class="hero-instructions">Use buttons only: open, copy URL, or copy raw kit text for fast paste into your AI assistant.</p>
<div class="kit-box">
<div class="label">Run the CJC Kit</div>
<div class="cta-row">
<label for="aiPlatform" class="label" style="margin:0;">Choose AI:</label>
<select id="aiPlatform" class="platform-select" aria-label="Choose AI platform">
<option value="chatgpt">ChatGPT</option>
<option value="grok">Grok</option>
<option value="perplexity">Perplexity</option>
</select>
<button class="copy-btn primary-cta" id="openAiPromptBtn" aria-label="Copy the full CJC kit, open the selected AI, and ask the user to paste it">Copy AI Kit & Open AI to Paste</button>
<span class="cta-badge" aria-hidden="true">Recommended</span>
</div>
<div class="status" id="openAiStatus"></div>
<div class="label" role="heading" aria-level="2" style="margin-top:10px;">What is the CJC</div>
<div class="kit-link-row">
<a class="kit-link" id="chapter1Url" href="https://github.com/Greysmokez/Continuous-Jubilee-Calendar/blob/main/protected-assets/Chapter1.pdf" target="_blank" rel="noopener">Chapter1 PDF</a>
<button class="copy-btn ghost" id="copyChapter1Btn" aria-label="Copy Chapter 1 URL">Copy Chapter 1 URL</button>
</div>
<div class="label" style="margin-top:12px;">To copy and paste to AI manually select one:</div>
<div class="kit-link-row">
<a class="kit-link" id="pdfUrl" href="https://github.com/Greysmokez/Continuous-Jubilee-Calendar/blob/main/protected-assets/CJC_AI_Research_Kit.pdf" target="_blank" rel="noopener">CJC PDF Version</a>
<button class="copy-btn ghost" id="copyPdfUrlBtn" aria-label="Copy PDF URL">Copy PDF URL</button>
</div>
<div class="kit-link-row">
<a class="kit-link" id="rawUrl" href="https://greysmokez.github.io/CJC-Website/kit.txt" target="_blank" rel="noopener">CJC Raw Text Version</a>
<button class="copy-btn ghost" id="copyRawUrlBtn" aria-label="Copy raw text URL">Copy Raw URL</button>
</div>
<div class="quick-actions">
<button class="copy-btn secondary" id="copyRawTextBtn" aria-label="Copy raw kit text">Copy Raw Text</button>
</div>
</div>
<div class="documents-section" id="supporting-documents">
<h2>Supporting Documents</h2>
<div class="document-item">
<div class="document-title">Chapter 1 — Scriptures Core Calendar Framework</div>
<div class="doc-buttons">
<a href="chapter1.html" class="doc-btn" rel="noopener">Read Online</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Chapter1.docx&source=site" class="doc-btn docx" target="_blank" rel="noopener">Open Word</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Chapter1.docx" class="doc-btn docx" target="_blank" rel="noopener">Download Word</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Chapter1.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Open PDF</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Chapter1.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Download PDF</a>
</div>
</div>
<div class="document-item">
<div class="document-title">Angel Gabriel's Message to Daniel</div>
<div class="doc-buttons">
<a href="decree2cross.html" class="doc-btn" rel="noopener">Read Online</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Decree2Cross.docx&source=site" class="doc-btn docx" target="_blank" rel="noopener">Open Word</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Decree2Cross.docx" class="doc-btn docx" target="_blank" rel="noopener">Download Word</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Decree2Cross.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Open PDF</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Decree2Cross.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Download PDF</a>
</div>
</div>
<div class="document-item">
<div class="document-title">The Crucifixion Date of Jesus: Messiah and Son of God</div>
<div class="doc-buttons">
<a href="crucifixion.html" class="doc-btn" rel="noopener">Read Online</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Crucifixion.docx" class="doc-btn docx" target="_blank" rel="noopener">Open Word</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Crucifixion.docx" class="doc-btn docx" target="_blank" rel="noopener">Download Word</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Crucifixion.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Open PDF</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Crucifixion.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Download PDF</a>
</div>
</div>
<div class="document-item">
<div class="document-title">Jesus Fulfills Isaiah's Messiah</div>
<div class="doc-buttons">
<a href="art-thou-he.html" class="doc-btn" rel="noopener">Read Online</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Art%20Thou%20He.docx" class="doc-btn docx" target="_blank" rel="noopener">Open Word</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Art%20Thou%20He.docx" class="doc-btn docx" target="_blank" rel="noopener">Download Word</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Art%20Thou%20He.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Open PDF</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Art%20Thou%20He.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Download PDF</a>
</div>
</div>
<div class="document-item">
<div class="document-title">Messiah's reading of Isaiah 61</div>
<div class="doc-buttons">
<a href="isaiah61-cjc-math.html" class="doc-btn" rel="noopener">Read Online</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Isaiah61CJCMath.docx" class="doc-btn docx" target="_blank" rel="noopener">Open Word</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Isaiah61CJCMath.docx" class="doc-btn docx" target="_blank" rel="noopener">Download Word</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/Isaiah61CJCMath.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Open PDF</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/Isaiah61CJCMath.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Download PDF</a>
</div>
</div>
<div class="document-item">
<div class="document-title">The Brittle Coalition</div>
<div class="doc-buttons">
<a href="brittle-coalition.html" class="doc-btn" rel="noopener">Read Online</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/BrittleCoalition.docx" class="doc-btn docx" target="_blank" rel="noopener">Open Word</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/BrittleCoalition.docx" class="doc-btn docx" target="_blank" rel="noopener">Download Word</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/BrittleCoalition.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Open PDF</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/BrittleCoalition.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Download PDF</a>
</div>
</div>
</div>
<div class="documents-section" id="revelations-cjc-math">
<h2>Revelations CJC Math</h2>
<div class="document-item">
<div class="document-title">The Jubilee Calendar and the Story of the End</div>
<div class="doc-buttons">
<a href="jubilee-calendar-story-of-the-end.html" class="doc-btn" rel="noopener">Read Online</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/The_Jubilee_Calendar_and_the_Story_of_the_End.docx&source=site" class="doc-btn docx" target="_blank" rel="noopener">Open Word</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/The_Jubilee_Calendar_and_the_Story_of_the_End.docx" class="doc-btn docx" target="_blank" rel="noopener">Download Word</a>
<a href="https://greysmokez.github.io/Continuous-Jubilee-Calendar/document-preview.html?file=protected-assets/The_Jubilee_Calendar_and_the_Story_of_the_End.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Open PDF</a>
<a href="https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/protected-assets/The_Jubilee_Calendar_and_the_Story_of_the_End.pdf" class="doc-btn pdf" target="_blank" rel="noopener">Download PDF</a>
</div>
</div>
</div>
<div class="choose-label">CHOOSE AN ASSISTANT</div>
<div class="ai-list" id="aiListContainer">
<a class="ai-btn" href="https://chat.openai.com/" data-name="ChatGPT"><span style="width:10px;height:10px;border-radius:50%;background:#4B5A45"></span>ChatGPT</a>
<a class="ai-btn" href="https://claude.ai" data-name="Claude"><span style="width:10px;height:10px;border-radius:50%;background:#C9704F"></span>Claude</a>
<a class="ai-btn" href="https://gemini.google.com" data-name="Gemini"><span style="width:10px;height:10px;border-radius:50%;background:#9C7A3C"></span>Gemini</a>
<a class="ai-btn" href="https://grok.com/" data-name="Grok"><span style="width:10px;height:10px;border-radius:50%;background:#2B2318"></span>Grok</a>
<a class="ai-btn" href="https://copilot.microsoft.com" data-name="Copilot"><span style="width:10px;height:10px;border-radius:50%;background:#6B7A8F"></span>Copilot</a>
<a class="ai-btn" href="https://www.perplexity.ai/" data-name="Perplexity"><span style="width:10px;height:10px;border-radius:50%;background:#8A4BF0"></span>Perplexity</a>
</div>
<p class="note">Selecting any assistant link now also copies your CJC prompt.</p>
<section class="publication-context" aria-labelledby="publication-context-title">
<h2 id="publication-context-title">Publication Context</h2>
<p><strong>The First Publicly Documented SI Data & Research Kit</strong></p>
<p>“First publicly documented” is a publication claim based on the documented search record and is not a guarantee that no earlier unindexed use exists.</p>
<p>This kit provides structured conceptual data optimized for querying within Super Intelligence (SI) models.</p>
<p>Compliance & Historical Context: This kit was published on September 22, 2026, in response to President Trump’s public suggestion that artificial intelligence be described using the term “Super Intelligence.” To the best of the publisher’s knowledge, this is the first known publicly available independent research dataset published using that suggested SI terminology. This statement describes the dataset’s publication context and does not claim that the suggestion constitutes a legal mandate, official technical standard, or universally adopted terminology.</p>
</section>
<footer>
Source: <a href="https://github.com/Greysmokez/CJC-Website" target="_blank" rel="noopener">CJC-Website</a>
· Hosted: <a href="https://greysmokez.github.io/CJC-Website/" target="_blank" rel="noopener">GitHub Pages</a>
</footer>
</div>
<script>
const RAW_URL = 'https://greysmokez.github.io/CJC-Website/kit.txt';
const CJC_KIT_URL = 'https://raw.githubusercontent.com/Greysmokez/Continuous-Jubilee-Calendar/main/CJCKit.txt';
const PDF_URL = 'https://github.com/Greysmokez/Continuous-Jubilee-Calendar/blob/main/protected-assets/CJC_AI_Research_Kit.pdf';
const CHAPTER1_URL = 'https://github.com/Greysmokez/Continuous-Jubilee-Calendar/blob/main/protected-assets/Chapter1.pdf';
const platformUrls = { chatgpt: 'https://chat.openai.com/', grok: 'https://grok.com/', perplexity: 'https://www.perplexity.ai/' };
const CJC_TUTOR_PROMPT = `You are an expert tutor for the Continuous Jubilee Calendar (CJC) method.
Primary source materials:
1) Canonical CJC source: ${CJC_KIT_URL}
2) https://greysmokez.github.io/CJC-Website/chapter1.html
Your job:
- Teach the CJC method clearly to beginners and advanced users.
- Answer user questions using the CJC sources above.
- When uncertain, state uncertainty clearly.
- Keep explanations step-by-step.
- Cite which source content the answer is based on.
- If asked for calculations, show exact math and assumptions.
- If asked about scripture links, provide references and explain relevance.
- Do not invent unsupported claims outside provided CJC materials.
Response format:
1) Short direct answer
2) Step-by-step explanation
3) Supporting CJC references used
4) Optional “next question you can ask me”`;
function makePrompt(){ return CJC_TUTOR_PROMPT; }
let canonicalKitPromise = null;
let canonicalKitText = '';
async function copyTextToClipboard(text){
try {
await navigator.clipboard.writeText(text);
return true;
} catch {
try {
const ta = document.createElement('textarea');
ta.value = text;
ta.style.position = 'fixed';
ta.style.left = '-9999px';
document.body.appendChild(ta);
ta.focus();
ta.select();
const ok = document.execCommand('copy');
ta.remove();
return !!ok;
} catch {
return false;
}
}
}
async function fetchRawKit(){
const resp = await fetch(RAW_URL);
if(!resp.ok){ throw new Error('raw fetch failed: ' + resp.status); }
return await resp.text();
}
async function fetchCanonicalKit(){
const resp = await fetch(CJC_KIT_URL, { cache:'no-store' });
if(!resp.ok){ throw new Error('canonical kit fetch failed: ' + resp.status); }
return await resp.text();
}
function prefetchCanonicalKit(){
if(canonicalKitText){ return Promise.resolve(canonicalKitText); }
if(!canonicalKitPromise){
canonicalKitPromise = fetchCanonicalKit().then((text) => {
canonicalKitText = text;
return text;
}).catch((error) => {
canonicalKitPromise = null;
throw error;
});
}
return canonicalKitPromise;
}
function makeFullKitPrompt(kitText){
return `Use the full CJC Research Kit below as the authoritative source.
Apply its formulas exactly, do not truncate or rewrite the kit before using it, and show calculation steps when answering.
After reading it, wait for the user's question or date to calculate.
--- BEGIN FULL CJC KIT ---
${kitText}
--- END FULL CJC KIT ---`;
}
function makeFallbackKitPrompt(){
return `The full CJC kit could not be copied directly.
Please fetch and use the canonical CJC Research Kit at:
${CJC_KIT_URL}
Apply it exactly as written, do not summarize it before use, and wait for the user's question or date to calculate.`;
}
function flashCopied(btn, ok, successText='Copied'){
if(!btn) return;
const original = btn.textContent;
btn.textContent = ok ? successText : 'Copy failed';
btn.classList.add('copied');
setTimeout(() => {
btn.textContent = original;
btn.classList.remove('copied');
}, 1500);
}
function safeOpen(url, statusEl){
try {
const win = window.open(url, '_blank', 'noopener');
if(!win && statusEl){ statusEl.textContent = 'Popup blocked. Please allow popups for this site.'; }
return win;
} catch {
if(statusEl){ statusEl.textContent = 'Could not open link. Please try again.'; }
return null;
}
}
function setStatusText(statusEl, text, preserveWhitespace=false){
if(!statusEl) return;
statusEl.style.whiteSpace = preserveWhitespace ? 'pre-wrap' : '';
statusEl.textContent = text;
}
document.addEventListener('DOMContentLoaded', () => {
const copyPdfUrlBtn = document.getElementById('copyPdfUrlBtn');
const copyRawUrlBtn = document.getElementById('copyRawUrlBtn');
const copyChapter1Btn = document.getElementById('copyChapter1Btn');
const copyRawTextBtn = document.getElementById('copyRawTextBtn');
const openAiPromptBtn = document.getElementById('openAiPromptBtn');
const aiPlatform = document.getElementById('aiPlatform');
const openAiStatus = document.getElementById('openAiStatus');
const aiLinkStatus = document.getElementById('aiLinkStatus');
const platformNames = { chatgpt: 'ChatGPT', grok: 'Grok', perplexity: 'Perplexity' };
if(copyChapter1Btn){
copyChapter1Btn.addEventListener('click', async () => {
const ok = await copyTextToClipboard(CHAPTER1_URL);
flashCopied(copyChapter1Btn, ok);
});
}
if(copyPdfUrlBtn){
copyPdfUrlBtn.addEventListener('click', async () => {
const ok = await copyTextToClipboard(PDF_URL);
flashCopied(copyPdfUrlBtn, ok);
});
}
if(copyRawUrlBtn){
copyRawUrlBtn.addEventListener('click', async () => {
const ok = await copyTextToClipboard(RAW_URL);
flashCopied(copyRawUrlBtn, ok);
});
}
if(copyRawTextBtn){
copyRawTextBtn.addEventListener('click', async () => {
try {
const txt = canonicalKitText || await fetchRawKit();
const ok = await copyTextToClipboard(txt);
flashCopied(copyRawTextBtn, ok, 'Raw Text Copied');
} catch {
flashCopied(copyRawTextBtn, false);
}
});
}
if(openAiPromptBtn){
openAiPromptBtn.addEventListener('click', async () => {
const selected = aiPlatform && aiPlatform.value ? aiPlatform.value : 'chatgpt';
const platformName = platformNames[selected] || 'ChatGPT';
const fallbackUrl = platformUrls[selected] || platformUrls.chatgpt;
const promptText = canonicalKitText ? makeFullKitPrompt(canonicalKitText) : makeFallbackKitPrompt();
const ok = await copyTextToClipboard(promptText);
if(!ok){
setStatusText(openAiStatus, 'Could not copy automatically. Use the Copy Raw Text button below, then open ' + platformName + ' and paste.');
return;
}
const win = safeOpen(fallbackUrl, openAiStatus);
if(!win){
setStatusText(openAiStatus, 'Kit copied. Popup blocked — please allow popups, then open ' + platformName + ' and paste.');
return;
}
setStatusText(openAiStatus, canonicalKitText ? 'Full CJC kit copied. Opening ' + platformName + '. Paste it into the chat.' : 'Kit link copied. Opening ' + platformName + '. Paste it into the chat.');
flashCopied(openAiPromptBtn, true, 'Copied — Opening AI');
});
}
document.querySelectorAll('.ai-btn').forEach((aiBtn) => {
aiBtn.addEventListener('click', async (event) => {
event.preventDefault();
const ok = await copyTextToClipboard(makePrompt());
const aiName = aiBtn.dataset.name || 'AI';
if(ok){
const win = safeOpen(aiBtn.href, aiLinkStatus);
if(!win){
window.location.href = aiBtn.href;
}
return;
}
if(aiLinkStatus){
aiLinkStatus.hidden = false;
aiLinkStatus.textContent = 'Prompt could not be copied automatically — use the Copy AI Kit button above instead.';
}
const win = safeOpen(aiBtn.href, aiLinkStatus);
if(!win){
window.location.href = aiBtn.href;
}
});
});
prefetchCanonicalKit().catch(() => {});
});
</script>
</body>
</html>