mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-29 12:31:53 +08:00
deploy: 50e0e3c70c
This commit is contained in:
commit
0cc78c2e59
480 files changed
+584024
No files matched your search
@@ -0,0 +1,27 @@
|
||||
var sd_labels_by_text = {};
|
||||
|
||||
function ready() {
|
||||
const li = document.getElementsByClassName("sd-tab-label");
|
||||
for (const label of li) {
|
||||
syncId = label.getAttribute("data-sync-id");
|
||||
if (syncId) {
|
||||
label.onclick = onLabelClick;
|
||||
if (!sd_labels_by_text[syncId]) {
|
||||
sd_labels_by_text[syncId] = [];
|
||||
}
|
||||
sd_labels_by_text[syncId].push(label);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onLabelClick() {
|
||||
// Activate other inputs with the same sync id.
|
||||
syncId = this.getAttribute("data-sync-id");
|
||||
for (label of sd_labels_by_text[syncId]) {
|
||||
if (label === this) continue;
|
||||
label.previousElementSibling.checked = true;
|
||||
}
|
||||
window.localStorage.setItem("sphinx-design-last-tab", syncId);
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", ready, false);
|
||||
Reference in new issue
Block a user