]>
iEval git - plack-app-gruntmaster.git/blob - js/90-themes.js
3 function set_style(name
){
4 $('#stylesheet').attr("href", "/css/" + name
+ ".css");
5 localStorage
.setItem("theme", name
);
8 $( document
).ready(function() {
9 $('#theme-selector').removeClass('hidden');
10 $('#theme_slate' ).on('click', function () { set_style("slate"); });
11 $('#theme_cerulean').on('click', function () { set_style("cerulean"); });
12 $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });
13 $('#theme_cosmo' ).on('click', function () { set_style("cosmo"); });
16 var theme
= localStorage
.getItem("theme");
This page took 0.043864 seconds and 5 git commands to generate.