1(function($) { 2 var plugname = 'cookie'; 3 4 /** 5 * ã³ã³ã¹ãã©ã¯ã¿ 6 */ 7 var Class = function(object) { 8 this.object = object; 9 } 10 11 $.cookie = function (key, value, options) { 12 // Write 13 14 if (arguments.length > 1) { 15 options = $.extend({}, $.fn[plugname].defaults, options); 16 17 value = $.cookie.json ? JSON.stringify(value) : String(value); 18 19 var params = {}; 20 if (options.expires) { 21 params['expires'] = options.expires; 22 } 23 24 if (options.path) { 25 params['path'] = options.path; 26 } 27 28 if (options.domain) { 29 params['domain'] = options.domain; 30 } 31 32 if (options.secure) { 33 params['secure'] = true; 34 } 35 36 if (options.sameSite) { 37 params['sameSite'] = options.sameSite; 38 } 39 40 return Cookies.set(key, value, params); 41 } 42 43 // Read 44 45 var cookieValue = Cookies.get(key); 46 47 try { 48 return $.cookie.json ? JSON.parse(cookieValue) : cookieValue; 49 } catch(e) {} 50 } 51 52 $.removeCookie = function (key) { 53 return Cookies.remove(key); 54 } 55 56 /** 57 * å ¨ãã©ã°ã¤ã³å ±é 58 */ 59 $.fn[plugname] = function() { 60 return new Class(this); 61 } 62 63 /** 64 * ããã©ã«ããã©ã¡ã¼ã¿ 65 */ 66 $.fn[plugname].defaults = { 67 }; 68})(jQuery);
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.