]> iEval git - mindcoding-template-patches.git/blobdiff - js/scripts.js
Add Yardi logo
[mindcoding-template-patches.git] / js / scripts.js
index 5ba7ecd937a64bd461105813e6f857acc70318ed..7804a2979564968369a5952b42aa2c577885e5d2 100644 (file)
@@ -1,5 +1,10 @@
 function set_style(name){
        $('#stylesheet').attr("href", "/css/" + name + ".var");
+       localStorage.setItem("theme", name);
+
+       if(name == "slate" || name == "cyborg") {
+               $('#yardi').attr("src", "/img/yardi-white.png");
+       }
 }
 
 $( document ).ready(function() {
@@ -24,4 +29,8 @@ $( document ).ready(function() {
        $('#theme_slate'   ).on('click', function () { set_style("slate"); });
        $('#theme_cerulean').on('click', function () { set_style("cerulean"); });
        $('#theme_cyborg'  ).on('click', function () { set_style("cyborg"); });
+       $('#theme_cosmo'   ).on('click', function () { set_style("cosmo"); });
 });
+
+if(localStorage.getItem("theme"))
+       set_style(localStorage.getItem("theme"));
This page took 0.021328 seconds and 4 git commands to generate.