]>
iEval git - plack-app-gruntmaster.git/blob - js/90-themes.js
3 function set_style(name
){
4 $('#stylesheet').attr("href", "https://static.mindcoding.ro/static/css/" + name
+ ".css");
5 localStorage
.setItem("theme", name
);
6 $(document
).ready(function() {
7 if(name
== 'slate' || name
== 'cyborg')
8 $('.logo').removeClass('logo-light');
10 $('.logo').addClass('logo-light');
14 $( document
).ready(function() {
15 $('#theme-selector').detach().prependTo($('#sidebar'));
16 $('#theme_slate' ).on('click', function () { set_style("slate"); });
17 $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });
18 $('#theme_readable').on('click', function () { set_style("readable"); });
21 var theme
= localStorage
.getItem("theme");
23 if(theme
== "cerulean" || theme
== "cosmo")
This page took 0.052144 seconds and 5 git commands to generate.