...
|
...
|
@@ -217,7 +217,7 @@ function tsAnimate() { |
|
|
tsAnimate();
|
|
|
|
|
|
|
|
|
function cookie (name, value, options) {
|
|
|
function cookie(name, value, options) {
|
|
|
if (typeof value !== 'undefined') {
|
|
|
options = options || {};
|
|
|
if (value === null) {
|
...
|
...
|
@@ -226,8 +226,8 @@ function cookie (name, value, options) { |
|
|
options.expires = -1;
|
|
|
}
|
|
|
if (options.expires &&
|
|
|
(typeof options.expires == 'number' || options.expires.toUTCString)) {
|
|
|
if (typeof options.expires == 'number') {
|
|
|
(typeof options.expires === 'number' || options.expires.toUTCString)) {
|
|
|
if (typeof options.expires === 'number') {
|
|
|
date = new Date();
|
|
|
date.setTime(date.getTime() +
|
|
|
(options.expires * 24 * 60 * 60 * 1000));
|
...
|
...
|
@@ -245,17 +245,16 @@ function cookie (name, value, options) { |
|
|
if (document.cookie && document.cookie !== '') {
|
|
|
cookies = document.cookie.split(';');
|
|
|
for (var i = 0; i < cookies.length; i++) {
|
|
|
var cookie = $.trim(cookies[i]);
|
|
|
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
|
|
cookie = $.trim(cookies[i]);
|
|
|
if (cookie.substring(0, name.length + 1) === (name + '=')) {
|
|
|
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return cookieValue;
|
|
|
}
|
|
|
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$.ajax({
|
|
|
type:'GET',
|
...
|
...
|
|