Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F392130
cookie.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
cookie.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojo.cookie"
]){
dojo
.
_hasResource
[
"dojo.cookie"
]
=
true
;
dojo
.
provide
(
"dojo.cookie"
);
dojo
.
require
(
"dojo.regexp"
);
dojo
.
cookie
=
function
(
_1
,
_2
,
_3
){
var
c
=
document
.
cookie
;
if
(
arguments
.
length
==
1
){
var
_4
=
c
.
match
(
new
RegExp
(
"(?:^|; )"
+
dojo
.
regexp
.
escapeString
(
_1
)
+
"=([^;]*)"
));
return
_4
?
decodeURIComponent
(
_4
[
1
])
:
undefined
;
}
else
{
_3
=
_3
||
{};
var
_5
=
_3
.
expires
;
if
(
typeof
_5
==
"number"
){
var
d
=
new
Date
();
d
.
setTime
(
d
.
getTime
()
+
_5
*
24
*
60
*
60
*
1000
);
_5
=
_3
.
expires
=
d
;
}
if
(
_5
&&
_5
.
toUTCString
){
_3
.
expires
=
_5
.
toUTCString
();
}
_2
=
encodeURIComponent
(
_2
);
var
_6
=
_1
+
"="
+
_2
,
_7
;
for
(
_7
in
_3
){
_6
+=
"; "
+
_7
;
var
_8
=
_3
[
_7
];
if
(
_8
!==
true
){
_6
+=
"="
+
_8
;
}
}
document
.
cookie
=
_6
;
}
};
dojo
.
cookie
.
isSupported
=
function
(){
if
(
!
(
"cookieEnabled"
in
navigator
)){
this
(
"__djCookieTest__"
,
"CookiesAllowed"
);
navigator
.
cookieEnabled
=
this
(
"__djCookieTest__"
)
==
"CookiesAllowed"
;
if
(
navigator
.
cookieEnabled
){
this
(
"__djCookieTest__"
,
""
,{
expires
:-
1
});
}
}
return
navigator
.
cookieEnabled
;
};
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 20:27 (2 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24634
Default Alt Text
cookie.js (1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment