Skip to Content

JavaScript File

URL: https://vdmy.ru/js/allJS/jquery.cookie.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Thu, 14 Jul 2022 20:11:06 GMT
Download Time: Less than a second
Cookies: None
Size: 6 KB
HTTP Headers:  5 headers
Links In:  4 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1/*!

2 * jQuery Cookie Plugin v1.4.1

3 * https://github.com/carhartl/jquery-cookie

4 *

5 * Copyright 2006, 2014 Klaus Hartl

6 * Released under the MIT license

7 */

8(function (factory) {

9 if (typeof define === 'function' && define.amd) {

10 // AMD (Register as an anonymous module)

11 define(['jquery'], factory);

12 } else if (typeof exports === 'object') {

13 // Node/CommonJS

14 module.exports = factory(require('jquery'));

15 } else {

16 // Browser globals

17 factory(jQuery);

18 }

19}(function ($) {

20

21 var pluses = /\+/g;

22

23 function encode(s) {

24 return config.raw ? s : encodeURIComponent(s);

25 }

26

27 function decode(s) {

28 return config.raw ? s : decodeURIComponent(s);

29 }

30

31 function stringifyCookieValue(value) {

32 return encode(config.json ? JSON.stringify(value) : String(value));

33 }

34

35 function parseCookieValue(s) {

36 if (s.indexOf('"') === 0) {

37 // This is a quoted cookie as according to RFC2068, unescape...

38 s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');

39 }

40

...

</html>