Steps to reproduce the issue:
Settings
select Continue where you/I left off
under On startup
. Now as you see the checkbox is checked, but the textarea isn't colored.
I tried it in the latest version of Chrome and Opera in Windows 10. I'm not sure about Safari, but it probably behaves the same way.
Questions:
Try
window.onload = function() {
document.getElementById('colorsToggle').onchange = function() {
document.getElementById('textField').classList.toggle('tan');
}
document.getElementById('textField').classList.toggle(document.getElementById('colorsToggle').checked ? "tan" : "white");
};
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.