Remove all logos, replace PNG with SVG
[gruntmaster-page.git] / js / 90-themes.js
index 347cad2db80ffa61f88583759136cf7c4de28851..4a7067e29e965d05c66b3ec8e62bf58fc0d9cde2 100644 (file)
@@ -8,9 +8,9 @@ function set_style(name, trans){
        localStorage.setItem("theme", name);
        $(function() {
                if(name == 'slate' || name == 'cyborg')
-                       $('.logo').each(e => e.classList.remove('logo-light'));
+                       $('img').each(e => e.setAttribute('src', e.getAttribute('src').replace('logos/light', 'logos/dark')));
                else
-                       $('.logo').each(e => e.classList.add('logo-light'));
+                       $('img').each(e => e.setAttribute('src', e.getAttribute('src').replace('logos/dark', 'logos/light')));
        });
 }
 
This page took 0.009471 seconds and 4 git commands to generate.