PageSourceSearch

https://go.tsr-net.co.jp/rs/860-GOE-537/images/script(2).js

js tsr-net.co.jp collected 2026-09-24 08:37:43 UTC 1,919 bytes, 76 lines download raw bytes

1
2/*!
3 * jQuery Cookie Plugin v1.3
4 * https://github.com/carhartl/jquery-cookie
5 *
6 * Copyright 2011, Klaus Hartl
7 * Dual licensed under the MIT or GPL Version 2 licenses.
8 * http://www.opensource.org/licenses/mit-license.php
9 * http://www.opensource.org/licenses/GPL-2.0
10 */
11(function ($, document, undefined) {
12
13	var pluses = /\+/g;
14
15	function raw(s) {
16		return s;
17	}
18
19	function decoded(s) {
20		return decodeURIComponent(s.replace(pluses, ' '));
21	}
22
23	var config = $.cookie = function (key, value, options) {
24
25		// write
26		if (value !== undefined) {
27			options = $.extend({}, config.defaults, options);
28
29			if (value === null) {
30				options.expires = -1;
31			}
32
33			if (typeof options.expires === 'number') {
34				var days = options.expires, t = options.expires = new Date();
35				t.setDate(t.getDate() + days);
36			}
37
38			value = config.json ? JSON.stringify(value) : String(value);
39
40			return (document.cookie = [
41				encodeURIComponent(key), '=', config.raw ? value : encodeURIComponent(value),
42				options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
43				options.path    ? '; path=' + options.path : '',
44				options.domain  ? '; domain=' + options.domain : '',
45				options.secure  ? '; secure' : ''
46			].join(''));
47		}
48
49		// read
50		var decode = config.raw ? raw : decoded;
51		var cookies = document.cookie.split('; ');
52		for (var i = 0, l = cookies.length; i < l; i++) {
53			var parts = cookies[i].split('=');
54			if (decode(parts.shift()) === key) {
55				var cookie = decode(parts.join('='));
56				return config.json ? JSON.parse(cookie) : cookie;
57			}
58		}
59
60		return null;
61	};
62
63	config.defaults = {};
64
65	$.removeCookie = function (key, options) {
66		if ($.cookie(key) !== null) {
67			$.cookie(key, null, options);
68			return true;
69		}
70		return false;
71	};
72
73})(jQuery, document);
74
75
76

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.