comparison cs/index.html @ 91:6a45e46f0c05

myw: use new redirect_app
author paulo
date Thu, 06 Apr 2017 22:42:03 -0700
parents f833a888c548
children 4d3f845c4ef2
comparison
equal deleted inserted replaced
0:15f6a50d6a69 1:47aea919de21
32 32
33 var unset = document.createElement("input"); 33 var unset = document.createElement("input");
34 unset.type = "button"; 34 unset.type = "button";
35 unset.value = "Unset"; 35 unset.value = "Unset";
36 unset.onclick = function() { 36 unset.onclick = function() {
37 docCookies.removeItem(k); 37 docCookies.removeItem(k, "/");
38 setCookiesDiv.removeChild(d); 38 setCookiesDiv.removeChild(d);
39 }; 39 };
40 40
41 d.appendChild(kInput); 41 d.appendChild(kInput);
42 d.appendChild(vInput); 42 d.appendChild(vInput);
61 } 61 }
62 } 62 }
63 } 63 }
64 64
65 function set() { 65 function set() {
66 docCookies.setItem(setK.value, setV.value, 600); 66 docCookies.setItem(setK.value, setV.value, 600, "/");
67 setK.value = ""; 67 setK.value = "";
68 setV.value = ""; 68 setV.value = "";
69 load(); 69 load();
70 } 70 }
71 71