]> iEval git - gruntmaster-page.git/blame - js/90-themes.js
Remove dropdown js as it is no longer needed
[gruntmaster-page.git] / js / 90-themes.js
CommitLineData
c7a5e4e0
MG
1(function(){
2 'use strict';
3 function set_style(name){
f06ba039 4 $('#stylesheet').attr("href", "/css/" + name + ".css");
c7a5e4e0
MG
5 localStorage.setItem("theme", name);
6 }
7dc32473 7
c7a5e4e0 8 $( document ).ready(function() {
5fdcdc91 9 $('#theme-selector').detach().prependTo($('#sidebar'));
c7a5e4e0
MG
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"); });
7dc32473
MG
14 });
15
c7a5e4e0
MG
16 var theme = localStorage.getItem("theme");
17 if(theme) {
18 set_style(theme);
19 }
20})();
This page took 0.032253 seconds and 4 git commands to generate.