]>
iEval git - gruntmaster-page.git/blob - js/90-themes.js
3 function set_style(name
){
4 $('link[rel~="stylesheet"]').prop('disabled', true);
5 $('link[title="' + name
+ '"]').prop('disabled', false);
6 localStorage
.setItem("theme", name
);
7 $(document
).ready(function() {
8 if(name
== 'slate' || name
== 'cyborg')
9 $('.logo').removeClass('logo-light');
11 $('.logo').addClass('logo-light');
15 $( document
).ready(function() {
16 $('#theme-selector').detach().prependTo($('#sidebar'));
17 $('#theme_slate' ).on('click', function () { set_style("slate"); });
18 $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });
19 $('#theme_readable').on('click', function () { set_style("readable"); });
22 var theme
= localStorage
.getItem("theme");
24 if(theme
== "cerulean" || theme
== "cosmo")
This page took 0.046056 seconds and 4 git commands to generate.