1//---------------------------------------------------------------------------// 2/********************************************************** 3* NbL[§äNX 4*/ 5 6//---------------------------------------------------------------------------// 7/********************************************************** 8* RXgN^ 9*/ 10function UaLibCookie(){ 11} 12//---------------------------------------------------------------------------// 13/********************************************************** 14* NbL[Ìf[^ðæ¾ 15*/ 16UaLibCookie.prototype.getCookie = function(name){ 17 var arg = name + "="; 18 var alen = arg.length; 19 var clen = document.cookie.length; 20 var i = 0; 21 while (i < clen){ 22 var j = i + alen; 23 if(document.cookie.substring(i, j) == arg){ 24 return this.getCookieVal(j); 25 } 26 i = document.cookie.indexOf(" ", i) + 1; 27 if(i == 0) break; 28 } 29 return null; 30} 31/********************************************************** 32* NbL[Ìf[^ðZbg 33*/ 34UaLibCookie.prototype.setCookie = function(name, value, expires, path, domain, secure){ 35 document.cookie = name + "=" + encodeURIComponent (value) + 36 ((expires) ? "; expires=" + expires : "") + 37 ((path) ? "; path=" + path : "") + 38 ((domain) ? "; domain=" + domain : "") + 39 ((secure) ? "; secure" : ""); 40} 41/********************************************************** 42* NbL[Ìf[^ðí(LøúÀðßÉ) 43*/ 44UaLibCookie.prototype.deleteCookie = function(name,path,domain){ 45 if(this.getCookie(name)){ 46 document.cookie = name + "=" + 47 ((path) ? "; path=" + path : "") + 48 ((domain) ? "; domain=" + domain : "") + 49 "; expires=Thu, 01-Jan-70 00:00:01 GMT"; 50 } 51} 52//---------------------------------------------------------------------------// 53/********************************************************** 54* NbL[Ìf[^ÌlðfR[hµÄÔ· 55*/ 56UaLibCookie.prototype.getCookieVal = function(offset){ 57 var endstr = document.cookie.indexOf (";", offset); 58 if(endstr == -1){ 59 endstr = document.cookie.length; 60 } 61 return decodeURIComponent(document.cookie.substring(offset, endstr)); 62} 63/********************************************************** 64* LøúÀðKèÌtH[}bgÉÏ· 65*/ 66UaLibCookie.prototype.getExpDate = function(days, hours, minutes){ 67 var expDate = new Date(); 68 if(typeof days == "number" && typeof hours == "number" && typeof hours == "number"){ 69 expDate.setDate(expDate.getDate() + parseInt(days)); 70 expDate.setHours(expDate.getHours() + parseInt(hours)); 71 expDate.setMinutes(expDate.getMinutes() + parseInt(minutes)); 72 return expDate.toGMTString(); 73 } 74}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.