Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
149 lines (144 loc) · 6.15 KB
/
Copy pathindex.html
File metadata and controls
149 lines (144 loc) · 6.15 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
/>
<meta name="theme-color" content="#182033" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="RRG" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>RRG</title>
<link rel="manifest" href="./manifest.webmanifest" />
<link rel="apple-touch-icon" href="./icons/apple-touch-icon.png" />
<link rel="icon" href="./icons/icon.svg" type="image/svg+xml" />
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<main class="app-shell">
<header class="topbar">
<div>
<p class="eyebrow">U.S. equities vs SPY</p>
<h1>RRG</h1>
</div>
<div class="topbar-meta">
<div class="status-pill" id="dataStatus">Preparing data...</div>
<p class="last-updated" id="lastUpdated">Last updated: --</p>
</div>
</header>
<section class="control-strip" aria-label="Chart controls">
<div class="segmented" role="group" aria-label="Universe">
<button class="segment active" type="button" data-universe="sectors">Sectors</button>
<button class="segment" type="button" data-universe="industries">Industries</button>
<button class="segment" type="button" data-universe="themes">Themes</button>
<button class="segment" type="button" data-universe="indices">Indices</button>
</div>
<div class="segmented timeframe-segmented" role="group" aria-label="Timeframe">
<button class="segment active" type="button" data-timeframe="daily">Daily</button>
<button class="segment" type="button" data-timeframe="weekly">Weekly</button>
<button class="segment" type="button" data-timeframe="monthly">Monthly</button>
</div>
<button class="icon-button" type="button" id="refreshButton" aria-label="Refresh market data" title="Refresh market data">
↻
</button>
<label class="ema-control">
<span>Length</span>
<select id="lengthPeriod" aria-label="RS ratio EMA length">
<option value="10">10</option>
<option value="14" selected>14</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="150">150</option>
<option value="200">200</option>
</select>
</label>
<label class="ema-control">
<span>Smooth</span>
<select id="smoothPeriod" aria-label="RS smoothing period">
<option value="10">10</option>
<option value="14">14</option>
<option value="20" selected>20</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="150">150</option>
<option value="200">200</option>
</select>
</label>
<label class="tail-control">
<span>Tail</span>
<input id="tailLength" type="range" min="5" max="40" value="18" />
<output id="tailLengthValue">18d</output>
</label>
</section>
<section class="workspace">
<div class="chart-column">
<div class="benchmark-panel" aria-label="SPY price context">
<div class="benchmark-bar" id="benchmarkBar">
<span>SPY</span>
<strong>--</strong>
<small>--</small>
</div>
<svg id="spySparkline" role="img" aria-label="SPY price line"></svg>
</div>
<div class="chart-stage">
<svg id="rrgChart" role="img" aria-label="Relative Rotation Graph chart"></svg>
<div class="tooltip hidden" id="tooltip"></div>
<div class="chart-zoom">
<input
id="chartZoomSlider"
type="range"
min="1"
max="50"
step="1"
value="10"
aria-label="Chart axis range"
title="Chart axis range"
/>
<output id="chartZoomReadout" for="chartZoomSlider">±10</output>
</div>
</div>
</div>
<aside class="side-panel" aria-label="Current rotation details">
<div class="panel-header">
<div>
<p class="eyebrow">As of</p>
<h2 id="selectedDate">--</h2>
</div>
<div class="quadrant-chip" id="selectedQuadrant">--</div>
</div>
<div class="selected-card" id="selectedCard">
<p>Select a marker to inspect its rotation.</p>
</div>
<div class="visibility-actions" role="group" aria-label="Symbol visibility">
<button class="panel-action" type="button" id="hideAllButton">Hide All</button>
<button class="panel-action" type="button" id="showAllButton">Show All</button>
</div>
<div class="rank-list" id="rankList"></div>
</aside>
</section>
<section class="timeline" aria-label="Date slider">
<div class="timeline-labels">
<span id="startDate">--</span>
<strong id="currentDate">--</strong>
<span id="endDate">--</span>
</div>
<div class="date-control-row">
<button class="timeline-button" type="button" id="stepBackButton" aria-label="Previous date" title="Previous date">
<
</button>
<input id="dateSlider" type="range" min="0" max="0" value="0" aria-label="Selected chart date" />
<button class="timeline-button play-button" type="button" id="playPauseButton" aria-label="Play timeline" title="Play timeline">
▶
</button>
<button class="timeline-button" type="button" id="stepForwardButton" aria-label="Next date" title="Next date">
>
</button>
</div>
</section>
</main>
<script type="module" src="./src/app.js"></script>
</body>
</html>