@xuda.io/ai_module 1.1.5617 → 1.1.5619
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +1 -0
- package/.sitework/boaz-wiki/assets/boaz-avrahami.png +0 -0
- package/.sitework/boaz-wiki/assets/favicon-180.png +0 -0
- package/.sitework/boaz-wiki/assets/favicon-32.png +0 -0
- package/.sitework/boaz-wiki/assets/favicon.ico +0 -0
- package/.sitework/boaz-wiki/assets/site.js +47 -0
- package/.sitework/boaz-wiki/assets/styles.css +563 -0
- package/.sitework/boaz-wiki/index.html +847 -0
- package/.tmp_boaz_site/assets/boaz-avrahami.png +0 -0
- package/.tmp_boaz_site/assets/site.js +47 -0
- package/.tmp_boaz_site/assets/styles.css +278 -0
- package/.tmp_boaz_site/index.html +845 -0
- package/build_boaz_wiki.py +601 -0
- package/globals.mjs +6 -0
- package/gpt.mjs +155 -0
- package/index copy 2.js +2129 -0
- package/index copy.js +1455 -0
- package/index old.mjs +423 -0
- package/index.js +3751 -0
- package/index_ms.mjs +8 -8
- package/index_msa.mjs +12 -8
- package/package.json +1 -1
- package/test.mjs +2 -0
- package/un-used.mjs +1437 -0
|
Binary file
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
const body = document.body;
|
|
3
|
+
const langButtons = document.querySelectorAll('[data-set-lang]');
|
|
4
|
+
const sectionSearch = document.querySelector('#section-search');
|
|
5
|
+
const progress = document.querySelector('.read-progress span');
|
|
6
|
+
|
|
7
|
+
function setLanguage(lang) {
|
|
8
|
+
body.dataset.lang = lang;
|
|
9
|
+
document.documentElement.lang = lang;
|
|
10
|
+
document.documentElement.dir = lang === 'he' ? 'rtl' : 'ltr';
|
|
11
|
+
document.querySelectorAll('[data-en][data-he]').forEach((node) => {
|
|
12
|
+
const value = node.dataset[lang];
|
|
13
|
+
if (value) node.textContent = value;
|
|
14
|
+
});
|
|
15
|
+
langButtons.forEach((button) => {
|
|
16
|
+
button.setAttribute('aria-pressed', String(button.dataset.setLang === lang));
|
|
17
|
+
});
|
|
18
|
+
if (sectionSearch) {
|
|
19
|
+
sectionSearch.placeholder = lang === 'he' ? 'חפש נושא, חברה או שנה' : 'Search topic, company or year';
|
|
20
|
+
filterToc(sectionSearch.value);
|
|
21
|
+
}
|
|
22
|
+
localStorage.setItem('boazWikiLang', lang);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function filterToc(query) {
|
|
26
|
+
const active = body.dataset.lang;
|
|
27
|
+
const q = query.trim().toLowerCase();
|
|
28
|
+
document.querySelectorAll(`.toc nav[data-lang-panel="${active}"] a`).forEach((link) => {
|
|
29
|
+
link.hidden = q && !link.textContent.toLowerCase().includes(q);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
langButtons.forEach((button) => {
|
|
34
|
+
button.addEventListener('click', () => setLanguage(button.dataset.setLang));
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
if (sectionSearch) {
|
|
38
|
+
sectionSearch.addEventListener('input', (event) => filterToc(event.target.value));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
window.addEventListener('scroll', () => {
|
|
42
|
+
const max = document.documentElement.scrollHeight - window.innerHeight;
|
|
43
|
+
const pct = max > 0 ? (window.scrollY / max) * 100 : 0;
|
|
44
|
+
progress.style.width = `${pct}%`;
|
|
45
|
+
}, { passive: true });
|
|
46
|
+
|
|
47
|
+
setLanguage(localStorage.getItem('boazWikiLang') || 'en');
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
|
|
2
|
+
:root {
|
|
3
|
+
--ink: #202124;
|
|
4
|
+
--muted: #5f6368;
|
|
5
|
+
--line: #d6dbe3;
|
|
6
|
+
--paper: #f5f6f8;
|
|
7
|
+
--panel: #ffffff;
|
|
8
|
+
--blue: #3366cc;
|
|
9
|
+
--red: #b24a3d;
|
|
10
|
+
--green: #2f7d57;
|
|
11
|
+
--gold: #a7741f;
|
|
12
|
+
--shadow: 0 18px 46px rgba(32, 33, 36, .08);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
* { box-sizing: border-box; }
|
|
16
|
+
html { scroll-behavior: smooth; }
|
|
17
|
+
body {
|
|
18
|
+
margin: 0;
|
|
19
|
+
background:
|
|
20
|
+
radial-gradient(circle at top left, rgba(51, 102, 204, .08), transparent 30%),
|
|
21
|
+
radial-gradient(circle at top right, rgba(47, 125, 87, .08), transparent 26%),
|
|
22
|
+
var(--paper);
|
|
23
|
+
color: var(--ink);
|
|
24
|
+
font-family: "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif;
|
|
25
|
+
line-height: 1.7;
|
|
26
|
+
}
|
|
27
|
+
body[data-lang="en"] [data-lang-panel="he"],
|
|
28
|
+
body[data-lang="he"] [data-lang-panel="en"] { display: none !important; }
|
|
29
|
+
.read-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 50; }
|
|
30
|
+
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green), var(--gold)); }
|
|
31
|
+
.site-header {
|
|
32
|
+
position: sticky;
|
|
33
|
+
top: 0;
|
|
34
|
+
z-index: 20;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
gap: 20px;
|
|
39
|
+
padding: 12px clamp(16px, 3vw, 34px);
|
|
40
|
+
border-bottom: 1px solid var(--line);
|
|
41
|
+
background: rgba(245, 246, 248, .96);
|
|
42
|
+
backdrop-filter: blur(12px);
|
|
43
|
+
}
|
|
44
|
+
.brand, .top-nav a, .button { color: inherit; text-decoration: none; }
|
|
45
|
+
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
|
|
46
|
+
.brand-mark {
|
|
47
|
+
display: grid;
|
|
48
|
+
place-items: center;
|
|
49
|
+
width: 40px;
|
|
50
|
+
height: 40px;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
background: linear-gradient(135deg, var(--ink), #4c5563);
|
|
53
|
+
color: #fff;
|
|
54
|
+
font-size: 13px;
|
|
55
|
+
letter-spacing: .04em;
|
|
56
|
+
box-shadow: 0 8px 20px rgba(32, 33, 36, .18);
|
|
57
|
+
}
|
|
58
|
+
.top-nav { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
|
|
59
|
+
.top-nav a:hover { color: var(--blue); }
|
|
60
|
+
.lang-switch { display: inline-flex; border: 1px solid var(--line); background: var(--panel); }
|
|
61
|
+
.lang-switch button {
|
|
62
|
+
border: 0;
|
|
63
|
+
padding: 8px 12px;
|
|
64
|
+
background: transparent;
|
|
65
|
+
color: var(--muted);
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
font-weight: 700;
|
|
68
|
+
}
|
|
69
|
+
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
|
|
70
|
+
.hero {
|
|
71
|
+
display: grid;
|
|
72
|
+
grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
|
|
73
|
+
gap: clamp(24px, 5vw, 64px);
|
|
74
|
+
align-items: start;
|
|
75
|
+
max-width: 1220px;
|
|
76
|
+
margin: 0 auto;
|
|
77
|
+
padding: clamp(36px, 7vw, 92px) clamp(18px, 4vw, 40px) 30px;
|
|
78
|
+
}
|
|
79
|
+
.kicker {
|
|
80
|
+
margin: 0 0 10px;
|
|
81
|
+
color: var(--red);
|
|
82
|
+
font-size: 13px;
|
|
83
|
+
font-weight: 800;
|
|
84
|
+
text-transform: uppercase;
|
|
85
|
+
letter-spacing: .08em;
|
|
86
|
+
}
|
|
87
|
+
h1, h2, h3 { line-height: 1.18; margin: 0 0 14px; letter-spacing: 0; }
|
|
88
|
+
.hero h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.03em; }
|
|
89
|
+
.lede { max-width: 760px; margin: 0; font-size: clamp(19px, 2.4vw, 28px); color: #38414a; line-height: 1.45; }
|
|
90
|
+
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
|
|
91
|
+
.button {
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
min-height: 42px;
|
|
96
|
+
padding: 9px 16px;
|
|
97
|
+
border: 1px solid var(--ink);
|
|
98
|
+
background: transparent;
|
|
99
|
+
font-weight: 800;
|
|
100
|
+
}
|
|
101
|
+
.button.primary { background: var(--ink); color: #fff; }
|
|
102
|
+
.portrait-card {
|
|
103
|
+
border: 1px solid var(--line);
|
|
104
|
+
background: var(--panel);
|
|
105
|
+
box-shadow: var(--shadow);
|
|
106
|
+
border-radius: 22px;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
position: sticky;
|
|
109
|
+
top: 88px;
|
|
110
|
+
align-self: start;
|
|
111
|
+
}
|
|
112
|
+
.portrait-card__header {
|
|
113
|
+
padding: 18px 18px 14px;
|
|
114
|
+
background: linear-gradient(180deg, rgba(51, 102, 204, .06), rgba(51, 102, 204, 0));
|
|
115
|
+
border-bottom: 1px solid var(--line);
|
|
116
|
+
}
|
|
117
|
+
.portrait-card__eyebrow {
|
|
118
|
+
margin: 0 0 8px;
|
|
119
|
+
color: var(--blue);
|
|
120
|
+
font-size: 12px;
|
|
121
|
+
font-weight: 800;
|
|
122
|
+
text-transform: uppercase;
|
|
123
|
+
letter-spacing: .12em;
|
|
124
|
+
}
|
|
125
|
+
.portrait-card__header h2 {
|
|
126
|
+
margin: 0;
|
|
127
|
+
font-size: clamp(22px, 2.7vw, 30px);
|
|
128
|
+
line-height: 1.1;
|
|
129
|
+
}
|
|
130
|
+
.portrait-card__subhead {
|
|
131
|
+
margin: 7px 0 0;
|
|
132
|
+
color: var(--muted);
|
|
133
|
+
font-size: 13px;
|
|
134
|
+
line-height: 1.45;
|
|
135
|
+
}
|
|
136
|
+
.portrait-card img {
|
|
137
|
+
display: block;
|
|
138
|
+
width: 100%;
|
|
139
|
+
aspect-ratio: 4 / 5;
|
|
140
|
+
object-fit: cover;
|
|
141
|
+
object-position: 50% 18%;
|
|
142
|
+
background: #eef2f6;
|
|
143
|
+
}
|
|
144
|
+
.portrait-card dl { margin: 0; padding: 16px 18px 18px; }
|
|
145
|
+
.portrait-card div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
|
|
146
|
+
.portrait-card div:first-child { border-top: 0; }
|
|
147
|
+
.portrait-card dt { color: var(--muted); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
|
|
148
|
+
.portrait-card dd { margin: 0; color: var(--ink); }
|
|
149
|
+
.timeline-band, .ventures {
|
|
150
|
+
max-width: 1240px;
|
|
151
|
+
margin: 0 auto;
|
|
152
|
+
padding: 36px clamp(18px, 4vw, 40px);
|
|
153
|
+
}
|
|
154
|
+
.timeline-band h2, .ventures h2 { font-size: clamp(28px, 4vw, 42px); }
|
|
155
|
+
.timeline {
|
|
156
|
+
list-style: none;
|
|
157
|
+
padding: 0;
|
|
158
|
+
margin: 20px 0 0;
|
|
159
|
+
display: grid;
|
|
160
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
161
|
+
border: 1px solid var(--line);
|
|
162
|
+
background: var(--panel);
|
|
163
|
+
border-radius: 18px;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
}
|
|
166
|
+
.timeline li { min-height: 130px; padding: 18px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fbfcfe); }
|
|
167
|
+
.timeline strong { display: block; color: var(--blue); font-size: 18px; margin-bottom: 8px; }
|
|
168
|
+
.timeline span { color: #39414b; font-size: 14px; }
|
|
169
|
+
.venture-grid {
|
|
170
|
+
display: grid;
|
|
171
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
172
|
+
gap: 14px;
|
|
173
|
+
margin-top: 20px;
|
|
174
|
+
}
|
|
175
|
+
.venture-grid article {
|
|
176
|
+
border: 1px solid var(--line);
|
|
177
|
+
background: var(--panel);
|
|
178
|
+
padding: 18px;
|
|
179
|
+
min-height: 190px;
|
|
180
|
+
border-radius: 18px;
|
|
181
|
+
box-shadow: 0 10px 26px rgba(32, 33, 36, .05);
|
|
182
|
+
}
|
|
183
|
+
.venture-grid h3 { font-size: 18px; color: var(--green); }
|
|
184
|
+
.venture-grid p { margin: 0; color: #39414b; font-size: 14px; }
|
|
185
|
+
.wiki-layout {
|
|
186
|
+
display: grid;
|
|
187
|
+
grid-template-columns: minmax(220px, 300px) minmax(0, 880px);
|
|
188
|
+
gap: 30px;
|
|
189
|
+
align-items: start;
|
|
190
|
+
max-width: 1240px;
|
|
191
|
+
margin: 0 auto;
|
|
192
|
+
padding: 28px clamp(18px, 4vw, 40px) 70px;
|
|
193
|
+
}
|
|
194
|
+
.toc {
|
|
195
|
+
position: sticky;
|
|
196
|
+
top: 92px;
|
|
197
|
+
max-height: calc(100vh - 94px);
|
|
198
|
+
overflow: auto;
|
|
199
|
+
border: 1px solid var(--line);
|
|
200
|
+
background: var(--panel);
|
|
201
|
+
padding: 16px;
|
|
202
|
+
box-shadow: var(--shadow);
|
|
203
|
+
border-radius: 18px;
|
|
204
|
+
}
|
|
205
|
+
.toc label { display: block; color: var(--muted); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
|
|
206
|
+
.toc input {
|
|
207
|
+
width: 100%;
|
|
208
|
+
border: 1px solid var(--line);
|
|
209
|
+
padding: 10px 11px;
|
|
210
|
+
margin-bottom: 12px;
|
|
211
|
+
font: inherit;
|
|
212
|
+
border-radius: 10px;
|
|
213
|
+
}
|
|
214
|
+
.toc nav { display: grid; gap: 4px; }
|
|
215
|
+
.toc a {
|
|
216
|
+
color: #39414b;
|
|
217
|
+
text-decoration: none;
|
|
218
|
+
border-inline-start: 3px solid transparent;
|
|
219
|
+
padding: 6px 8px;
|
|
220
|
+
font-size: 14px;
|
|
221
|
+
line-height: 1.35;
|
|
222
|
+
}
|
|
223
|
+
.toc a:hover { border-color: var(--blue); background: #eef4f8; color: var(--blue); }
|
|
224
|
+
.toc a[hidden] { display: none; }
|
|
225
|
+
.wiki-article {
|
|
226
|
+
border: 1px solid var(--line);
|
|
227
|
+
background: var(--panel);
|
|
228
|
+
padding: clamp(20px, 4vw, 44px);
|
|
229
|
+
box-shadow: var(--shadow);
|
|
230
|
+
border-radius: 20px;
|
|
231
|
+
}
|
|
232
|
+
.wiki-section { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; scroll-margin-top: 86px; }
|
|
233
|
+
.wiki-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
|
|
234
|
+
.wiki-section h1 { font-size: clamp(34px, 5vw, 56px); }
|
|
235
|
+
.wiki-section h2 { font-size: clamp(24px, 3vw, 34px); color: var(--blue); }
|
|
236
|
+
.wiki-section p { margin: 0 0 15px; color: #313942; }
|
|
237
|
+
.wiki-section mark { background: #fff0a8; color: inherit; padding: 0 .1em; }
|
|
238
|
+
.site-footer {
|
|
239
|
+
border-top: 1px solid var(--line);
|
|
240
|
+
padding: 24px clamp(18px, 4vw, 40px);
|
|
241
|
+
color: var(--muted);
|
|
242
|
+
text-align: center;
|
|
243
|
+
background: #fff;
|
|
244
|
+
}
|
|
245
|
+
@media (max-width: 980px) {
|
|
246
|
+
.site-header { align-items: flex-start; flex-wrap: wrap; }
|
|
247
|
+
.top-nav { order: 3; width: 100%; }
|
|
248
|
+
.hero { grid-template-columns: 1fr; padding-top: 34px; }
|
|
249
|
+
.portrait-card {
|
|
250
|
+
position: static;
|
|
251
|
+
max-width: 520px;
|
|
252
|
+
width: 100%;
|
|
253
|
+
margin-top: 6px;
|
|
254
|
+
}
|
|
255
|
+
.timeline, .venture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
256
|
+
.wiki-layout { grid-template-columns: 1fr; }
|
|
257
|
+
.toc {
|
|
258
|
+
position: static;
|
|
259
|
+
max-height: none;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
@media (max-width: 560px) {
|
|
263
|
+
.brand-text { display: none; }
|
|
264
|
+
.hero h1 { font-size: 42px; }
|
|
265
|
+
.lede { font-size: 19px; }
|
|
266
|
+
.top-nav {
|
|
267
|
+
gap: 10px;
|
|
268
|
+
overflow-x: auto;
|
|
269
|
+
flex-wrap: nowrap;
|
|
270
|
+
padding-bottom: 2px;
|
|
271
|
+
scrollbar-width: none;
|
|
272
|
+
}
|
|
273
|
+
.top-nav::-webkit-scrollbar { display: none; }
|
|
274
|
+
.timeline, .venture-grid { grid-template-columns: 1fr; }
|
|
275
|
+
.portrait-card div { grid-template-columns: 1fr; gap: 2px; }
|
|
276
|
+
.wiki-article { padding: 18px; }
|
|
277
|
+
.portrait-card__header h2 { font-size: 24px; }
|
|
278
|
+
}
|