File tree 2 files changed +14
-14
lines changed
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -876,22 +876,22 @@ r#"var themes = document.getElementById("theme-choices");
876
876
var themePicker = document.getElementById("theme-picker");
877
877
878
878
function showThemeButtonState() {{
879
- themes.style.display = "none";
880
- themePicker.style.borderBottomRightRadius = "3px";
881
- themePicker.style.borderBottomLeftRadius = "3px";
882
- }}
883
-
884
- function hideThemeButtonState() {{
885
879
themes.style.display = "block";
886
880
themePicker.style.borderBottomRightRadius = "0";
887
881
themePicker.style.borderBottomLeftRadius = "0";
888
882
}}
889
883
884
+ function hideThemeButtonState() {{
885
+ themes.style.display = "none";
886
+ themePicker.style.borderBottomRightRadius = "3px";
887
+ themePicker.style.borderBottomLeftRadius = "3px";
888
+ }}
889
+
890
890
function switchThemeButtonState() {{
891
891
if (themes.style.display === "block") {{
892
- showThemeButtonState();
893
- }} else {{
894
892
hideThemeButtonState();
893
+ }} else {{
894
+ showThemeButtonState();
895
895
}}
896
896
}};
897
897
Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ if (!DOMTokenList.prototype.remove) {
105
105
sidebar . appendChild ( div ) ;
106
106
}
107
107
}
108
- var themePicker = document . getElementsByClassName ( "theme-picker" ) ;
109
- if ( themePicker && themePicker . length > 0 ) {
110
- themePicker [ 0 ] . style . display = "none" ;
108
+ var themePickers = document . getElementsByClassName ( "theme-picker" ) ;
109
+ if ( themePickers && themePickers . length > 0 ) {
110
+ themePickers [ 0 ] . style . display = "none" ;
111
111
}
112
112
}
113
113
@@ -123,9 +123,9 @@ if (!DOMTokenList.prototype.remove) {
123
123
filler . remove ( ) ;
124
124
}
125
125
document . getElementsByTagName ( "body" ) [ 0 ] . style . marginTop = "" ;
126
- var themePicker = document . getElementsByClassName ( "theme-picker" ) ;
127
- if ( themePicker && themePicker . length > 0 ) {
128
- themePicker [ 0 ] . style . display = null ;
126
+ var themePickers = document . getElementsByClassName ( "theme-picker" ) ;
127
+ if ( themePickers && themePickers . length > 0 ) {
128
+ themePickers [ 0 ] . style . display = null ;
129
129
}
130
130
}
131
131
You can’t perform that action at this time.
0 commit comments