]>
iEval git - plack-app-gruntmaster.git/blob - js/90-themes.js
1e6fdceb66d996c31291974f5d44412a4abce126
3 function set_style(name
){
4 $('#stylesheet').attr("href", "/static/css/" + name
+ ".css");
5 localStorage
.setItem("theme", name
);
8 $( document
).ready(function() {
9 $('#theme-selector').detach().prependTo($('#sidebar'));
10 $('#theme_slate' ).on('click', function () { set_style("slate"); });
11 $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });
12 $('#theme_readable').on('click', function () { set_style("readable"); });
15 var theme
= localStorage
.getItem("theme");
17 if(theme
== "cerulean" || theme
== "cosmo")
This page took 0.040288 seconds and 4 git commands to generate.