From 17e134f528826fd618469daaf467c36ee55a39bc Mon Sep 17 00:00:00 2001 From: Jim Driessen Date: Wed, 1 Feb 2017 00:43:18 +0100 Subject: [PATCH] Save number of songs in the search table to a cookie. --- marietje/marietje/static/js/js.cookie-2.1.3.min.js | 2 ++ marietje/marietje/static/js/manage.js | 9 ++++++++- marietje/marietje/static/js/queue.js | 11 +++++++---- marietje/queues/templates/queues/queue.html | 1 + marietje/songs/templates/songs/manage.html | 1 + 5 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 marietje/marietje/static/js/js.cookie-2.1.3.min.js diff --git a/marietje/marietje/static/js/js.cookie-2.1.3.min.js b/marietje/marietje/static/js/js.cookie-2.1.3.min.js new file mode 100644 index 0000000..ff0f37b --- /dev/null +++ b/marietje/marietje/static/js/js.cookie-2.1.3.min.js @@ -0,0 +1,2 @@ +/*! js-cookie v2.1.3 | MIT */ +!function(a){var b=!1;if("function"==typeof define&&define.amd&&(define(a),b=!0),"object"==typeof exports&&(module.exports=a(),b=!0),!b){var c=window.Cookies,d=window.Cookies=a();d.noConflict=function(){return window.Cookies=c,d}}}(function(){function a(){for(var a=0,b={};a1){if(f=a({path:"/"},d.defaults,f),"number"==typeof f.expires){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*f.expires),f.expires=h}try{g=JSON.stringify(e),/^[\{\[]/.test(g)&&(e=g)}catch(i){}return e=c.write?c.write(e,b):encodeURIComponent(e+"").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),b=encodeURIComponent(b+""),b=b.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),b=b.replace(/[\(\)]/g,escape),document.cookie=b+"="+e+(f.expires?"; expires="+f.expires.toUTCString():"")+(f.path?"; path="+f.path:"")+(f.domain?"; domain="+f.domain:"")+(f.secure?"; secure":"")}b||(g={});for(var j=document.cookie?document.cookie.split("; "):[],k=/(%[0-9A-Z]{2})+/g,l=0;l +