I mean, in your code.Aurelienazerty wrote: ↑Mon Aug 12, 2019 9:56 pm Yes maybe, and do a F5 for reload the CSS (to be sure)
$this->cache->purge();
method at every switch.That should be
/ext/Aurelienazerty/darkMode
- note the capital "A"This is EPIC, god bless you mate <3
yes, it's work with chrome and edge, have problem with firefox (tell me)
Code: Select all
$("body").addClass("darkmode");
Code: Select all
$("html").addClass("darkmode");
Code: Select all
$this->template->append_var('BODY_CLASS', $class);
Code: Select all
$this->template->append_var('HTML_CLASS', $class);
Code: Select all
body.darkmode {
Code: Select all
html.darkmode {
Code: Select all
<html dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}">
Code: Select all
<html dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" class="{HTML_CLASS}">