-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreview-trainer.html
More file actions
56 lines (51 loc) · 2.25 KB
/
preview-trainer.html
File metadata and controls
56 lines (51 loc) · 2.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GramFrame Trainer Demo</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; }
.test-container { margin: 20px 0; }
.note { background: #e8f5e9; padding: 15px; border-left: 4px solid #1b5e20; margin: 10px 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: bold; color: #fff; background: #1b5e20; vertical-align: middle; margin-left: 10px; }
.nav { margin-bottom: 15px; font-size: 14px; }
.nav a { color: #1a73e8; }
</style>
</head>
<body>
<h1>GramFrame Trainer Demo <span class="badge">localStorage</span></h1>
<div class="nav">
<a href="index.html">← Back to demo index</a> | <a href="student.html">Student page (sessionStorage)</a>
|
<!-- This ANALYSIS link triggers trainer context detection -->
<a href="#">ANALYSIS</a>
</div>
<div class="note">
<strong>Trainer context:</strong> The "ANALYSIS" link above triggers <code>localStorage</code> persistence.
Annotations survive browser restarts. A "Clear gram" button is available to reset.
</div>
<div class="test-container">
<table class="gram-config">
<tr>
<td colspan="2"><img src="./mock-gram.png" alt="Mock Spectrogram" style="width: 800px; height: 400px;"></td>
</tr>
<tr><td>time-start</td><td>0</td></tr>
<tr><td>time-end</td><td>10</td></tr>
<tr><td>freq-start</td><td>0</td></tr>
<tr><td>freq-end</td><td>50</td></tr>
</table>
</div>
<div class="note">
<strong>Test steps:</strong>
<ol>
<li>Add some markers in Cross Cursor mode</li>
<li>Reload the page — markers should still be there</li>
<li>Close and reopen the browser — markers should still be there</li>
<li>Click "Clear gram" button — markers should be removed</li>
<li>Reload — markers should stay gone</li>
</ol>
</div>
<script src="./gramframe.bundle.js"></script>
</body>
</html>