]> iEval git - mindcoding-template-patches.git/blobdiff - js/scripts.js
Add Yardi logo
[mindcoding-template-patches.git] / js / scripts.js
index c7f0025400b482b23aa190884509bbeb0322928b..7804a2979564968369a5952b42aa2c577885e5d2 100644 (file)
@@ -1,6 +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() {
@@ -25,6 +29,7 @@ $( 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"))
This page took 0.020336 seconds and 4 git commands to generate.