(function(){
'use strict';
function set_style(name){
- $('#stylesheet').attr("href", "https://static.mindcoding.ro/css/" + name + ".css");
+ $('#stylesheet').attr("href", "https://static.mindcoding.ro/static/css/" + name + ".css");
localStorage.setItem("theme", name);
$(document).ready(function() {
if(name == 'slate' || name == 'cyborg')
$( 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"); });
- $('#theme_cosmo' ).on('click', function () { set_style("cosmo"); });
+ $('#theme_readable').on('click', function () { set_style("readable"); });
});
var theme = localStorage.getItem("theme");
if(theme) {
+ if(theme == "cerulean" || theme == "cosmo")
+ theme = "readable";
set_style(theme);
}
})();