X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-themes.js;h=c868cbd86239ed6cb1cff42fe60f9e5f55a3fb11;hb=44397e8ab2732248e68f08ba72172b7055492a44;hp=5ec968a4552821ba55119ec759b007f5057d0826;hpb=2d5a49fc7d61e2a7353ece540c3f12f2f08a0ba0;p=gruntmaster-page.git diff --git a/js/90-themes.js b/js/90-themes.js index 5ec968a..c868cbd 100644 --- a/js/90-themes.js +++ b/js/90-themes.js @@ -1,11 +1,18 @@ (function(){ 'use strict'; function set_style(name){ - $('#stylesheet').attr("href", "/css/" + name + ".css"); + $('#stylesheet').attr("href", "https://static.mindcoding.ro/css/" + name + ".css"); localStorage.setItem("theme", name); + $(document).ready(function() { + if(name == 'slate' || name == 'cyborg') + $('.logo').removeClass('logo-light'); + else + $('.logo').addClass('logo-light'); + }); } $( document ).ready(function() { + $('#theme-selector').detach().prependTo($('#sidebar')); $('#theme_slate' ).on('click', function () { set_style("slate"); }); $('#theme_cerulean').on('click', function () { set_style("cerulean"); }); $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });