-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
238 changed files
with
7,168 additions
and
6,997 deletions.
There are no files selected for viewing
Binary file removed
BIN
-771 KB
...ev/_images/01fd0cc0d9e76296197d6851dd7db72b403f1323af251f23fb2cfc10d701ea6a.png
Binary file not shown.
Binary file renamed
BIN
+1.94 MB
...1b82acb2b3ba3779993664b7fc8f3c76eb0b1.png → ...ae70f9f06b1abdf93dc8c26cb01b577081e3c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+109 KB
...915d10d598131ce77e439e02a0089024cc3bf.png → ...4f8b72c2cbabe70ddfadfeaec9d8592c39071.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+3.7 MB
...a96665ef0737f35793130e75fd55dc2ba28a7.png → ...850c636ce62dd47d932736b6a9ed3c257ca12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-30.1 KB
...ev/_images/0e378cee8944d350de3c5652ab7c01633d3263f3df5005ed65f7d7af815b2525.png
Binary file not shown.
Binary file removed
BIN
-439 KB
...ev/_images/12c9b0e813c0d17009b2a0c35f67e207d7950bea5a9ae096d8370ca39d667694.png
Binary file not shown.
Binary file renamed
BIN
+992 KB
...0e1bcc6b434e6263b6ede942c22cafc1c14a7.png → ...6e679e28c8a94d1408cbff84026f13456a4e2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+941 KB
...ea771000311b3bc1ee39f091c9c2e3734fbc1.png → ...63dd4c4147db4de8e212232786955524c1ae9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+773 KB
...3e35a54032514e8def1d8769a2016ece3cb1f.png → ...3e419b63862db6c5c17abd50ade80b625edcd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+969 KB
...2ed33e5b56557d62d265e32333475d419638f.png → ...62c53ea173d629ce72545f88e49d6828849ae.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+1.05 MB
...2bd123df3de8d9a7362d86198fd37bead51bc.png → ...210efc41e88eaf21dfcad7403bcfecc19f77a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+3.07 MB
...c87d8375bcf30858ad3a850f43b75c7c8b612.png → ...9c615bb2a0793d58b7466a7ac5583a7784c0b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+352 KB
...ev/_images/27a77a8d857d08cfc69adf16a24703c15646a3914ad9fcde15d6130eecc4f1fb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+995 KB
...e6530eda971ec244f580355a7518dfb6ce75a.png → ...ac03425df85ab6c9e2d0839bf5894c917a59c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+695 KB
...57cf30bfa2363cca4f0bc4b21dc0efbcec84a.png → ...f6d8319ca395ff00e11458bcee9fe2ccf4a0e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+2.99 MB
...2bc2d91e2547e446ed055818896c3a2b3fe69.png → ...cf18730fbe3e89a9f203350b910790b722f23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+633 KB
...ev/_images/3f07e5134c54d5368000dbaf459940739f3e2c302493b876321252f51718c8ca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+652 KB
...ccdc92c8624f9d12974f9f20c87124e89b082.png → ...046c4a0bd9a11cbf565f03a7ed572b7a11828.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+98.1 KB
...72c519c1dcdc1eff06f4d0a5d5da6903eb8a6.png → ...b05add71004c75dfb7a60eb378d723493c263.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+2.29 MB
...088d424533584b92ce55454714d1e568650a2.png → ...c0e407a887db8b95472048df134cbba07b875.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+752 KB
...ev/_images/4a5602d78eb00e27be8cfb4aeca471e0eda21f6484d32b06e458d70a9b7268f0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+3.22 MB
...b96c30457523c1af6239fed2ba528f603faad.png → ...d145379aa7a138790f6e590361220794148de.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+2.71 MB
...0cb49e8c5a0d2fcd8e409f8c670acf7b4439a.png → ...99748766102ed7448b1f8b69685cb3317c6fb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-521 KB
...ev/_images/54d1a95475ab66fdb9ae3c42f2e68f7cc8d770970d862326cd152c75a011d8dc.png
Binary file not shown.
Binary file added
BIN
+291 KB
...ev/_images/55088379b6d44b8320485cbb257c3b9d9281ed4d597b23e461497b4f5d6cb599.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-269 KB
...ev/_images/577f900f2833f7d98e6bf3b7729ffba630bd3fe5ff82cd90086af5b3930825db.png
Diff not rendered.
Binary file added
BIN
+32.4 KB
...ev/_images/57da80f914f23f58ef292845a46b9a89109dbe7659a86c8b5f8ee9b37e6156b6.png
Oops, something went wrong.
Binary file added
BIN
+333 KB
...ev/_images/5e45b76f28993c29d433e4a0ad6ba5c2731254274f9d719fb6e30b28c1dafac0.png
Oops, something went wrong.
Binary file renamed
BIN
+703 KB
...20a10a2bc0fbff35aef1163ba2ef662fe1529.png → ...a8fd884c0d262c00bff951f1e5cab72b267bd.png
Oops, something went wrong.
Binary file removed
BIN
-624 KB
...ev/_images/67d822926ef070b254382ecb371a68fb5cca898452cabc1a2e2cce224fdbbefa.png
Diff not rendered.
Binary file added
BIN
+16.7 KB
...ev/_images/694a2cf55227bf5488a3c6d500dce0b6e077da834b38405c349f268ff8b6e1f5.png
Oops, something went wrong.
Binary file renamed
BIN
+3.7 MB
...dacbc257d1a8f49256b56e7aa32ece49c2add.png → ...780b5536fa70bd64ccc79c3458f5d23a6aab1.png
Oops, something went wrong.
Binary file renamed
BIN
+1.06 MB
...36798abf7b9bd3aa931355383b73f48d57e82.png → ...41d5f8d68941d2bb0ba491354daf2d16f7f03.png
Oops, something went wrong.
Binary file removed
BIN
-296 KB
...ev/_images/73d65aa2bb3e273eff5fb4b289eb6b8bed4580924021d182aafb8ddbdd79a0c5.png
Diff not rendered.
Binary file renamed
BIN
+5.05 MB
...3a12e1d5de82eefc427b9dbd6561ba830e19e.png → ...a1337c658c5e28d104bbc393a99b3c7a9d6d8.png
Oops, something went wrong.
Binary file added
BIN
+774 KB
...ev/_images/7b20d5090c73a2b3359316f08ee20a4b56d67a7c2996cd40153ee72c75dd47d4.png
Oops, something went wrong.
Binary file added
BIN
+17.6 KB
...ev/_images/7c30ab8238931390f6ff7c99de1b4abd1873a736c53d03e01910692c4decebf6.png
Oops, something went wrong.
Binary file renamed
BIN
+661 KB
...1aeab19e90e97d13dc9c72e040c4e8bdb813c.png → ...39607e921e3baed0a2ae5a505e0db9dd1eeab.png
Oops, something went wrong.
Binary file renamed
BIN
+111 KB
...6a8770aed5ac3e42ac833353b1e313b73c6eb.png → ...4768c835bea471f729e708ecdcd9cd355a989.png
Oops, something went wrong.
Binary file removed
BIN
-16.7 KB
...ev/_images/85359a508f63e72291369e1e9af056561a94604323765d09a117a4bfd5236a21.png
Diff not rendered.
Binary file added
BIN
+30.1 KB
...ev/_images/86a5c6d1decd7e3dab060b4878211f1ddff793c4ee1c10d62fd24e63dbbebdb2.png
Oops, something went wrong.
Binary file renamed
BIN
+32.4 KB
...82663d46942920f58feb9190d856b5247d19e.png → ...6f9845395a9ea862ca206531ceb7f42b67837.png
Oops, something went wrong.
Binary file renamed
BIN
+1.74 MB
...f0b4b910b3c1514bd6a2f43b1813bc1a17635.png → ...62b1e2e34f176a2694481f7fce6c6789ee767.png
Oops, something went wrong.
Binary file added
BIN
+315 KB
...ev/_images/a0f34d9f3b193c535c5e58cc3b0d054b78b1d1dc63a1670acd052f2e5e59170b.png
Oops, something went wrong.
Binary file added
BIN
+826 KB
...ev/_images/a95dff619d591cd3143293325da82b334dc57bbbdd957d3a5d90dfc1ef452a12.png
Oops, something went wrong.
Binary file renamed
BIN
+2.42 MB
...855ad6bf39bdfa84d0366bd90af19126b3b29.png → ...b99ff5b415b2c653e1d0dfdca3b06a6d83da6.png
Oops, something went wrong.
Binary file added
BIN
+261 KB
...ev/_images/ad5acf37e61753f59b1966e97682d74c600feb6cf51c05c326e3baa8157dc5fe.png
Oops, something went wrong.
Binary file removed
BIN
-13.9 KB
...ev/_images/ad8e418e9ddd4556470f74002af79e30115a6d32255c90c56cabe050b30674e1.png
Diff not rendered.
Binary file removed
BIN
-317 KB
...ev/_images/aecdcee3b5fcb7a9e74ebf99e2efefc16021f5e8560515331dbe37cd2a647e38.png
Diff not rendered.
Binary file renamed
BIN
+981 KB
...3c10a047feb85a7cf57523a99a04b57b1882d.png → ...8705b5648dce7138be121059a40ccb3f062aa.png
Oops, something went wrong.
Binary file renamed
BIN
+1.31 MB
...f066d9db967ab47aa8c43df583225ed566b22.png → ...7345c10a87a1bd9c6014a5099438cb8e47e5a.png
Oops, something went wrong.
Binary file renamed
BIN
+5.32 MB
...68bd15c4f1ed35c8e80b3319bf59fa2130929.png → ...b6c60949560d4c6359e1e2ec53fbf63cdb45e.png
Oops, something went wrong.
Binary file renamed
BIN
+3.37 MB
...7f270521b37b704b7ff499c20657cbd8aeaec.png → ...ebd0662b4735a45096b671082f98d0e59f906.png
Oops, something went wrong.
Binary file renamed
BIN
+1.03 MB
...0366d41323d906497b3cda676ad93eb8e1b27.png → ...1988c456351130705a3576d198b0aaf6954ca.png
Oops, something went wrong.
Binary file removed
BIN
-244 KB
...ev/_images/b98f53b580e10a36e8389030d7af796655b545c53fa4ceb82f285996073734b3.png
Diff not rendered.
Binary file removed
BIN
-17.6 KB
...ev/_images/bb0f49480b54aa53b254a5a2d532bc6c7618dc4ea09a82cc706be331de2a0ba4.png
Diff not rendered.
Binary file removed
BIN
-32.5 KB
...ev/_images/c1148412c62065386b86d69087fd063f55c79f3e5ffedfdbc48129e514bc056e.png
Diff not rendered.
Binary file removed
BIN
-745 KB
...ev/_images/c5c71241ea36f4a8645178d346196a3b0e413516cc3a8a999be1ae66218d200f.png
Diff not rendered.
Binary file removed
BIN
-830 KB
...ev/_images/c87a634bdc30757b24e70eabacd74a9540de1fc6e9da0915cee3bdeae1cb572f.png
Diff not rendered.
Binary file added
BIN
+856 KB
...ev/_images/c9bc76c60464f9dc9eec12441bd179baf7f8d33bd2030718ebecde2bb808a5d0.png
Oops, something went wrong.
Binary file added
BIN
+518 KB
...ev/_images/ca02725abfe9d8592a33841f011f79b02f29baa8fadac2aafd23a3769a52dadb.png
Oops, something went wrong.
Binary file renamed
BIN
+768 KB
...d8167e3002410d25ead855646d4b81d864799.png → ...118ac0d76c9d5206b372c9effe56753c7b3f9.png
Oops, something went wrong.
Binary file added
BIN
+445 KB
...ev/_images/cd7ff9c25c1ee84288484b350eba4b73e59abe419330524a5f08ae54612c0f41.png
Oops, something went wrong.
Binary file added
BIN
+242 KB
...ev/_images/cf1d33b50cadca6b3e2c9066f9f74dc04d6d3e66269835fae8588be98734e60a.png
Oops, something went wrong.
Binary file removed
BIN
-348 KB
...ev/_images/d3babbfbb58c60aa04418efea7e13908fd859da11801dac195c25a8644394640.png
Diff not rendered.
Binary file renamed
BIN
+141 KB
...7fca351eaee4605efad5d5d2e8bbb59804dee.png → ...ad4bc21fc5952421d54a2ddd5f499f4b2e296.png
Oops, something went wrong.
Binary file added
BIN
+1.96 MB
...ev/_images/e39faeacc2c01119dc08dd6cf0c742c98526003aae3c30d464b800d9441293cc.png
Oops, something went wrong.
Binary file renamed
BIN
+1.99 MB
...a9f527526f652ba05970b1a5494c356f0cc2c.png → ...558dbe75b201cd6f32636c2aad25d416f1889.png
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
...ev/_images/ee2ded4183dbb15143474014b0eb2d34dca00d873a867b508b080544d377fcc1.png
Oops, something went wrong.
Binary file removed
BIN
-60.3 KB
...ev/_images/f1775852be560b6ff50206a2a9e1ada49ea547c3e2c26774bf49e271ca541161.png
Diff not rendered.
Binary file renamed
BIN
+8.54 MB
...1971d180e7aedd8acf7b8b3b891d8eb0eb619.png → ...860ecec7ca69d94913f383494af41c5033fe3.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,101 @@ | ||
var sd_labels_by_text = {}; | ||
// @ts-check | ||
|
||
// Extra JS capability for selected tabs to be synced | ||
// The selection is stored in local storage so that it persists across page loads. | ||
|
||
/** | ||
* @type {Record<string, HTMLElement[]>} | ||
*/ | ||
let sd_id_to_elements = {}; | ||
const storageKeyPrefix = "sphinx-design-tab-id-"; | ||
|
||
/** | ||
* Create a key for a tab element. | ||
* @param {HTMLElement} el - The tab element. | ||
* @returns {[string, string, string] | null} - The key. | ||
* | ||
*/ | ||
function create_key(el) { | ||
let syncId = el.getAttribute("data-sync-id"); | ||
let syncGroup = el.getAttribute("data-sync-group"); | ||
if (!syncId || !syncGroup) return null; | ||
return [syncGroup, syncId, syncGroup + "--" + syncId]; | ||
} | ||
|
||
/** | ||
* Initialize the tab selection. | ||
* | ||
*/ | ||
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] = []; | ||
// Find all tabs with sync data | ||
|
||
/** @type {string[]} */ | ||
let groups = []; | ||
|
||
document.querySelectorAll(".sd-tab-label").forEach((label) => { | ||
if (label instanceof HTMLElement) { | ||
let data = create_key(label); | ||
if (data) { | ||
let [group, id, key] = data; | ||
|
||
// add click event listener | ||
// @ts-ignore | ||
label.onclick = onSDLabelClick; | ||
|
||
// store map of key to elements | ||
if (!sd_id_to_elements[key]) { | ||
sd_id_to_elements[key] = []; | ||
} | ||
sd_id_to_elements[key].push(label); | ||
|
||
if (groups.indexOf(group) === -1) { | ||
groups.push(group); | ||
// Check if a specific tab has been selected via URL parameter | ||
const tabParam = new URLSearchParams(window.location.search).get( | ||
group | ||
); | ||
if (tabParam) { | ||
console.log( | ||
"sphinx-design: Selecting tab id for group '" + | ||
group + | ||
"' from URL parameter: " + | ||
tabParam | ||
); | ||
window.sessionStorage.setItem(storageKeyPrefix + group, tabParam); | ||
} | ||
} | ||
|
||
// Check is a specific tab has been selected previously | ||
let previousId = window.sessionStorage.getItem( | ||
storageKeyPrefix + group | ||
); | ||
if (previousId === id) { | ||
// console.log( | ||
// "sphinx-design: Selecting tab from session storage: " + id | ||
// ); | ||
// @ts-ignore | ||
label.previousElementSibling.checked = true; | ||
} | ||
} | ||
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]) { | ||
/** | ||
* Activate other tabs with the same sync id. | ||
* | ||
* @this {HTMLElement} - The element that was clicked. | ||
*/ | ||
function onSDLabelClick() { | ||
let data = create_key(this); | ||
if (!data) return; | ||
let [group, id, key] = data; | ||
for (const label of sd_id_to_elements[key]) { | ||
if (label === this) continue; | ||
// @ts-ignore | ||
label.previousElementSibling.checked = true; | ||
} | ||
window.localStorage.setItem("sphinx-design-last-tab", syncId); | ||
window.sessionStorage.setItem(storageKeyPrefix + group, id); | ||
} | ||
|
||
document.addEventListener("DOMContentLoaded", ready, false); |
2 changes: 1 addition & 1 deletion
2
....1e8bd061cd6da7fc9cf755528e8ffc24.min.css → ...phinx_design_static/sphinx-design.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,101 @@ | ||
var sd_labels_by_text = {}; | ||
// @ts-check | ||
|
||
// Extra JS capability for selected tabs to be synced | ||
// The selection is stored in local storage so that it persists across page loads. | ||
|
||
/** | ||
* @type {Record<string, HTMLElement[]>} | ||
*/ | ||
let sd_id_to_elements = {}; | ||
const storageKeyPrefix = "sphinx-design-tab-id-"; | ||
|
||
/** | ||
* Create a key for a tab element. | ||
* @param {HTMLElement} el - The tab element. | ||
* @returns {[string, string, string] | null} - The key. | ||
* | ||
*/ | ||
function create_key(el) { | ||
let syncId = el.getAttribute("data-sync-id"); | ||
let syncGroup = el.getAttribute("data-sync-group"); | ||
if (!syncId || !syncGroup) return null; | ||
return [syncGroup, syncId, syncGroup + "--" + syncId]; | ||
} | ||
|
||
/** | ||
* Initialize the tab selection. | ||
* | ||
*/ | ||
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] = []; | ||
// Find all tabs with sync data | ||
|
||
/** @type {string[]} */ | ||
let groups = []; | ||
|
||
document.querySelectorAll(".sd-tab-label").forEach((label) => { | ||
if (label instanceof HTMLElement) { | ||
let data = create_key(label); | ||
if (data) { | ||
let [group, id, key] = data; | ||
|
||
// add click event listener | ||
// @ts-ignore | ||
label.onclick = onSDLabelClick; | ||
|
||
// store map of key to elements | ||
if (!sd_id_to_elements[key]) { | ||
sd_id_to_elements[key] = []; | ||
} | ||
sd_id_to_elements[key].push(label); | ||
|
||
if (groups.indexOf(group) === -1) { | ||
groups.push(group); | ||
// Check if a specific tab has been selected via URL parameter | ||
const tabParam = new URLSearchParams(window.location.search).get( | ||
group | ||
); | ||
if (tabParam) { | ||
console.log( | ||
"sphinx-design: Selecting tab id for group '" + | ||
group + | ||
"' from URL parameter: " + | ||
tabParam | ||
); | ||
window.sessionStorage.setItem(storageKeyPrefix + group, tabParam); | ||
} | ||
} | ||
|
||
// Check is a specific tab has been selected previously | ||
let previousId = window.sessionStorage.getItem( | ||
storageKeyPrefix + group | ||
); | ||
if (previousId === id) { | ||
// console.log( | ||
// "sphinx-design: Selecting tab from session storage: " + id | ||
// ); | ||
// @ts-ignore | ||
label.previousElementSibling.checked = true; | ||
} | ||
} | ||
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]) { | ||
/** | ||
* Activate other tabs with the same sync id. | ||
* | ||
* @this {HTMLElement} - The element that was clicked. | ||
*/ | ||
function onSDLabelClick() { | ||
let data = create_key(this); | ||
if (!data) return; | ||
let [group, id, key] = data; | ||
for (const label of sd_id_to_elements[key]) { | ||
if (label === this) continue; | ||
// @ts-ignore | ||
label.previousElementSibling.checked = true; | ||
} | ||
window.localStorage.setItem("sphinx-design-last-tab", syncId); | ||
window.sessionStorage.setItem(storageKeyPrefix + group, id); | ||
} | ||
|
||
document.addEventListener("DOMContentLoaded", ready, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.