Added JavaScript Cookie v2.2.1
This commit is contained in:
parent
38d6c106cf
commit
b26b3a2afa
|
@ -95,6 +95,9 @@ var files = {
|
|||
// jQuery jeditable
|
||||
'resources/jquery-jeditable/1.8.0/jquery.jeditable.min.jsm': true,
|
||||
|
||||
// JavaScript Cookie
|
||||
'resources/js-cookie/2.2.1/js.cookie.min.jsm': true,
|
||||
|
||||
// lazysizes
|
||||
'resources/lazysizes/4.1.8/lazysizes.min.jsm': true,
|
||||
|
||||
|
|
|
@ -84,6 +84,7 @@ var mappings = {
|
|||
'jqueryui/{version}/jquery-ui.js': resources.jQueryUI,
|
||||
'jqueryui/{version}/jquery-ui.min.js': resources.jQueryUI,
|
||||
'jquery-validate/{version}/jquery.validate.min.js': resources.jqueryValidationPlugin,
|
||||
'js-cookie/{version}/js.cookie.min.js': resources.jscookie,
|
||||
'lazysizes/{version}/lazysizes.min.js': resources.lazysizes,
|
||||
'modernizr/{version}/modernizr.': resources.modernizr,
|
||||
'moment.js/{version}/moment.': resources.moment,
|
||||
|
|
|
@ -124,6 +124,11 @@ var resources = {
|
|||
'path': 'resources/jquery-validate/{version}/jquery.validate.min.jsm',
|
||||
'type': 'application/javascript'
|
||||
},
|
||||
// resources/js-cookie/2.2.1/js.cookie.min.jsm
|
||||
'jscookie': {
|
||||
'path': 'resources/js-cookie/{version}/js.cookie.min.jsm',
|
||||
'type': 'application/javascript'
|
||||
},
|
||||
// lazysizes
|
||||
'lazysizes': {
|
||||
'path': 'resources/lazysizes/{version}/lazysizes.min.jsm',
|
||||
|
|
|
@ -236,6 +236,8 @@ helpers.determineResourceName = function (filename) {
|
|||
return 'jQuery jeditable';
|
||||
case 'jquery.jeditable.min.jsm':
|
||||
return 'jQuery Validation Plugin';
|
||||
case 'js.cookie.min.jsm':
|
||||
return 'JavaScript Cookie';
|
||||
case 'lazysizes.min.jsm':
|
||||
return 'lazysizes';
|
||||
case 'lozad.min.jsm':
|
||||
|
@ -374,6 +376,8 @@ helpers.setLastVersion = function (type, version) {
|
|||
version = '1.19.1';
|
||||
} else if (type.includes('/jquery-jeditable/1.')) {
|
||||
version = '1.8.0';
|
||||
} else if (type.includes('/js-cookie/2.')) {
|
||||
version = '2.2.1';
|
||||
} else if (type.includes('/lazysizes/4.')) {
|
||||
version = '4.1.8';
|
||||
} else if (type.includes('lozad')) {
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<li>Added jQuery jeditable v1.8.0</li>
|
||||
<li>Added D3.js v3.5.17</li>
|
||||
<li>Added P2P Media Loader Core v0.6.2</li>
|
||||
<li>Added JavaScript Cookie v2.2.1</li>
|
||||
</ul>
|
||||
<div class="topic-label">
|
||||
Please update your uBlock/uMatrix rules
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
!function(e){var n;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var t=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return window.Cookies=t,o}}}(function(){function f(){for(var e=0,n={};e<arguments.length;e++){var t=arguments[e];for(var o in t)n[o]=t[o]}return n}function a(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function e(u){function c(){}function t(e,n,t){if("undefined"!=typeof document){"number"==typeof(t=f({path:"/"},c.defaults,t)).expires&&(t.expires=new Date(1*new Date+864e5*t.expires)),t.expires=t.expires?t.expires.toUTCString():"";try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch(e){}n=u.write?u.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var r="";for(var i in t)t[i]&&(r+="; "+i,!0!==t[i]&&(r+="="+t[i].split(";")[0]));return document.cookie=e+"="+n+r}}function n(e,n){if("undefined"!=typeof document){for(var t={},o=document.cookie?document.cookie.split("; "):[],r=0;r<o.length;r++){var i=o[r].split("="),c=i.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var f=a(i[0]);if(c=(u.read||u)(c,f)||a(c),n)try{c=JSON.parse(c)}catch(e){}if(t[f]=c,e===f)break}catch(e){}}return e?t[e]:t}}return c.set=t,c.get=function(e){return n(e,!1)},c.getJSON=function(e){return n(e,!0)},c.remove=function(e,n){t(e,"",f(n,{expires:-1}))},c.defaults={},c.withConverter=e,c}(function(){})});
|
Loading…
Reference in New Issue