forked from suellenwang/Ars327_Final_Suellen-Wang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsaved_resource(10).html
4 lines (4 loc) · 2.72 KB
/
saved_resource(10).html
1
2
3
4
<!DOCTYPE html>
<!-- saved from url=(0038)https://cdncache-a.akamaihd.net/store/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Store</title><script type="text/javascript">(function(l,n){function p(d){q.postMessage(JSON.stringify(d),"*")}function r(d){try{var a=d.data;"string"==typeof a&&"{"==a[0]&&"}"==a[a.length-1]&&(a=JSON.parse(a));a.a instanceof Array||(a.a=[a.a]);if("db.get"==a.f){d={};for(var g=0,b=a.a.length;g<b;++g){var e=a.a[g],h=e,c;a:{var k=e,f=n.getItem(k);if(f){"string"==typeof f&&"{"==f[0]&&"}"==f[f.length-1]&&(f=JSON.parse(f));var t=+new Date/1E3|0;if(f.t&&parseInt(f.t)<t)n.removeItem(k);else{c=f.v;break a}}c=null}d[h]=c}p({i:a.i,f:"db.get",v:d})}else if("db.set"==a.f){g=0;for(b=a.a.length;g<b;++g){e=a.a[g];e.t="undefined"==typeof e.t?86400:e.t;var h=e.n,k=e.v,u=e.t,m=new Date;m.setSeconds(m.getSeconds()+u);m=m/1E3|0;n.setItem(h,JSON.stringify({v:k,t:m}))}p({i:a.i,f:"db.set",v:e})}}catch(l){}}"undefined"==typeof JSON&&(this.JSON||(JSON=function(){function d(b){return 10>b?"0"+b:b}function a(b,e){var h,c,k,f;h=/["\\\x00-\x1f\x7f-\x9f]/g;var d;switch(typeof b){case "string":return h.test(b)?'"'+b.replace(h,function(b){var a=g[b];if(a)return a;a=b.charCodeAt();return"\\u00"+Math.floor(a/16).toString(16)+(a%16).toString(16)})+'"':'"'+b+'"';case "number":return isFinite(b)?String(b):"null";case "boolean":case "null":return String(b);case "object":if(!b)return"null";if("function"===typeof b.toJSON)return a(b.toJSON());h=[];if("number"===typeof b.length&&!b.propertyIsEnumerable("length")){f=b.length;for(c=0;c<f;c+=1)h.push(a(b[c],e)||"null");return"["+h.join(",")+"]"}if(e)for(f=e.length,c=0;c<f;c+=1)k=e[c],"string"===typeof k&&(d=a(b[k],e))&&h.push(a(k)+":"+d);else for(k in b)"string"===typeof k&&(d=a(b[k],e))&&h.push(a(k)+":"+d);return"{"+h.join(",")+"}"}}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+d(this.getUTCMonth()+1)+"-"+d(this.getUTCDate())+"T"+d(this.getUTCHours())+":"+d(this.getUTCMinutes())+":"+d(this.getUTCSeconds())+"Z"};var g={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return{stringify:a,parse:function(a,e){function d(a,b){var c,g;if(b&&"object"===typeof b)for(c in b)Object.prototype.hasOwnProperty.apply(b,[c])&&(g=d(c,b[c]),void 0!==g&&(b[c]=g));return e(a,b)}var c;if(/^[\],:{}\s]*$/.test(a.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return c=eval("("+a+")"),"function"===typeof e?d("",c):c;throw new SyntaxError("parseJSON");}}}()));var q=parent;q&&(l.addEventListener?l.addEventListener("message",r,!1):l.attachEvent&&l.attachEvent("onmessage",r),p({f:"ready"}))})(window,localStorage);</script></head><body>
</body></html>