Repository navigation
Expand file tree
/
Copy pathmonkey.html
More file actions
133 lines (121 loc) · 6.04 KB
/
Copy pathmonkey.html
File metadata and controls
133 lines (121 loc) · 6.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/png" href="image/flavicon.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Diffusion Compass — NHP dMRI pipeline finder</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
<script src="xlsx-loader.js"></script>
<script>
(function(){
try{
var t = localStorage.getItem('streamline-theme');
if(!t){ t = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark'; }
if(t === 'light') document.documentElement.setAttribute('data-theme','light');
}catch(e){}
})();
</script>
</head>
<body>
<div class="app">
<script src="theme.js"></script>
<header class="top">
<a class="brand" href="index.html"><img src="image/logo.png" class="logo-img" alt="Diffusion Compass logo"> Diffusion Compass</a>
<div class="top-right">
<div class="theme-tag mono">NHP</div>
<a href="https://github.com/DifussionCompass/DifussionCompass" target="_blank" rel="noopener noreferrer">
<img src="image/logo_github.png" alt="Description" style="height:36px; width:auto; display:block;">
</a>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle light / dark theme" title="Toggle light / dark theme">
<svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/></svg>
<svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
</button>
</div>
</header>
<div class="tabs" role="tablist">
<a class="tab-btn active" href="monkey.html">Quiz</a>
<a class="tab-btn" href="pipelines.html?cat=nhp">Pipelines</a>
<a class="tab-btn" href="criteria.html?cat=nhp">Criteria</a>
<a class="tab-btn" href="questions.html?cat=nhp">Questions</a>
</div>
<div class="streamline-wrap" id="streamlineWrap" style="display:none;">
<svg viewBox="0 0 700 46" preserveAspectRatio="none">
<path id="track" d="M2,23 C120,4 180,42 260,23 C340,4 400,42 480,23 C560,4 620,42 698,23"
fill="none" stroke="#2A2F3D" stroke-width="3" stroke-linecap="round"/>
<path id="fill" d="M2,23 C120,4 180,42 260,23 C340,4 400,42 480,23 C560,4 620,42 698,23"
fill="none" stroke="url(#grad)" stroke-width="3" stroke-linecap="round"
stroke-dasharray="1000" stroke-dashoffset="1000"/>
<defs>
<linearGradient id="grad" x1="0" y1="0" x2="1" y2="0">
<stop offset="0%" stop-color="#E8564A"/>
<stop offset="50%" stop-color="#63BF7C"/>
<stop offset="100%" stop-color="#4C8CE0"/>
</linearGradient>
</defs>
</svg>
<div class="streamline-label">
<span id="stepLabel">Question 1 / 8</span>
<span id="stepPct">0%</span>
</div>
</div>
<section class="screen active intro" id="screen-intro">
<h1>Which pipeline fits <span class="accent">your</span> NHP diffusion data?</h1>
<p class="lede">Answer a series of questions about your data, your compute environment and your analysis needs. ⚠️ This category currently ships with placeholder/example data — replace <code class="mono">data/monkey.xlsx</code> with your real comparison table when it's ready.</p>
<div class="facts">
<div class="fact"><b id="factCount">—</b><span>pipelines compared</span></div>
<div class="fact"><b id="factCriteria">—</b><span>technical criteria</span></div>
<div class="fact"><b id="factQuestions">—</b><span>questions to answer</span></div>
</div>
<div class="load-msg" id="loadMsg"></div>
<button class="btn-primary" id="startBtn">Start →</button>
</section>
<section class="screen" id="screen-quiz">
<div class="q-eyebrow" id="qEyebrow">Data</div>
<h2 class="q-title" id="qTitle">—</h2>
<div class="q-hint" id="qHint"></div>
<div class="options" id="qOptions"></div>
<div class="q-nav">
<button class="btn-ghost" id="backBtn">← Back</button>
<button class="btn-primary" id="nextBtn" disabled>Next →</button>
</div>
</section>
<section class="screen" id="screen-result">
<div class="result-head">
<div class="q-eyebrow">Result</div>
<h2>Your pipeline ranking</h2>
<p>Based on your answers, filtered on blocking constraints then ranked by weighted score on your preferences.</p>
</div>
<div id="filtersNote"></div>
<div id="rankList"></div>
<div class="q-nav" style="margin-top:10px;">
<button class="btn-ghost" id="restartBtn">↺ Restart</button>
</div>
</section>
<footer class="foot">
<a class="btn-ghost" href="index.html" style="padding:2px 8px;">← All categories</a>
</footer>
</div>
<script>
window.DATA_FILE = "data/monkey.xlsx";
</script>
<script>document.write('<script src="monkey-questions.js?t='+Date.now()+'"><\/script>');</script>
<script src="engine.js"></script>
<script>
(async function(){
try{
const { dataRows } = await fetchSheetGrid(window.DATA_FILE);
const UNCOUNTED = new Set(['desc','website','link','url','github','repo','repository','site']);
const count = dataRows.filter(r => !r.isSection && !UNCOUNTED.has(r.id.toLowerCase())).length;
const elC = document.getElementById('factCriteria');
if(elC) elC.textContent = count;
}catch(e){ console.warn('factCriteria:', e); }
const elQ = document.getElementById('factQuestions');
if(elQ && window.QUESTIONS) elQ.textContent = window.QUESTIONS.length;
const stepLabel = document.getElementById('stepLabel');
if(stepLabel && window.QUESTIONS) stepLabel.textContent = `Question 1 / ${window.QUESTIONS.length}`;
})();
</script>
</body>
</html>