Skip to content

Commit eb95589

Browse files
chore(demo): ux
1 parent 1b1bf83 commit eb95589

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

demo/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ document.addEventListener('DOMContentLoaded', () => {
3232
if (typeWords.checked) types.push('words');
3333
if (typeChars.checked) types.push('chars');
3434

35+
if (cssBalance.checked) {
36+
noBalance.setAttribute('disabled', 'disabled');
37+
balanceRatio.setAttribute('disabled', 'disabled');
38+
} else {
39+
noBalance.removeAttribute('disabled');
40+
balanceRatio.removeAttribute('disabled');
41+
}
42+
3543
return {
3644
type: types.join(','),
3745
noAriaLabel: noAriaLabel.checked,

0 commit comments

Comments
 (0)