PageSourceSearch

https://www.xinfeng.gov.cn/global/jquery.cookie.js

js xinfeng.gov.cn collected 2026-10-02 19:14:38 UTC 1,706 bytes, 37 lines download raw bytes

1jQuery.cookie = function(name, value, options) {  
2     if (typeof value != 'undefined') { // name and value given, set cookie  
3         options = options || {};  
4         if (value === null) {  
5             value = '';  
6             options.expires = -1;  
7         }  
8         var expires = '';  
9         if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {  
10             var date;  
11             if (typeof options.expires == 'number') {  
12                 date = new Date();  
13                 date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));  
14             } else {  
15                 date = options.expires;  
16             }  
17             expires = '; expires=' + date.toUTCString();  
18         }  
19         var path = options.path ? '; path=' + (options.path) : '';  
20         var domain = options.domain ? '; domain=' + (options.domain) : '';  
21         var secure = options.secure ? '; secure' : '';  
22         document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');  
23     } else {  
24         var cookieValue = null;  
25         if (document.cookie && document.cookie != '') {  
26             var cookies = document.cookie.split(';');  
27             for (var i = 0; i < cookies.length; i++) {  
28                 var cookie = jQuery.trim(cookies[i]);  
29                 if (cookie.substring(0, name.length + 1) == (name + '=')) {  
30                     cookieValue = decodeURIComponent(cookie.substring(name.length + 1));  
31                     break;  
32                 }  
33             }  
34         }  
35         return cookieValue;  
36     }  
37 }; 

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.