X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-themes.js;h=45bd63cfa8ed4db05e333c81391858e986f613ad;hb=b7c79e04cb3c8ea826ea1aac8049333564794536;hp=74506c83b98ba7e951d92a5749955c4f1a3d1ec5;hpb=bcf95b418334059308214ea1c1546536c2ebf545;p=gruntmaster-page.git diff --git a/js/90-themes.js b/js/90-themes.js index 74506c8..45bd63c 100644 --- a/js/90-themes.js +++ b/js/90-themes.js @@ -1,12 +1,17 @@ (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').removeClass('hidden'); $('#theme_slate' ).on('click', function () { set_style("slate"); }); $('#theme_cerulean').on('click', function () { set_style("cerulean"); }); $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });