X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-custom.js;h=d847fc12092dc8dcd444e7929088dc02993e59e9;hb=f73df9c05eb921278d08f17c3e4e18237d7d4007;hp=750aaa101822763bfb7171b430d375e4089640f0;hpb=f06ba039d6685a04782dad33e2772ea004b863d3;p=plack-app-gruntmaster.git diff --git a/js/90-custom.js b/js/90-custom.js index 750aaa1..d847fc1 100644 --- a/js/90-custom.js +++ b/js/90-custom.js @@ -3,6 +3,15 @@ function set_style(name){ $('#stylesheet').attr("href", "/css/" + name + ".css"); localStorage.setItem("theme", name); + if(name == 'slate' || name == 'cyborg') + $('.logo').addClass('logo-dark'); + else + $('.logo').removeClass('logo-dark'); + } + + var theme = localStorage.getItem("theme"); + if(theme) { + set_style(theme); } $( document ).ready(function() { @@ -25,10 +34,13 @@ $('#theme_cerulean').on('click', function () { set_style("cerulean"); }); $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); }); $('#theme_cosmo' ).on('click', function () { set_style("cosmo"); }); - }); - var theme = localStorage.getItem("theme"); - if(theme) { - set_style(theme); - } + if(!$('#sidebar').size()) { + var content = $('#content'); + content.wrapInner('
').append('