Skip to content

Commit

Permalink
2024090903
Browse files Browse the repository at this point in the history
  • Loading branch information
Spectrollay committed Sep 10, 2024
1 parent 614a04c commit f0f2606
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Verification/file-hashes.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"donate.html": "26df29641e07c5a582eca1068971fb48",
"experiments\\index.css": "0ef80c42887552a3734a200d13a3e8cd",
"experiments\\index.html": "ec259e3546b3f1fddc9aa8c0e923d920",
"experiments\\index.js": "165f037f38aabbf7360a8f0c8122aa14",
"experiments\\index.js": "b0b2f4198f6cd85147df8e84670e5d2a",
"Feed\\database.xml": "c3b1879c690866f41a3479f7ed28edb6",
"Feed\\main.xml": "f5be196f7e0f95f94eee17f5c73efcd5",
"Feed\\messages.xml": "1c24a98ff83bdc56d026043d412bd778",
Expand Down Expand Up @@ -132,7 +132,7 @@
"issue_tracker\\index.html": "edc1f27b2d6381751ed4d60d7aa53ccc",
"javascript\\accessibility.js": "4c3d2f7fe221a2bc26da35c85eb344f4",
"javascript\\advanced.js": "288d119cbdc37f0fddc5dc651bab47d8",
"javascript\\custom_elements.js": "51be7d545bc64128831d187e9b2347cd",
"javascript\\custom_elements.js": "3f9f4240329ef539462bdeb8dafdf830",
"javascript\\editions.js": "795a056b1011d662f3cbd38c41962bee",
"javascript\\public_define.js": "13e6cc8c4fbfb0cad4dfce352a92f6e0",
"javascript\\public_script.js": "92f0dffd50c059db5fb0378f60cd9168",
Expand Down
2 changes: 1 addition & 1 deletion Verification/project-hash.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"projectHash": "8db2b5e3664218535b27d944ce005add"
"projectHash": "aacc3f412ead5c3e895df20378c8dc0c"
}
4 changes: 2 additions & 2 deletions experiments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let newFlagsPageSwitch = document.getElementById('new_flags_page');
let newFlagsPageState;

if (newFlagsPageSwitch) {
newFlagsPageState = localStorage.getItem('(/minecraft_repository_test/)new_flags_page') || 'off'; // 默认禁用
newFlagsPageState = localStorage.getItem('(/minecraft_repository_test/)new_flags_page') || newFlagsPageSwitch.getAttribute('active'); // 默认禁用
if (newFlagsPageState === 'on') {
newFlagsPageSwitch.setAttribute('active', 'on');
} else {
Expand All @@ -60,7 +60,7 @@ function flagsPage() {

// 实验性无障碍
let expAccessibilitySwitch = document.getElementById('experimental_accessibility');
let expAccessibilityState = localStorage.getItem('(/minecraft_repository_test/)experimental_accessibility') || 'on'; // 默认启用
let expAccessibilityState = localStorage.getItem('(/minecraft_repository_test/)experimental_accessibility') || expAccessibilitySwitch.getAttribute('active'); // 默认启用

if (expAccessibilitySwitch) {
if (expAccessibilityState === 'on') {
Expand Down
1 change: 0 additions & 1 deletion javascript/custom_elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ class CustomSwitch extends HTMLElement {
switchStatus.textContent = `Toggle: ${isOn ? 'Open' : 'Close'}`;
}
}

}

customElements.define('custom-switch', CustomSwitch);
Expand Down

0 comments on commit f0f2606

Please sign in to comment.