-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
814 lines (757 loc) · 37.9 KB
/
index.html
File metadata and controls
814 lines (757 loc) · 37.9 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
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>PharmaForest Gallery</title>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> <style>
:root{
--stage-w: 500px; /* キャンバス幅(px) */
--stage-h: 600px; /* キャンバス初期高さ(px) - 後でJSで上書き可 */
--logo-size: 140px; /* ロゴの一辺(px) */
--left-width: 33vw; /* ← 追加:左の幅を明示(元々未定義) */
}
*{ box-sizing: border-box; }
body{
margin:0; background:#0f0f11; color:#eaeaea; font-family:system-ui, sans-serif; height:100vh; overflow:hidden;
}
.layout{
display:flex; height:100vh; gap:0;
}
/* 左:縦スクロール列 */
.left{
width:var(--left-width); border-right:1px solid #222; position:relative; background:#111;
}
.left .logo{ cursor: pointer; }
.carousel{
display:flex; flex-direction:column;
overflow-y:auto; height:100%; padding:40px 24px;
scroll-snap-type: none;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
touch-action: pan-y; /* ← スマホでネイティブ縦スクロール */
overscroll-behavior-y: contain; /* ← iOS/Androidで過剰な弾み防止 */
}
/* スクロール中は重いトランジションを殺して滑らかに */
.carousel.is-scrolling .logo{
transition: none !important;
box-shadow: none !important;
}
.logo{
flex:0 0 auto; width:100%; max-width:520px; height:var(--card);
margin: -10px auto 22px; /* ちょい重なり感 */
background:#232326; border-radius:20px; scroll-snap-align:center;
display:flex; align-items:center; gap:16px; padding:16px 18px;
transition: transform .25s, box-shadow .25s, background .25s;
box-shadow:0 0 0 rgba(0,0,0,0);
border:1px solid #2b2b2f;
}
.logo:hover{ transform:scale(0.80); }
.logo.active{
transform:scale(1.1);
box-shadow: 0 0 15px rgba(0, 170, 255, 0.8), /* 外側に青く発光 */
0 0 30px rgba(0, 170, 255, 0.5); /* さらに外に柔らかく */
border: 2px solid rgba(0, 170, 255, 0.9); /* 枠線も青く */
z-index:5;
}
.logo img{
width:160px; height:160px; object-fit:contain; flex:0 0 auto; filter:drop-shadow(0 2px 8px rgba(0,0,0,.3));
border-radius:16px; background:#232326;
}
.logo .meta{
min-width:0; display:flex; flex-direction:column; gap:8px;
}
.logo .title{
font-weight:700; font-size:18px; line-height:1.2; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.logo .hint{ font-size:12px; color:#9aa0a6; }
/* 右:詳細 */
.right{
flex:1; padding:32px 40px; overflow:auto; position:relative;
/* background: radial-gradient(800px 400px at 20% 10%, rgba(35,35,45,.28), transparent 60%) #0f0f11;*/
/* 背景画像を指定 */
background-image: url('./logo/picture_pharmaforest.png');
/* 背景の表示方法 */
background-size: cover; /* 全体に拡大縮小して表示 */
background-position: center; /* 中央寄せ */
background-repeat: no-repeat; /* 繰り返さない */
}
.panel{
max-width:1100px; margin:0 auto;
padding:28px 28px 32px; border:1px solid #2b2b2f; border-radius:20px; background: rgba(20, 20, 24, 0.7);
box-shadow:0 10px 30px rgba(0,0,0,.28);
}
.panel .hero{
display:flex; gap:20px; align-items:center; margin-bottom:16px;
}
.panel .hero img{
width:96px; height:96px; object-fit:contain; background:#1b1b20; border-radius:16px; padding:8px;
border:1px solid #2b2b2f;
}
.panel h1{ margin:0; font-size:24px; }
.panel .badges{ display:flex; gap:8px; margin:8px 0 4px; flex-wrap:wrap; }
.badge{
font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid #3b3b42; color:#cfd3dc; background:#1a1a1f;
}
.panel p{ color:#cfd3dc; line-height:1.7; }
.panel a{ color:#8ab4ff; text-decoration:none; }
.panel a:hover{ text-decoration:underline; }
.panel .cta{
margin-top:16px; display:flex; gap:10px; flex-wrap:wrap;
}
.btn{
padding:10px 14px; border-radius:12px; border:1px solid #3b3b42; background:#1d1d22; color:#eaeaea; text-decoration:none;
display:inline-flex; align-items:center; gap:8px;
}
.btn:hover{ background:#23232a; }
/* レスポンシブ(幅が狭い時は縦積み) */
/* タブレット以下は縦積みレイアウトにする */
@media (max-width: 980px){
.layout{
flex-direction: column; /* ← これが肝! */
height: 100dvh; /* モバイルのURLバー対策 */
min-height: 100vh; /* 古端末フォールバック */
}
.left{
width: 100%;
height: 35vh; /* 上のリストを薄めに */
border-right: none;
border-bottom: 1px solid #222;
min-height: 0; /* 内部スクロール有効化の定番 */
}
.right{
flex: 1 1 auto; /* 残りを全部使う */
min-height: 0; /* 内部スクロール可に */
overflow: auto; /* 右パネルだけスクロール */
padding: 20px 16px;
padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); /* 下バーに隠れない */
}
/* 右パネルの末尾に見えない余白(終端が隠れないように) */
.panel::after{
content: "";
display: block;
height: calc(24px + env(safe-area-inset-bottom, 0px));
}
/* ちょっと縮小系 */
:root{ --card: 160px; }
.panel{ max-width: 760px; padding: 20px; border-radius: 14px; }
.panel .hero img{ width: 72px; height: 72px; }
.badge{ font-size: 11px; padding: 3px 7px; }
.logo{ height: var(--card); padding: 12px 14px; gap: 12px; }
.logo img{ width: 120px; height: 120px; }
}
/* スマホはさらにコンパクト&説明グリッド1列化 */
@media (max-width: 600px){
#panelDesc .info-grid{
grid-template-columns: 1fr;
gap: 6px 0;
}
#panelDesc img{ max-width: 90% !important; }
.panel h1{ font-size: 20px; }
.btn{ padding: 10px 12px; font-size: 14px; }
}
@media (hover: hover) and (pointer: fine){
.logo:hover{ transform: scale(1.06); } /* ←ホバー時の拡大 */
}
#panelDesc .info { display:flex; flex-direction:column; gap:12px; }
#panelDesc .summary { margin:0; color:#cfd3dc; line-height:1.7; }
#panelDesc .info-grid{
display:grid;
grid-template-columns: 160px 1fr; /* ← ラベル列幅はここで調整 */
gap: 8px 16px; /* 行間 / 列間 */
align-items:start;
}
#panelDesc .label{
color:#9aa0a6;
font-size:12px;
font-weight:600;
letter-spacing:.2px;
}
#panelDesc .value{
color:#eaeaea;
line-height:1.7;
min-width:0; /* 長文の折返し安定化 */
word-break: break-word;
}
/* 追加:チェックOFF時に薄くする */
.free.dim img{
filter: grayscale(1) brightness(.7) opacity(.35);
transition: filter .2s ease, opacity .2s ease;
}
/* 追加:フィルターUI */
.filters{
display:flex; gap:12px; flex-wrap:wrap;
margin: 4px 0 0;
}
.filters label{
display:inline-flex; gap:8px; align-items:center;
font-size:14px; background:#1a1a1f; border:1px solid #3b3b42;
padding:8px 12px; border-radius:999px; cursor:pointer;
}
.filters input{ accent-color:#39a0ff; }
/* ── Honeycomb grid ───────────────────────────── */
.free-outer{
width:100%;
overflow:auto; /* ステージが大きくなったらスクロール */
margin-bottom: clamp(16px, 2vw, 32px);
margin-top: 0; /* もし余白があればゼロに */
}
.free-wrap{
position: relative;
margin: 12px auto 0;
width: calc(var(--stage-w) * 1px);
height: calc(var(--stage-h) * 1px);
background: transparent;
}
.free{
position: absolute;
width: var(--logo-size);
height: var(--logo-size);
/* ← ここがpx固定(%は使わない) */
top: calc(var(--y, 0) * 1px);
left: calc(var(--x, 0) * 1px);
transform: translate(-50%, -50%) scale(var(--scale, 1));
}
/* 画像は四角でOK。透明背景があるので視覚的な干渉なし */
.free img{
width: var(--logo-img-pct);
height: var(--logo-img-pct);
object-fit: contain;
-webkit-user-drag: none; user-select: none;
}
/* 重なった時の操作性確保:ホバーしたものを最前面に */
.free:hover{ transform: translate(-50%, -50%) scale(0.80); z-index: 10; }
/* スマホ時は少し詰めるなどの調整も可 */
@media (max-width: 600px){
.free-wrap{ aspect-ratio: 4/5; }
}
</style>
</head>
<body>
<div class="layout">
<!-- 左:ロゴリスト(縦スクロール) -->
<aside class="left">
<div class="carousel" id="carousel">
<!-- data-key は下の items[] と対応させる -->
<div class="logo" data-key="pharmaforest">
<img src="./logo/pharmaforest.png" alt="PharmaForest">
<div class="meta">
<div class="title">PharmaForest</div>
<div class="hint">Package Repository</div>
</div>
</div>
<div class="logo" data-key="oncoplotter">
<img src="./logo/oncoplotter.png" alt="OncoPlotter">
<div class="meta"><div class="title">OncoPlotter</div><div class="hint">Plot Tools for Oncology Area</div></div>
</div>
<div class="logo" data-key="sashash">
<img src="./logo/sashash.png" alt="sashash">
<div class="meta"><div class="title">sashash</div><div class="hint">Hash Tools</div></div>
</div>
<div class="logo" data-key="sas_dataset_json">
<img src="./logo/sas_dataset_json.png" alt="sas_dataset_json">
<div class="meta"><div class="title">SAS Dataset JSON</div><div class="hint">Dataset JSON Converter</div></div>
</div>
<div class="logo" data-key="saspacer">
<img src="./logo/saspacer.png" alt="saspacer">
<div class="meta"><div class="title">SASPACer</div><div class="hint">SAS Package Generator</div></div>
</div>
<div class="logo" data-key="misc">
<img src="./logo/misc.png" alt="misc">
<div class="meta"><div class="title">Misc</div><div class="hint">Miscellaneous Utilities</div></div>
</div>
<div class="logo" data-key="sas_faker">
<img src="./logo/sas_faker.png" alt="sas_faker">
<div class="meta"><div class="title">SAS_FAKER</div><div class="hint">Dummy Data Generator</div></div>
</div>
<div class="logo" data-key="saslogchecker">
<img src="./logo/saslogchecker.png" alt="saslogchecker">
<div class="meta"><div class="title">SASLogChecker</div><div class="hint">Log Checking Utility</div></div>
</div>
<div class="logo" data-key="sas_compare">
<img src="./logo/sas_compare.png" alt="sas_compare">
<div class="meta"><div class="title">SAS_Compare</div><div class="hint">Compare Support Tools</div></div>
</div>
<div class="logo" data-key="rtfcreator">
<img src="./logo/rtfcreator.png" alt="rtfcreator">
<div class="meta"><div class="title">RTF Creator</div><div class="hint">RTF Creator</div></div>
</div>
<div class="logo" data-key="shutter_chance">
<img src="./logo/shutter_chance.png" alt="shutter_chance">
<div class="meta"><div class="title">Shutter Chance</div><div class="hint">Snapshot Tools</div></div>
</div>
<div class="logo" data-key="devil">
<img src="./logo/devil.png" alt="devil">
<div class="meta"><div class="title">Devil</div><div class="hint">Playful Ideas for a Break</div></div>
</div>
<div class="logo" data-key="xattr_kit">
<img src="./logo/xattr_kit.png" alt="xattr_kit">
<div class="meta"><div class="title">xattr Kit</div><div class="hint">Extended Attributes Toolkit</div></div>
</div>
<div class="logo" data-key="cloak">
<img src="./logo/cloak.png" alt="cloak">
<div class="meta"><div class="title">Cloak</div><div class="hint">Check-in/Check-out Storekeeper</div></div>
</div>
<div class="logo" data-key="vis_review_kit">
<img src="./logo/vis_review_kit.png" alt="vis_review_kit">
<div class="meta"><div class="title">Vis Review Kit</div><div class="hint">Visual Review Toolkit</div></div>
</div>
<div class="logo" data-key="odstable_layoutshowcase">
<img src="./logo/odstable_layoutshowcase.png" alt="odstable_layoutshowcase">
<div class="meta"><div class="title">ODSTable Layout Showcase</div><div class="hint">Showcase for ODSTable Layouts</div></div>
</div>
<div class="logo" data-key="maxims4sas">
<img src="./logo/maxims4sas.png" alt="maxims4sas">
<div class="meta"><div class="title">maxims4sas</div><div class="hint">Best Practices for SAS</div></div>
</div>
<div class="logo" data-key="laglead">
<img src="./logo/laglead.png" alt="laglead">
<div class="meta"><div class="title">laglead</div><div class="hint">Dynamic lead/lag value access</div></div>
</div>
<div class="logo" data-key="forest_navigator">
<img src="./logo/forest_navigator.png" alt="forest_navigator">
<div class="meta"><div class="title">Dr. Forest, Morio</div><div class="hint">Navigater of PharmaForest</div></div>
</div>
</div>
</aside>
<!-- 右:説明パネル -->
<main class="right" id="rightPanel">
</main>
</div>
<script>
// 右パネルに出す内容
const items = {
pharmaforest: {
title: "PharmaForest",
img: "./logo/pharmaforest.png",
desc:
`
A collaborative repository of SAS packages for the pharmaceutical space, powered by PHUSE Japan OST (Open Source Technology) WG members—Hiroki Yamanobe, Yutaka Morioka, and Ryo Nakaya—showcasing the list of available packages.
<br><br> PharmaForest is built on top of SAS Packages framework(SPF), which was developed by Bartosz Jablonski. There are more packages in his repository SAS Packages Archive(SASPAC).<br><br>
`,
badges: ["SAS Packages","Repository","Open-Source","MIT"],
links: [{text:"PharmaForest", href:"https://github.com/PharmaForest"}, {text:"SPF", href:"https://github.com/yabwon/SAS_PACKAGES"},{text:"SASPAC", href:"https://github.com/SASPAC"}]
},
oncoplotter: {
title: "OncoPlotter",
img: "./logo/oncoplotter.png",
summary: "A SAS package to create figures commonly created in oncology studies.",
license: "MIT",
authors: ["PharmaForest"],
maintainers: ["PharmaForest"],
features: ["Kaplan-Meier Plot", "Swimmer Plot", "Waterfall Plot"],
macros: ["%kaplan_meier_plot()","<br>%swimmer_plot()","<br>%waterfall_plot()"],
badges: ["PharmaForest Original","Oncology","Output/Visualization","MIT"],
links: [{text:"OncoPlotter", href:"https://github.com/PharmaForest/OncoPlotter"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
sashash: {
title: "SAS Hash",
img: "./logo/sashash.png",
summary: "Sashash package provides powerful and efficient hash-based lookup and validation tools specifically designed for SAS programming. Leveraging the robust capabilities of SAS hash objects, this package enables rapid and dynamic key-based data retrieval and existence checking directly within a single data step. This significantly reduces the need for separate sort and merge steps, streamlining workflows and enhancing performance.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["hash object"],
macros: ["%kvlookup()","<br>%keycheck()","<br>%kduppchk()"],
badges: ["hash","Data Utility","MIT"],
links: [{text:"sashash", href:"https://github.com/PharmaForest/sashash"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
sas_dataset_json: {
title: "SAS Dataset JSON",
img: "./logo/sas_dataset_json.png",
summary: "Sas_dataset_json is a SAS macro package designed to support bi-directional conversion between CDISC-compliant Dataset-JSON format and SAS datasets.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["Dataset JSON"],
macros: ["%m_sas_to_json1_1()","<br>%m_json1_1_to_sas()","<br>%m_sas_to_ndjson1_1()","<br>%m_ndjson1_1_to_sas()"],
badges: ["Dataset JSON","Data Utility","MIT"],
links: [{text:"sas_dataset_json", href:"https://github.com/PharmaForest/sas_dataset_json"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
saspacer: {
title: "SASPACer",
img: "./logo/saspacer.png",
summary: "A SAS package to help creating SAS packages. サスパッカー in the logo stands for SASPACer in Japanese. The package is to help creating SAS packages. Shaping onigiri(rice ball) by hands can be a bit challenging for beginners, but using onigiri mold makes it easy to form and provides a great introduction. Hope the mold(SASPACer) will help you to create your SAS package.",
license: "MIT",
authors: ["Ryo Nakaya"],
maintainers: ["Ryo Nakaya"],
features: ["SAS Packages"],
macros: ["%ex2pac()","<br>%pac2ex()"],
badges: ["SAS Packages","Other","MIT"],
links: [{text:"saspacker", href:"https://github.com/PharmaForest/SASPACer"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
misc: {
title: "misc",
img: "./logo/misc.png",
summary: "A SAS package to place miscellaneous macros, functions, etc..",
license: "MIT",
authors: ["PharmaForest"],
maintainers: ["PharmaForest"],
features: ["Miscellaneous Functions"],
macros: ["%xpt2sas()","<br>%minimize_charlen()","<br>%roundsig()","<br>%rounddec()","<br>%color_swatch()"],
badges: ["PharmaForest Original","Miscellaneous","Other","MIT"],
links: [{text:"misc", href:"https://github.com/PharmaForest/misc"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
sas_faker: {
title: "SAS_FAKER",
img: "./logo/sas_faker.png",
summary: "SAS package to create dummy data in CDISC format for clinical trials Purpose: A macro to generate dummy clinical trial data. Creates datasets in SDTM (DM, AE, SV, VS) and ADaM (ADSL, ADAE,ADVS, ADTTE) formats. Generates pseudo subject data, vital signs, study visits, and adverse events based on user-specified group numbers and sample sizes.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["Dummy Data"],
macros: ["%sas_faker()"],
badges: ["Dummy Data","Data Utility","MIT"],
links: [{text:"sas_faker", href:"https://github.com/PharmaForest/sas_faker"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
saslogchecker: {
title: "SAS log checker",
img: "./logo/saslogchecker.png",
summary: "SAS log checker for extracting ERRORs, WARNINGs, and notable NOTEs — supports interactive and directory-wide runs.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["Log Checking"],
macros: ["%interact_logchk()", "<br>%logchk2directory()"],
badges: ["Log","Checker","MIT"],
links: [{text:"saslogchecker", href:"https://github.com/PharmaForest/saslogchecker"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
sas_compare: {
title: "SAS Compare",
img: "./logo/sas_compare.png",
summary: "Package to compare SDTM/ADaM, TLF datasets, etc. Assume a double program in the pharmaceutical industry to compare main and sub.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["Compare and results checking"],
macros: ["%ads_compare()"],
badges: ["Compare","Checker","MIT"],
links: [{text:"sas_compare", href:"https://github.com/PharmaForest/sas_compare"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
rtfcreator: {
title: "RTF Creator",
img: "./logo/rtfcreator.png",
summary: "A Package that allows you to easily create RTF files from your dataset.",
license: "MIT",
authors: ["Hiroki Yamanobe"],
maintainers: ["Hiroki Yamanobe"],
features: ["rtf tables creation"],
macros: ["%rtfcreator()"],
badges: ["rtf","ODSTable","Output/Visualization","MIT"],
links: [{text:"rtfcreator", href:"https://github.com/PharmaForest/rtfcreator"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
shutter_chance: {
title: "Shutter_chance",
img: "./logo/shutter_chance.png",
summary: "SHUTTER_CHANCE: Visual Checkpoints for SAS Data Step Review. MACRO_VARIABLE_SHUTTER_CHANCE: Visually check the global and local status and values of SAS macro variables at any point.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["Snapshot in Data step/Macro"],
macros: ["%shutter_chance()", "<br>%macro_variable_shutter_chance()"],
badges: ["checkpoint","scope","Checker","MIT"],
links: [{text:"shutter_chance", href:"https://github.com/PharmaForest/shutter_chance"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
devil: {
title: "Developer's Ideas Library(DEVIL)",
img: "./logo/devil.png",
summary: "Welcome to Developer's Ideas Library. Share your devils (any ideas at any stage) for trial, inspiring, showing-off, recruiting members for further development by showing POC, or even joking(for fun). You can see in description.sas of devil package that author is Any Developers. Devil package is completely different from the other packages in PharmaForest with its highly collaborative nature to welcome any ideas from anyone regardless of usefulness(we would rather prefer playful ones😁). Let's take a break, knock the door of devil!",
license: "MIT",
authors: ["Any Developers"],
maintainers: ["PharmaForest"],
features: ["Collaborative and open library"],
macros: ["%chatDMS() (Ryo Nakaya)", "<br>text2morse() (Yutaka Morioka)", "<br>%life_game() (Yutaka Morioka)","<br>%sudoku_solver() (Miyuki Aso)","<br>%hanabi() (Akira Matsuzawa, Yutaka Morioka, Ryo Nakaya)"],
badges: ["PharmaForest Original","devil","collaborative","400 years","Other","MIT"],
links: [{text:"devil", href:"https://github.com/PharmaForest/devil"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
xattr_kit: {
title: "xattr_kit",
img: "./logo/xattr_kit.png",
summary: "xattr_kit is a package to simplify the management of SAS extended attributes",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["Extended attributes management"],
macros: ["%xattr_set_var()", "<br>%xattr_set_ds()", "<br>%list_xattr()", "<br>%xattr_in()", "<br>%xattr2macrovar()"],
badges: ["extended attributes","Data Utility","MIT"],
links: [{text:"xattr_kit", href:"https://github.com/PharmaForest/xattr_kit"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
cloak: {
title: "Cloak",
img: "./logo/cloak.png",
summary: "A simple FCMP-based check-in/check-out storage system using dictionary objects in SAS. Store and retrieve data by key, like a digital cloakroom.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["FCMP functions"],
macros: ["cloak_num()", "<br>cloak_char()"],
badges: ["check-in/check-out","Data Utility","MIT"],
links: [{text:"cloak", href:"https://github.com/PharmaForest/cloak"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
vis_review_kit: {
title: "VIS_Review_Kit",
img: "./logo/vis_review_kit.png",
summary: "Visual tools for reviewing and monitoring clinical trial data. A SAS macro package to support QC and exploration through graphical representations.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["Visual Review"],
macros: ["%event_gant_excel()", "<br>%upset_plot()"],
badges: ["Visual review","Output/Visualization","MIT"],
links: [{text:"vis_review_kit", href:"https://github.com/PharmaForest/vis_review_kit"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
odstable_layoutshowcase: {
title: "odstable_layoutshowcase",
img: "./logo/odstable_layoutshowcase.png",
summary: "A SAS macro toolkit to showcase layout patterns using PROC ODSTABLE. Provides reusable examples of table design with multi-level headers, conditional formatting, composite layouts, and auto-generated RTF output. Ideal for clinical reporting, style template development, and training use.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["Showcase of odstable layout"],
macros: ["%odstable_layoutshowcase()"],
badges: ["ODSTable","Output/Visualization","MIT"],
links: [{text:"odstable_layoutshowcase", href:"https://github.com/PharmaForest/odstable_layoutshowcase"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
maxims4sas: {
title: "maxims4sas",
img: "./logo/maxims4sas.png",
summary: "This package displays maxims that have deeply impressed me and that I wish to pass on to future generations.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["Output maxims for SAS programmers"],
macros: ["%sas_maxims()"],
badges: ["maxims","Other","MIT"],
links: [{text:"maxims4sas", href:"https://github.com/PharmaForest/maxims4sas"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
laglead: {
title: "laglead",
img: "./logo/laglead.png",
summary: "SAS utilities for dynamic lead/lag value access.",
license: "MIT",
authors: ["Yutaka Morioka"],
maintainers: ["Yutaka Morioka"],
features: ["lead", "lag"],
macros: ["%laglead()"],
badges: ["lag","lead","Data Utility","MIT"],
links: [{text:"laglead", href:"https://github.com/PharmaForest/laglead"},{text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
forest_navigator: {
title: "Dr. Forest, Morio",
img: "./logo/forest_navigator.png",
desc: `
Dr. Forest is our receptionist. He is an excellent and diligent GPT assistant who can answer most questions about PharmaForest. However, please understand that he is not speaking on behalf of our organization. You need to sign up to ChatGPT (at least a free user account) to talk to him. See more about his background.<br><br> Any collaboration with PharmaForest is very welcome!<br><br>
<img src="./logo/wewantyou.png"
alt="we want you"
style="max-width:60%; border-radius:12px; margin-bottom:16px; display:block; margin:0 auto;">
`,
badges: ["PharmaForest","Navigator","GPTs assistant"],
links: [{text:"Background", href:"https://github.com/PharmaForest/.github/blob/main/DrForest_background.md"}, {text:"Ask Dr.Forest", href:"https://chatgpt.com/g/g-6881d98193ec8191abb19e4e920cb64c-dr-forest"}]
},
};
const carousel = document.getElementById('carousel'); // 参照だけ残す
// 右パネル更新
const panelImg = document.getElementById('panelImg');
const panelTitle = document.getElementById('panelTitle');
const panelDesc = document.getElementById('panelDesc');
const panelBadges= document.getElementById('panelBadges');
const panelLinks = document.getElementById('panelLinks');
function infoTemplate(it){
return `
<div class="info">
<p class="summary">${it.summary || ""}</p>
<div class="info-grid">
<div class="label">License</div><div class="value">${it.license || "-"}</div>
<div class="label">Authors</div><div class="value">${(it.authors||[]).join(", ") || "-"}</div>
<div class="label">Maintainers</div><div class="value">${(it.maintainers||[]).join(", ") || "-"}</div>
<div class="label">Main Macros</div><div class="value">${(it.macros||[]).join(", ") || "-"}</div>
<div class="label">Features</div><div class="value">${(it.features||[]).join(" ・ ") || "-"}</div>
</div>
</div>`;
}
const layoutMap = {
oncoplotter: {x: 40, y: 100, scale: 0.6},
sashash: {x: 150, y: 100, scale: 0.6},
sas_dataset_json: {x: 260, y: 100, scale: 0.6},
devil: {x: 366, y: 100, scale: 0.66},
odstable_layoutshowcase:
{x: 473, y: 100, scale: 0.6},
saspacer: {x: 100, y: 200, scale: 0.6},
misc: {x: 206, y: 200, scale: 0.6},
sas_faker: {x: 317, y: 200, scale: 0.6},
xattr_kit: {x: 423, y: 205, scale: 0.63},
cloak: {x: 530, y: 200, scale: 0.6},
saslogchecker: {x: 40, y: 300, scale: 0.6},
sas_compare: {x: 150, y: 300, scale: 0.6},
rtfcreator: {x: 260, y: 300, scale: 0.6},
shutter_chance: {x: 369, y: 300, scale: 0.61},
vis_review_kit: {x: 470, y: 300, scale: 0.6},
maxims4sas: {x: 97, y: 400, scale: 0.6},
laglead: {x: 205, y: 400, scale: 0.6}
};
function buildFreeBoard(itemsObj){
const keys = Object.keys(layoutMap).filter(k => itemsObj[k]?.img);
const LOGO = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--logo-size')) || 140;
let maxX = 0, maxY = 0;
keys.forEach(k=>{
const p = layoutMap[k] || {};
if (typeof p.x === 'number') maxX = Math.max(maxX, p.x);
if (typeof p.y === 'number') maxY = Math.max(maxY, p.y);
});
const stageW = Math.max(500, Math.ceil(maxX + LOGO * 0.6 + 40));
const stageH = Math.max(600, Math.ceil(maxY + LOGO * 0.6 + 40));
const wrapStyle = `style="--stage-w:${stageW}; --stage-h:${stageH};"`;
// 4カテゴリの抽出
const TAGS = ["Output/Visualization","Data Utility","Checker","Other"];
// ハニカムセル
const cells = keys.map(k=>{
const v = itemsObj[k];
const gh = (v.links||[]).find(l => (l.href||'').startsWith('https://github.com/PharmaForest/'));
const href = gh ? gh.href : (v.links?.[0]?.href || '#');
const pos = layoutMap[k] || {};
const style = `style="--x:${pos.x ?? 0}; --y:${pos.y ?? 0}; --scale:${pos.scale ?? 1};"`;
const hoverAttr = v.hover ? ` data-hover="${v.hover}"` : "";
const tags = (v.badges||[]).filter(b => TAGS.includes(b));
const tagAttr = `data-tags="${tags.join('|')}"`;
return `
<a class="free" ${style} ${tagAttr} href="${href}" target="_blank" rel="noopener" title="${v.title||k}">
<span class="hex"><img src="${v.img}"${hoverAttr} alt="${v.title||k}"></span>
</a>`;
}).join('');
// ★ラジオボタン(ハニカムの“上”)
const radiosHTML = `
<div class="filters" id="filters">
<label><input type="radio" name="cat" value="All" checked> All</label>
<label><input type="radio" name="cat" value="Output/Visualization"> Output/Visualization</label>
<label><input type="radio" name="cat" value="Data Utility"> Data Utility</label>
<label><input type="radio" name="cat" value="Checker"> Checker</label>
<label><input type="radio" name="cat" value="Other"> Other</label>
</div>`;
return `
<section class="panel" id="panel">
<div class="hero">
<img id="panelImg" src="./logo/pharmaforest.png" alt="PharmaForest">
<div>
<h1 id="panelTitle">PharmaForest</h1>
<div class="badges" id="panelBadges">
${(items['pharmaforest'].badges||[]).map(b=>`<span class="badge">${b}</span>`).join('')}
</div>
</div>
</div>
<div id="panelDesc">${items['pharmaforest'].desc || ''}</div>
${radiosHTML} <!-- ← ここがハニカム“上” -->
<div class="free-outer">
<div class="free-wrap" ${wrapStyle}>
${cells}
</div>
</div>
<div class="cta" id="panelLinks">
${(items['pharmaforest'].links||[]).map(l =>
l.html ? l.html : `<a class="btn" href="${l.href}" target="_blank" rel="noopener">${l.text}</a>`
).join('')}
</div>
</section>`;
}
// 既存:ホバー差し替えはそのまま
function attachHoneycombHover(){
const imgs = document.querySelectorAll('#panel .free img[data-hover]');
imgs.forEach(img=>{
const orig = img.getAttribute('src');
const hover = img.getAttribute('data-hover');
const pre = new Image(); pre.src = hover;
img.addEventListener('mouseenter', ()=>{ img.src = hover; });
img.addEventListener('mouseleave', ()=>{ img.src = orig; });
img.addEventListener('touchstart', ()=>{ img.src = hover; }, {passive:true});
img.addEventListener('touchend', ()=>{ img.src = orig; }, {passive:true});
});
}
// ★新規:ラジオ版フィルター
function attachCategoryRadios(){
const panel = document.getElementById('panel');
const radios = panel.querySelectorAll('#filters input[type="radio"][name="cat"]');
const icons = panel.querySelectorAll('.free');
function apply(){
const picked = panel.querySelector('#filters input[name="cat"]:checked')?.value || 'All';
if (picked === 'All'){
icons.forEach(a => a.classList.remove('dim'));
return;
}
icons.forEach(a=>{
const tags = (a.getAttribute('data-tags') || '').split('|').filter(Boolean);
const matched = tags.includes(picked);
a.classList.toggle('dim', !matched); // 一致しないものだけグレー
});
}
radios.forEach(r => r.addEventListener('change', apply));
apply(); // 初回
}
function updatePanel(key){
const it = items[key];
if(!it) return;
const right = document.getElementById('rightPanel');
if (key === 'pharmaforest'){
right.innerHTML = buildFreeBoard(items);
attachHoneycombHover();
attachCategoryRadios();
return;
}
// ── 通常の詳細パネル(従来処理) ──
const panelHTML = `
<section class="panel" id="panel">
<div class="hero">
<img id="panelImg" src="${it.img}" alt="${it.title}">
<div>
<h1 id="panelTitle">${it.title}</h1>
<div class="badges" id="panelBadges">
${(it.badges||[]).map(b=>`<span class="badge">${b}</span>`).join('')}
</div>
</div>
</div>
<div id="panelDesc">${
it.desc ? it.desc : `
<div class="info">
<p class="summary">${it.summary || ""}</p>
<div class="info-grid">
<div class="label">License</div><div class="value">${it.license || "-"}</div>
<div class="label">Authors</div><div class="value">${(it.authors||[]).join(", ") || "-"}</div>
<div class="label">Maintainers</div><div class="value">${(it.maintainers||[]).join(", ") || "-"}</div>
<div class="label">Main Macros</div><div class="value">${(it.macros||[]).join(", ") || "-"}</div>
<div class="label">Features</div><div class="value">${(it.features||[]).join(" ・ ") || "-"}</div>
</div>
</div>`
}</div>
<div class="cta" id="panelLinks">
${(it.links||[]).map(l => l.html ? l.html : `<a class="btn" href="${l.href}" target="_blank" rel="noopener">${l.text}</a>`).join('')}
</div>
</section>`;
right.innerHTML = panelHTML;
}
// 左の要素クリックで選択&右更新、中央にスクロール
const cards = Array.from(document.querySelectorAll('.logo'));
cards.forEach(card => {
const img = card.querySelector('img');
const key = card.getAttribute('data-key');
// --- クリックで右パネル更新(復活) ---
card.addEventListener('click', () => {
cards.forEach(c => c.classList.remove('active'));
card.classList.add('active');
updatePanel(key);
card.scrollIntoView({ block: 'center', behavior: 'smooth' });
});
if (img) {
const orig = img.getAttribute('src');
const hover = img.dataset.hover;
if (hover) {
const pre = new Image(); pre.src = hover; // プリロード
card.addEventListener('mouseenter', () => { img.src = hover; });
card.addEventListener('mouseleave', () => { img.src = orig; });
card.addEventListener('touchstart', () => { img.src = hover; }, {passive:true});
card.addEventListener('touchend', () => { img.src = orig; }, {passive:true});
}
}
});
// 初期選択
(function init(){
})();
</script>
</body>
</html>