X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-themes.js;h=3f761fc47a27179b635d90d9c1b1bd893ec3da4f;hb=dee46c5bb42f8fdaa70e70d6bdd4da5072a99ecd;hp=1ff13ae747507fb94eabd89df71159a757e6970b;hpb=5eae1f77a18ef8273f3a0cd6d4af8c19a4986880;p=plack-app-gruntmaster.git diff --git a/js/90-themes.js b/js/90-themes.js index 1ff13ae..3f761fc 100644 --- a/js/90-themes.js +++ b/js/90-themes.js @@ -1,22 +1,23 @@ -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; + q('link[title="' + name + '"]').disabled = false; localStorage.setItem("theme", name); } $(function() { - var theme_ul = '