Skip to content

Commit 3503efb

Browse files
author
docs-preview
committed
Pushing changes to GitHub Pages.
1 parent dadbc07 commit 3503efb

File tree

788 files changed

+231604
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

788 files changed

+231604
-0
lines changed

review/pr-317/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

review/pr-317/_sphinx_design_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
var sd_labels_by_text = {};
2+
3+
function ready() {
4+
const li = document.getElementsByClassName("sd-tab-label");
5+
for (const label of li) {
6+
syncId = label.getAttribute("data-sync-id");
7+
if (syncId) {
8+
label.onclick = onLabelClick;
9+
if (!sd_labels_by_text[syncId]) {
10+
sd_labels_by_text[syncId] = [];
11+
}
12+
sd_labels_by_text[syncId].push(label);
13+
}
14+
}
15+
}
16+
17+
function onLabelClick() {
18+
// Activate other inputs with the same sync id.
19+
syncId = this.getAttribute("data-sync-id");
20+
for (label of sd_labels_by_text[syncId]) {
21+
if (label === this) continue;
22+
label.previousElementSibling.checked = true;
23+
}
24+
window.localStorage.setItem("sphinx-design-last-tab", syncId);
25+
}
26+
27+
document.addEventListener("DOMContentLoaded", ready, false);

0 commit comments

Comments
 (0)