Skip to content

Commit cd81c32

Browse files
committed
u
1 parent 1a1ba7a commit cd81c32

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed

notes/info/text-editor-uc.html

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5028,15 +5028,47 @@ <h2 style="margin-top: 4px; margin-bottom: 5px; font-size: 20px">
50285028
document.getElementById("toggleDark").innerHTML = "🌓 Dark Mode";
50295029
} else {
50305030
//run first function
5031-
document.getElementById("textMainArea").style.color = "#f6f6f6";
50325031

5032+
// Select all elements with the specified selectors
5033+
var elements = document.querySelectorAll(
5034+
"textarea, input, .inputFieldClass, .class2, .class3"
5035+
);
5036+
// Loop through each element and set the style properties
5037+
elements.forEach(function (element) {
5038+
element.style.color = "#f6f6f6"; // Set the text color to #f6f6f6
5039+
});
5040+
5041+
//
5042+
// Select all elements with the specified selectors
5043+
var elements = document.querySelectorAll(
5044+
"textarea, input, .inputFieldClass, .class2, .class3"
5045+
);
5046+
// Loop through each element and set the style properties
5047+
elements.forEach(function (element) {
5048+
element.style.backgroundColor = "#262626"; // Set the text color to #f6f6f6
5049+
});
5050+
5051+
/*document.getElementById("textMainArea").style.color = "#f6f6f6";
50335052
document.getElementById("textMainArea").style.backgroundColor =
50345053
"#262626";
5035-
50365054
document.getElementById("textMainArea").style.borderColor =
5037-
"#262626";
5055+
"#262626"; */
50385056

50395057
document.getElementById("toggleDark").innerHTML = "🌓 Light Mode";
5058+
5059+
//
5060+
const buttons = document.querySelectorAll(
5061+
".mid.editorButtons button"
5062+
);
5063+
// Loop through each button and set the color and background color
5064+
buttons.forEach((button) => {
5065+
button.style.backgroundColor = "#6b6b6b";
5066+
button.style.color = "#fff";
5067+
});
5068+
5069+
document.getElementById("findThis").style.backgroundColor =
5070+
"#262626";
5071+
document.getElementById("findThis").style.color = "#757575";
50405072
}
50415073
}
50425074
//

0 commit comments

Comments
 (0)