From: Marius Gavrilescu Date: Thu, 6 Aug 2015 09:48:08 +0000 (+0300) Subject: Merge branch 'master' into newmc X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=ae7dfc94a272a943e52957c4bffabecfbceb9b19;p=gruntmaster-page.git Merge branch 'master' into newmc --- ae7dfc94a272a943e52957c4bffabecfbceb9b19 diff --cc js/90-themes.js index 50834da,d65759c..5196574 --- a/js/90-themes.js +++ b/js/90-themes.js @@@ -3,14 -3,10 +3,16 @@@ function set_style(name, trans) document.body.classList.add('transition-color'); setTimeout(() => document.body.classList.remove('transition-color'), 1000); } + if(q('html').className == name) + return; 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() { diff --cc tmpl/skel.en index f7ca622,3533f56..3622006 --- a/tmpl/skel.en +++ b/tmpl/skel.en @@@ -16,17 -14,13 +16,16 @@@