Added: jquery.cookie v1.4.1 (#258)
This commit is contained in:
parent
1f2b57a016
commit
8d73e93513
|
@ -303,6 +303,7 @@ mappings.cdn = {
|
|||
'jquery-modal/{version}/jquery.modal.css': resources.jQueryModalCSS,
|
||||
'jquery-modal/{version}/jquery.modal.min.css': resources.jQueryModalCSS,
|
||||
'jquery-mousewheel/{version}/jquery.mousewheel.min.js': resources.jqueryMousewheelJS,
|
||||
'jquery-cookie/{version}/jquery.cookie.': resources.jqueryCookie,
|
||||
'jquery.scrollbar/{version}/jquery.scrollbar.min.js': resources.jQueryScrollbar,
|
||||
'jquery.scrollbar/{version}/jquery.scrollbar.js': resources.jQueryScrollbar,
|
||||
'jquery-validation-unobtrusive/{version}/jquery.validate.unobtrusive.': resources.jQueryValidationUnobtrusive,
|
||||
|
|
|
@ -500,6 +500,11 @@ var resources = {
|
|||
'path': 'resources/jquery.blockUI/{version}/jquery.blockUI.min.jsm',
|
||||
'type': 'application/javascript'
|
||||
},
|
||||
// jquery.cookie [Deprecated]
|
||||
'jqueryCookie': {
|
||||
'path': 'resources/jquery-cookie/{version}/jquery.cookie.min.jsm',
|
||||
'type': 'application/javascript'
|
||||
},
|
||||
// jQuery-csv
|
||||
'jQueryCSV': {
|
||||
'path': 'resources/jquery-csv/{version}/jquery.csv.min.jsm',
|
||||
|
|
|
@ -259,6 +259,8 @@ targets.setLastVersion = function (type, version) {
|
|||
else return '1.12.1'; // >= 1.8.19
|
||||
} else if (type.startsWith('/jquery.blockUI/2.')) {
|
||||
return '2.70';
|
||||
} else if (type.startsWith('/jquery-cookie/1.')) {
|
||||
return '1.4.1';
|
||||
} else if (type.startsWith('/jquery-csv/1.')) {
|
||||
return '1.0.11';
|
||||
} else if (type.startsWith('/jquery-easing/1.')) {
|
||||
|
@ -490,6 +492,7 @@ targets.determineResourceName = function (filename) {
|
|||
};
|
||||
|
||||
const ListOfFiles = {
|
||||
'jquery.cookie.min.jsm': 'jquery-cookie',
|
||||
'jquery.scrollbar.min.jsm': 'jQuery Scrollbar',
|
||||
'dayjs.min.jsm': 'Day.js',
|
||||
'jquery.validate.unobtrusive.min.jsm': 'jQuery Validate Unobtrusive',
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
<li>Added: jquery-validation-unobtrusive v3.2.11 (<a href="https://codeberg.org/nobody/LocalCDN/issues/258">#258</a>)</li>
|
||||
<li>Added: Day.js v1.10.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/258">#258</a>)</li>
|
||||
<li>Added: jQuery Scrollbar v0.2.11 (<a href="https://codeberg.org/nobody/LocalCDN/issues/258">#258</a>)</li>
|
||||
<li>Added: jquery.cookie v1.4.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/258">#258</a>)</li>
|
||||
</ul>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
/*! jquery.cookie v1.4.1 | MIT */
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
|
Loading…
Reference in New Issue