if ($.cookie("style") != null) { var savedStyle = $.cookie("style"); $('#theme-style').attr("href", "assets/css/theme/" + savedStyle + ".css"); }; jQuery(document).ready(function() { if ($.cookie("style") != null) { $("#theme a").attr("class", ""); var currentStyle = $("#theme").find("[data-style='" + savedStyle + "']"); $(currentStyle).addClass("active"); }; });
"~/Scripts/jquery.cookie.*"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)