|
22 | 22 | </script> |
23 | 23 | <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> |
24 | 24 | <script src=https://unpkg.com/compare-versions/lib/umd/index.js></script> |
| 25 | + <script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script> |
25 | 26 | <style> |
26 | 27 | .toggle-switch { |
27 | 28 | display: flex; |
@@ -182,19 +183,19 @@ <h1>Downloads for past versions</h1> |
182 | 183 | <div style="width:80%; margin: 20px auto; height: 50vh;"> |
183 | 184 | <canvas id="versionChart"></canvas> |
184 | 185 | </div> |
185 | | -<h1>All downloads by OS</h1> |
| 186 | +<h1>All downloads by OS <span class="version-select-text"></span></h1> |
186 | 187 | <div style="width:80%; margin: 20px auto; height: 50vh;"> |
187 | 188 | <canvas id="platformChart"></canvas> |
188 | 189 | </div> |
189 | | -<h1>Installer downloads only by OS</h1> |
| 190 | +<h1>Installer downloads only by OS <span class="version-select-text"></span></h1> |
190 | 191 | <div style="width:80%; margin: 20px auto; height: 50vh;"> |
191 | 192 | <canvas id="installerChart"></canvas> |
192 | 193 | </div> |
193 | | -<h1>Updates only by OS</h1> |
| 194 | +<h1>Updates only by OS <span class="version-select-text"></span></h1> |
194 | 195 | <div style="width:80%; margin: 20px auto; height: 50vh;"> |
195 | 196 | <canvas id="updaterChart"></canvas> |
196 | 197 | </div> |
197 | | -<h1>Individual Assets</h1> |
| 198 | +<h1>Individual Assets <span class="version-select-text"></span></h1> |
198 | 199 | <div style="width:80%; margin: 20px auto; height: 50vh;"> |
199 | 200 | <canvas id="downloadsChart"></canvas> |
200 | 201 | </div> |
@@ -448,6 +449,7 @@ <h1>Individual Assets</h1> |
448 | 449 | const days = parseInt(timePeriod); |
449 | 450 | const allVersions = Object.keys(prodReleaseHistory); |
450 | 451 | const lastNVersions = filterLatestNVersions(allVersions, versionInput.value); |
| 452 | + $(".version-select-text").text(`- V${versionSelector.value}`); |
451 | 453 | console.log(`Computing downloads for lat ${versionInput.value} versions`); |
452 | 454 | let largestTimeSeries = []; |
453 | 455 | const versionData = {}; |
|
0 commit comments