Commit 1d9a1763 authored by Savorboard's avatar Savorboard

add node switch click event.

parent 2b7ed6b9
...@@ -603,4 +603,13 @@ $(function () { ...@@ -603,4 +603,13 @@ $(function () {
$("#collapseBtn").click(function () { $("#collapseBtn").click(function () {
$('#jsonContent').JSONView('collapse'); $('#jsonContent').JSONView('collapse');
}); });
})();
\ No newline at end of file })();
function nodeSwitch(id) {
console.log("id:" + id);
var Days = 10;
var exp = new Date();
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
document.cookie = "cap.node=" + escape(id) + ";expires=" + exp.toGMTString();
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment