Merge branch 'master' into newmc
[gruntmaster-page.git] / js / 90-themes.js
index a94d1300d9434140fc60004ea80eff1a09fb30fe..50834da65622a6ffd71536067798d34a8ad54d95 100644 (file)
@@ -5,6 +5,12 @@ function set_style(name, trans){
        }
        q('html').className = name;
        localStorage.setItem("theme", name);
+       $(function() {
+               if(name == 'slate' || name == 'cyborg')
+                       $('img').each(e => e.setAttribute('src', e.getAttribute('src').replace('logos/light', 'logos/dark')));
+               else
+                       $('img').each(e => e.setAttribute('src', e.getAttribute('src').replace('logos/dark', 'logos/light')));
+       });
 }
 
 $(function() {
This page took 0.009691 seconds and 4 git commands to generate.