<html>\r
<head>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \r
<title>The source code</title>\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
\r
// private\r
readCookies : function(){\r
- var cookies = {};\r
- var c = document.cookie + ";";\r
- var re = /\s?(.*?)=(.*?);/g;\r
- var matches;\r
+ var cookies = {},\r
+ c = document.cookie + ";",\r
+ re = /\s?(.*?)=(.*?);/g,\r
+ matches,\r
+ name, value;\r
+ \r
while((matches = re.exec(c)) != null){\r
- var name = matches[1];\r
- var value = matches[2];\r
+ name = matches[1];\r
+ value = matches[2];\r
if(name && name.substring(0,3) == "ys-"){\r
cookies[name.substr(3)] = this.decodeValue(value);\r
}\r