-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial.html
More file actions
734 lines (688 loc) · 42.1 KB
/
tutorial.html
File metadata and controls
734 lines (688 loc) · 42.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cognify - Experience Stress Data</title>
<link rel="stylesheet" href="css/tutorial.css">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 15L45 35 25 40 37 52 32 72 50 62 68 72 63 52 75 40 55 35z' fill='%231db954'/></svg>">
<!-- D3.js for visualizations -->
<script src="https://d3js.org/d3.v7.min.js"></script>
<!-- Scrollama for scroll interactions -->
<script src="https://unpkg.com/scrollama"></script>
</head>
<body>
<!-- Fixed navigation elements -->
<div class="tutorial-progress">
<div class="progress-bar" id="progress-bar"></div>
<div class="progress-steps">
<div class="progress-step active" data-step="1">Why Sound?</div>
<div class="progress-step" data-step="2">Data Navigation</div>
<div class="progress-step" data-step="3">Audio Controls</div>
<div class="progress-step" data-step="4">Custom Waveforms</div>
<div class="progress-step" data-step="5">Upload Data</div>
</div>
</div>
<header class="tutorial-header">
<div class="logo-container">
<svg width="30" height="30" viewBox="0 0 24 24">
<path d="M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z" fill="#1db954" />
</svg>
<span>Cognify</span>
</div>
<a href="albums.html" class="exit-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</svg>
Exit Tutorial
</a>
</header>
<main class="tutorial-container">
<!-- Scroll prompt -->
<div class="scroll-prompt" id="scroll-prompt">
<div class="mouse-icon"></div>
<p>Scroll to begin your journey</p>
</div>
<!-- SECTION 1: Why Visualize Data with Sound? -->
<section class="tutorial-section" id="why-sound">
<div class="tutorial-step" data-step="1">
<h1 class="step-title">Experience Your Data</h1>
<p class="step-description">
Stress data is traditionally visualized through graphs and charts, <strong>and</strong> this allows us to see patterns over time. <strong>But</strong> our brains process audio differently from visual information, revealing subtle patterns we might otherwise miss. <strong>Therefore</strong>, by combining sound with visualization, we can create a deeper, more intuitive understanding of stress responses.
</p>
<!-- Interactive demo showing data visualized two ways -->
<div class="comparative-demo">
<div class="demo-container">
<h3>Visual Only</h3>
<div class="visual-chart" id="visual-only-chart"></div>
<p class="demo-caption">Can you spot the subtle patterns?</p>
</div>
<div class="demo-container">
<h3>Visual + Audio</h3>
<div class="audiovisual-chart" id="audiovisual-chart"></div>
<div class="audio-controls">
<div class="audio-timeline">
<div class="timeline-track"></div>
<div class="audio-timeline-progress" id="audio-timeline-progress"></div>
<div class="audio-timeline-handle" id="audio-timeline-handle"></div>
</div>
<button id="play-audio-demo" class="play-btn">
<svg viewBox="0 0 24 24" width="24" height="24">
<path d="M8 5v14l11-7z" fill="currentColor"/>
</svg>
Play
</button>
</div>
<p class="demo-caption">The hidden pattern is clearly audible!</p>
</div>
</div>
<div class="benefits-grid">
<div class="benefit-card">
<div class="benefit-icon">👂</div>
<h3>Multi-Sensory Perception</h3>
<p>Your brain processes audio and visual information through different pathways, enabling you to detect patterns that might be missed visually.</p>
</div>
<div class="benefit-card">
<div class="benefit-icon">📈</div>
<h3>Pattern Recognition</h3>
<p>Sound naturally highlights trends, anomalies, and rhythmic patterns in stress data that aren't obvious in visual formats.</p>
</div>
<div class="benefit-card">
<div class="benefit-icon">🧠</div>
<h3>Cognitive Load</h3>
<p>Experience how your body responds to stress without staring at numbers - sound creates an intuitive understanding.</p>
</div>
<div class="benefit-card">
<div class="benefit-icon">⏱️</div>
<h3>Temporal Awareness</h3>
<p>Sound naturally maps to time, making it perfect for understanding how stress levels change and fluctuate over periods.</p>
</div>
</div>
<div class="try-it-yourself">
<h3>Try It Yourself: Feel the Stress</h3>
<p>Move the slider to adjust stress levels and experience how it sounds and looks in real-time.</p>
<div class="interactive-controls">
<div class="control-row">
<span>Stress Level:</span>
<input type="range" id="stress-slider" min="0" max="100" value="20" class="demo-slider">
</div>
<div class="stress-indicators">
<div class="indicator">
<div class="heart-icon" id="heart-animation"></div>
<div id="bpm-value">72 BPM</div>
</div>
<div class="indicator">
<div class="live-waveform" id="live-waveform"></div>
</div>
<button id="play-stress-sound" class="play-btn small">
<svg viewBox="0 0 24 24" width="16" height="16">
<path d="M8 5v14l11-7z" fill="currentColor"/>
</svg>
Hear It
</button>
</div>
</div>
</div>
</div>
</section>
<!-- SECTION 2: Navigating and Understanding Datasets -->
<section class="tutorial-section" id="data-navigation">
<div class="tutorial-step" data-step="2">
<h2 class="step-title">Explore Your Data</h2>
<p class="step-description">
<strong>And</strong> stress data often contains complex patterns across different subjects and metrics.
<strong>But</strong> traditional visualizations may not reveal the full emotional impact of stress.
<strong>Therefore</strong>, Cognify helps you navigate these patterns by combining interactive visualization with sound, creating a more immersive experience.
</p>
<!-- Interactive dataset navigation -->
<div class="dataset-explorer">
<div class="explorer-controls">
<div class="control-group">
<label for="subject-select">Subject:</label>
<select id="subject-select" class="demo-select">
<option value="average">Average (All Subjects)</option>
<option value="subject1">Subject 1</option>
<option value="subject2">Subject 2</option>
<option value="subject3">Subject 3</option>
</select>
</div>
<div class="control-group">
<label for="metric-select">Metric:</label>
<select id="metric-select" class="demo-select">
<option value="hr">Heart Rate (BPM)</option>
<option value="gsr">Galvanic Skin Response</option>
<option value="temp">Body Temperature (°C)</option>
</select>
</div>
</div>
<div class="dataset-visualization">
<div id="dataset-chart" class="dataset-chart"></div>
<div class="chart-tooltip hidden" id="chart-tooltip"></div>
<div class="interaction-instructions">
<div class="instruction-item">
<span class="instruction-icon">🖱️</span>
<span>Move mouse over chart</span>
</div>
<div class="instruction-item">
<span class="instruction-icon">⇧</span>
<span>Hold Shift to hear data</span>
</div>
</div>
</div>
<div class="data-insights">
<h3>Pattern Detection</h3>
<p>Different subjects show varying responses to the same stressors. Compare Subject 1's steady response to Subject 3's spikes during the exam.</p>
<h4>Try it: Compare Subjects</h4>
<div class="compare-subjects">
<button class="demo-btn active" data-subject="average">Average</button>
<button class="demo-btn" data-subject="subject1">Subject 1</button>
<button class="demo-btn" data-subject="subject2">Subject 2</button>
<button class="demo-btn" data-subject="subject3">Subject 3</button>
</div>
<div class="annotation-container">
<div class="data-annotation" style="left: 20%;">
<span class="annotation-line"></span>
<span class="annotation-text">Start of Test</span>
</div>
<div class="data-annotation" style="left: 45%;">
<span class="annotation-line"></span>
<span class="annotation-text">Difficult Question</span>
</div>
<div class="data-annotation" style="left: 72%;">
<span class="annotation-line"></span>
<span class="annotation-text">Time Warning</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- SECTION 3: Audio Visualizer Controls -->
<section class="tutorial-section" id="audio-controls">
<div class="tutorial-step" data-step="3">
<h2 class="step-title">Master the Audio Visualizer</h2>
<p class="step-description">
<strong>And</strong> our audio-visual player enhances your ability to experience stress data.
<strong>But</strong> different situations call for different ways of exploring this information.
<strong>Therefore</strong>, we've created intuitive controls that let you customize the experience to focus on what matters most to you.
</p>
<div class="player-container">
<div class="visualization-preview">
<div class="mini-chart" id="player-chart"></div>
<div class="mini-waveform" id="player-waveform"></div>
<div class="pulse-circle" id="player-pulse-circle"></div>
</div>
<div class="player-controls">
<div class="timeline-container">
<div class="player-timeline">
<div class="timeline-track"></div>
<div class="timeline-progress" id="player-timeline-progress"></div>
<div class="timeline-handle" id="player-timeline-handle"></div>
</div>
<div class="time-display">
<span id="current-time">0:00</span>
<span>/</span>
<span id="total-time">1:30</span>
</div>
</div>
<div class="playback-buttons">
<button id="skip-back" class="control-btn">
<svg viewBox="0 0 24 24" width="24" height="24">
<path d="M6 6h2v12H6zm3.5 6l8.5 6V6z" fill="currentColor"/>
</svg>
</button>
<button id="play-btn" class="play-btn large">
<svg id="play-icon" viewBox="0 0 24 24" width="24" height="24">
<path d="M8 5v14l11-7z" fill="currentColor"/>
</svg>
<svg id="pause-icon" viewBox="0 0 24 24" width="24" height="24" class="hidden">
<path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z" fill="currentColor"/>
</svg>
</button>
<button id="skip-forward" class="control-btn">
<svg viewBox="0 0 24 24" width="24" height="24">
<path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z" fill="currentColor"/>
</svg>
</button>
</div>
<div class="playback-settings">
<div class="setting-row">
<label for="volume-slider">
<svg viewBox="0 0 24 24" width="18" height="18">
<path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z" fill="currentColor"/>
</svg>
Volume
</label>
<input type="range" id="volume-slider" min="0" max="100" value="70" class="demo-slider">
</div>
<div class="setting-row">
<label for="speed-slider">
<svg viewBox="0 0 24 24" width="18" height="18">
<path d="M20.38 8.57l-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44z" fill="currentColor"/>
</svg>
Speed
</label>
<input type="range" id="speed-slider" min="0.25" max="2" step="0.25" value="1" class="demo-slider">
<span id="speed-value">1.0×</span>
</div>
<div class="setting-row">
<label for="waveform-select">
<svg viewBox="0 0 24 24" width="18" height="18">
<path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z" fill="currentColor"/>
</svg>
Waveform
</label>
<select id="waveform-select" class="demo-select">
<option value="sine">Sine Wave</option>
<option value="triangle">Triangle Wave</option>
<option value="square">Square Wave</option>
<option value="sawtooth">Sawtooth Wave</option>
<option value="custom">Custom Waveform</option>
</select>
</div>
</div>
</div>
</div>
<div class="controls-tips">
<div class="tips-grid">
<div class="tip-card">
<div class="tip-icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v2H3v-2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z" fill="currentColor"/>
</svg>
</div>
<h3>Hold to Skip</h3>
<p>Press and hold the skip buttons to rapidly move through the data.</p>
</div>
<div class="tip-card">
<div class="tip-icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" fill="currentColor"/>
</svg>
</div>
<h3>Compare Subjects</h3>
<p>Switch between subjects to compare different patterns of response.</p>
</div>
<div class="tip-card">
<div class="tip-icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z" fill="currentColor"/>
</svg>
</div>
<h3>Try Different Waveforms</h3>
<p>Each waveform emphasizes different aspects of your data.</p>
</div>
<div class="tip-card">
<div class="tip-icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" fill="currentColor"/>
</svg>
</div>
<h3>Use Annotations</h3>
<p>Add your own notes to mark significant events in your data.</p>
</div>
</div>
<div class="practical-example">
<h3>A Practical Example</h3>
<p>Try playing the exam dataset with different speeds to hear how heart rate increases during difficult questions and as time runs out.</p>
<div class="example-actions">
<button id="example-play" class="demo-btn primary">Try Example</button>
</div>
</div>
</div>
</div>
</section>
<!-- SECTION 4: Custom Waveforms -->
<section class="tutorial-section" id="custom-waveforms">
<div class="tutorial-step" data-step="4">
<h2 class="step-title">Create Your Own Waveforms</h2>
<p class="step-description">
<strong>And</strong> different waveforms affect how we perceive stress patterns in audio.
<strong>But</strong> everyone's perception is unique, and standard waveforms may not highlight what matters most to you.
<strong>Therefore</strong>, we've created tools for you to design custom waveforms that emphasize exactly what you want to hear in your data.
</p>
<div class="waveform-guide">
<div class="waveform-types">
<div class="waveform-card" data-wave="sine">
<h3>Sine Wave</h3>
<div class="wave-preview sine-preview"></div>
<p>Smooth and pure, ideal for subtle changes. Best for heart rate data.</p>
<button class="play-wave-btn" data-wave="sine">
<svg viewBox="0 0 24 24" width="16" height="16">
<path d="M8 5v14l11-7z" fill="currentColor"/>
</svg>
Play
</button>
</div>
<div class="waveform-card" data-wave="triangle">
<h3>Triangle Wave</h3>
<div class="wave-preview triangle-preview"></div>
<p>Clear and distinct, good for moderate detail in breathing data.</p>
<button class="play-wave-btn" data-wave="triangle">
<svg viewBox="0 0 24 24" width="16" height="16">
<path d="M8 5v14l11-7z" fill="currentColor"/>
</svg>
Play
</button>
</div>
<div class="waveform-card" data-wave="square">
<h3>Square Wave</h3>
<div class="wave-preview square-preview"></div>
<p>Sharp and pronounced, emphasizes threshold crossings in GSR data.</p>
<button class="play-wave-btn" data-wave="square">
<svg viewBox="0 0 24 24" width="16" height="16">
<path d="M8 5v14l11-7z" fill="currentColor"/>
</svg>
Play
</button>
</div>
<div class="waveform-card" data-wave="sawtooth">
<h3>Sawtooth Wave</h3>
<div class="wave-preview sawtooth-preview"></div>
<p>Bright and detail-rich, excellent for EEG and complex variations.</p>
<button class="play-wave-btn" data-wave="sawtooth">
<svg viewBox="0 0 24 24" width="16" height="16">
<path d="M8 5v14l11-7z" fill="currentColor"/>
</svg>
Play
</button>
</div>
</div>
<div class="draw-your-own">
<h3>Draw Your Own Waveform</h3>
<p>Create a waveform that emphasizes the aspects of your data you care about most.</p>
<div class="waveform-editor">
<div class="editor-canvas-container">
<div class="center-line"></div>
<canvas id="waveform-canvas" width="600" height="200"></canvas>
<div class="canvas-instructions">Click and drag to draw</div>
</div>
</div>
<div class="custom-wave-tips">
<div class="tip-icon">💡</div>
<div class="tip-content">
<h4>Create with Purpose</h4>
<p>Design waveforms to highlight specific patterns in your stress data. Sharp peaks can emphasize sudden changes while smoother curves capture gradual trends. Experiment to find what helps you intuitively understand your body's responses.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- SECTION 5: Upload Your Own Dataset -->
<section class="tutorial-section" id="upload-data">
<div class="tutorial-step" data-step="5">
<h2 class="step-title">Upload Your Own Dataset</h2>
<p class="step-description">
<strong>And</strong> we provide sample datasets to explore the stress visualization experience.
<strong>But</strong> your own biometric data contains personal stress patterns unique to your life.
<strong>Therefore</strong>, Cognify makes it easy to upload, configure, and explore your own stress data, creating a deeply personal understanding of your body's responses.
</p>
<div class="upload-workflow">
<div class="workflow-step">
<div class="step-number">1</div>
<div class="step-content">
<h3>Prepare Your Data</h3>
<p>Organize your data in CSV format with these required columns:</p>
<div class="code-snippet">
<pre><code>timestamp, subject, metric1, metric2, ...</code></pre>
</div>
<div class="file-example">
<div class="file-header">
<div class="file-icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" fill="currentColor"/>
</svg>
</div>
<div class="file-name">example_data.csv</div>
</div>
<div class="file-preview">
<table>
<tr>
<th>timestamp</th>
<th>subject</th>
<th>hr</th>
<th>gsr</th>
</tr>
<tr>
<td>0.0</td>
<td>Subject1</td>
<td>72.5</td>
<td>8.3</td>
</tr>
<tr>
<td>0.5</td>
<td>Subject1</td>
<td>73.1</td>
<td>8.5</td>
</tr>
<tr>
<td>1.0</td>
<td>Subject1</td>
<td>73.8</td>
<td>8.7</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="workflow-step">
<div class="step-number">2</div>
<div class="step-content">
<h3>Upload Your File</h3>
<div class="upload-mockup">
<div class="upload-area">
<svg viewBox="0 0 24 24" width="48" height="48">
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" fill="#1db954"/>
</svg>
<p>Drag & drop your CSV file here</p>
<p class="upload-or">or</p>
<button id="browse-files" class="demo-btn primary">Browse Files</button>
</div>
</div>
</div>
</div>
<div class="workflow-step">
<div class="step-number">3</div>
<div class="step-content">
<h3>Configure Your Dataset</h3>
<div class="config-mockup">
<div class="config-form">
<div class="form-group">
<label for="dataset-name">Dataset Name</label>
<input type="text" id="dataset-name" class="demo-input" value="My Stress Study" placeholder="Enter a descriptive name">
</div>
<div class="form-group">
<label for="timestamp-column">Timestamp Column</label>
<select id="timestamp-column" class="demo-select">
<option value="timestamp" selected>timestamp</option>
<option value="time">time</option>
</select>
</div>
<div class="form-group">
<label for="subject-column">Subject Column</label>
<select id="subject-column" class="demo-select">
<option value="subject" selected>subject</option>
<option value="participant">participant</option>
<option value="student">student</option>
</select>
</div>
<div class="form-group">
<label for="metric-column">Primary Metric</label>
<select id="metric-column" class="demo-select">
<option value="hr" selected>hr</option>
<option value="gsr">gsr</option>
<option value="temp">temp</option>
</select>
</div>
<div class="form-group">
<label for="calculate-average">
<input type="checkbox" id="calculate-average" checked>
Calculate average across subjects
</label>
</div>
</div>
</div>
</div>
</div>
<div class="workflow-step">
<div class="step-number">4</div>
<div class="step-content">
<h3>Start Exploring!</h3>
<p>Your dataset will appear on the main albums screen, ready for exploration.</p>
<div class="dataset-preview">
<div class="album-card-mockup">
<div class="album-cover">
<div class="album-art">
<svg viewBox="0 0 24 24" width="48" height="48">
<path d="M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z" fill="#fff" />
</svg>
</div>
</div>
<div class="album-info">
<div class="album-title">My Stress Study</div>
<div class="album-artist">Custom Dataset</div>
</div>
</div>
</div>
<div class="final-action">
<button id="finish-tutorial" class="demo-btn primary large">Finish Tutorial & Start Exploring</button>
</div>
</div>
</div>
</div>
<div class="apple-health-section">
<h3>Using Apple Health Data</h3>
<p>Your Apple Watch or iPhone already collects valuable stress-related metrics like heart rate and variability. Here's how to export and visualize it:</p>
<div class="apple-export-steps">
<div class="export-step">
<div class="step-number">1</div>
<div class="step-content">
<h4>Export Your Apple Health Data</h4>
<div class="apple-screenshots">
<div class="screenshot">
<img src="img/apple-health-export-1.png" alt="Open Health App">
<p>Open the Health app and tap on your profile</p>
</div>
<div class="screenshot">
<img src="img/apple-health-export-2.png" alt="Select Export All Health Data">
<p>Scroll down and tap "Export All Health Data"</p>
</div>
<div class="screenshot">
<img src="img/apple-health-export-3.png" alt="Share Your Export">
<p>The data will be exported as a ZIP file - share it to your computer</p>
</div>
</div>
</div>
</div>
<div class="export-step">
<div class="step-number">2</div>
<div class="step-content">
<h4>Upload and Configure</h4>
<p>In the upload section, select "Apple Health" instead of "CSV":</p>
<div class="apple-upload-preview">
<img src="img/apple-health-upload.png" alt="Upload Apple Health Data">
</div>
</div>
</div>
<div class="export-step">
<div class="step-number">3</div>
<div class="step-content">
<h4>Select Metrics to Visualize</h4>
<p>Choose from available metrics like Heart Rate, Active Energy, or Steps:</p>
<div class="metric-selection-preview">
<div class="metric-card-example">
<h5>Heart Rate</h5>
<p>4,235 data points (bpm)</p>
</div>
<div class="metric-card-example selected">
<h5>Active Energy</h5>
<p>982 data points (kcal)</p>
</div>
<div class="metric-card-example">
<h5>Steps</h5>
<p>731 data points (count)</p>
</div>
</div>
</div>
</div>
<div class="export-step">
<div class="step-number">4</div>
<div class="step-content">
<h4>Visualize and Experience</h4>
<p>Your Apple Health data will be processed to create a seamless audio-visual experience that reveals patterns in your physiology you may never have noticed before.</p>
<div class="data-preview-example">
<img src="img/apple-health-visualization.png" alt="Visualized Apple Health Data">
</div>
</div>
</div>
</div>
</div>
<div class="data-tips">
<h3>Pro Tips</h3>
<div class="tips-grid">
<div class="tip-card">
<div class="tip-icon">📊</div>
<h4>Consistent Sampling</h4>
<p>For best results, use data with consistent time intervals between samples.</p>
</div>
<div class="tip-card">
<div class="tip-icon">🔄</div>
<h4>Normalize Your Data</h4>
<p>Pre-normalize extreme values to prevent audio distortion.</p>
</div>
<div class="tip-card">
<div class="tip-icon">🏷️</div>
<h4>Add Event Markers</h4>
<p>Include an "event" column to mark important moments in your study.</p>
</div>
<div class="tip-card">
<div class="tip-icon">🔢</div>
<h4>Multiple Metrics</h4>
<p>Include multiple metrics (HR, GSR, etc.) to get more complete insights.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Final completion section -->
<section class="tutorial-section" id="completion">
<div class="tutorial-step" data-step="6">
<div class="completion-banner">
<div class="completion-badge">
<svg viewBox="0 0 24 24" width="64" height="64">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" fill="#1db954" />
</svg>
</div>
<h2>You're Ready to Begin!</h2>
<p>You've learned how to use Cognify to explore the hidden patterns in your stress data through sound and visualization. This multi-sensory approach offers a deeper, more intuitive connection to your body's responses than traditional charts alone.</p>
<div class="next-steps">
<a href="albums.html" class="next-btn">
<span>Go to Datasets</span>
<svg viewBox="0 0 24 24" width="24" height="24">
<path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z" fill="currentColor" />
</svg>
</a>
</div>
</div>
</div>
</section>
</main>
<!-- Custom confirmation dialog -->
<div id="custom-confirm-dialog" class="custom-dialog hidden">
<div class="dialog-content">
<h3>Redirect Confirmation</h3>
<p>Are you sure you want to go to the upload page?</p>
<div class="dialog-buttons">
<button id="dialog-cancel" class="dialog-btn secondary">Cancel</button>
<button id="dialog-confirm" class="dialog-btn primary">Go to Upload</button>
</div>
</div>
</div>
<!-- Scripts -->
<script src="js/tutorial.js"></script>
<script src="js/loading-manager.js"></script>
<script src="js/logo-redirect.js"></script>
</body>
</html>