X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;ds=inline;f=js%2F90-themes.js;h=347cad2db80ffa61f88583759136cf7c4de28851;hb=4bf1c3e5f36dcf283517de28b92c4ae7ed10edf0;hp=756b15612991212da6c750ff7d7ad00655861ba5;hpb=b8d36f0686c49a0220cc4c1ef59e47759f7a10f8;p=plack-app-gruntmaster.git diff --git a/js/90-themes.js b/js/90-themes.js index 756b156..347cad2 100644 --- a/js/90-themes.js +++ b/js/90-themes.js @@ -1,4 +1,8 @@ -function set_style(name){ +function set_style(name, trans){ + if(trans){ + document.body.classList.add('transition-color'); + setTimeout(() => document.body.classList.remove('transition-color'), 1000); + } $('link[title]').each(e => e.disabled = true); $('link[title="' + name + '"]')[0].disabled = false; localStorage.setItem("theme", name); @@ -17,12 +21,12 @@ $(function() { '