/
nav-version-switcher.html
24 lines (22 loc) · 1.18 KB
/
nav-version-switcher.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-- only displayed in mobile; be sure to update version-switcher.html too -->
<div class="version-switcher">
<a href="/versions/" class="switcher-fallback">Versions</a>
<div hidden role="region" class="switcher switcher--version" aria-labelledby="nav-version-switcher-label" id="nav-version-switcher">
<span id="version-switcher-label" hidden>Version Switcher</span>
<div class="infobox visually-hidden" id="version-infobox">
Selecting a version will take you to the chosen version of the ESLint docs.
</div>
<label class="switcher__label label--block" for="version-select">
<span class="label__text">Version</span>
</label>
<select name="version selector" id="nav-version-select" aria-describedby="version-infobox" class="c-custom-select switcher__select auto-switcher">
<option value="{{ eslintVersion }}" selected>v{{ eslintVersion }}</option>
{% for version in versions.items %}
<option value="{{ version.number }}"
data-url="{{ version.url }}">
v{{ version.number }}
</option>
{% endfor %}
</select>
</div>
</div>