web/_javascript/commons/mode-toggle.js
Cotes Chung 55fce7574c Refactor theme mode toggle
- Improve mode switching JS execution priority
- Drop deprecated Web API
2021-12-02 05:51:30 +08:00

10 lines
181 B
JavaScript

/*
* Document-reday functions for '#mode-toggle-wrapper'
*/
$(function() {
$("#mode-toggle-wrapper").keyup((e) => {
if(e.keyCode === 13) {
flipMode();
}
});
});